diff options
Diffstat (limited to 'source/blender/sequencer/intern/proxy.c')
-rw-r--r-- | source/blender/sequencer/intern/proxy.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/source/blender/sequencer/intern/proxy.c b/source/blender/sequencer/intern/proxy.c index 398a9a3e072..ff65216d987 100644 --- a/source/blender/sequencer/intern/proxy.c +++ b/source/blender/sequencer/intern/proxy.c @@ -49,16 +49,19 @@ #include "DEG_depsgraph.h" -#include "SEQ_sequencer.h" - #include "IMB_colormanagement.h" #include "IMB_imbuf.h" #include "IMB_imbuf_types.h" #include "IMB_metadata.h" +#include "SEQ_sequencer.h" + +#include "multiview.h" #include "proxy.h" #include "render.h" #include "sequencer.h" +#include "strip_time.h" +#include "utils.h" typedef struct SeqIndexBuildContext { struct IndexBuildContext *index_context; @@ -569,3 +572,22 @@ void SEQ_proxy_set(struct Sequence *seq, bool value) seq->flag &= ~SEQ_USE_PROXY; } } + +void seq_proxy_index_dir_set(struct anim *anim, const char *base_dir) +{ + char dir[FILE_MAX]; + char fname[FILE_MAXFILE]; + + IMB_anim_get_fname(anim, fname, FILE_MAXFILE); + BLI_strncpy(dir, base_dir, sizeof(dir)); + BLI_path_append(dir, sizeof(dir), fname); + IMB_anim_set_index_dir(anim, dir); +} + +void free_proxy_seq(Sequence *seq) +{ + if (seq->strip && seq->strip->proxy && seq->strip->proxy->anim) { + IMB_free_anim(seq->strip->proxy->anim); + seq->strip->proxy->anim = NULL; + } +} |