void IMB_free_anim(struct anim *anim) { if (anim == NULL) { printf("free anim, anim == NULL\n"); return; } free_anim_movie(anim); #ifdef WITH_AVI free_anim_avi(anim); #endif #ifdef WITH_QUICKTIME free_anim_quicktime(anim); #endif #ifdef WITH_FFMPEG free_anim_ffmpeg(anim); #endif #ifdef WITH_REDCODE free_anim_redcode(anim); #endif IMB_free_indices(anim); MEM_freeN(anim); }
void IMB_close_anim_proxies(struct anim *anim) { if (anim == NULL) return; IMB_free_indices(anim); }
void IMB_anim_set_index_dir(struct anim *anim, const char *dir) { if (strcmp(anim->index_dir, dir) == 0) { return; } BLI_strncpy(anim->index_dir, dir, sizeof(anim->index_dir)); IMB_free_indices(anim); }
void IMB_free_anim(struct anim *anim) { if (anim == NULL) { printf("free anim, anim == NULL\n"); return; } free_anim_movie(anim); #ifdef WITH_AVI free_anim_avi(anim); #endif #ifdef WITH_FFMPEG free_anim_ffmpeg(anim); #endif IMB_free_indices(anim); MEM_freeN(anim); }