Changeset View
Changeset View
Standalone View
Standalone View
source/blender/sequencer/intern/proxy.c
| Show First 20 Lines • Show All 595 Lines • ▼ Show 20 Lines | void SEQ_proxy_rebuild_finish(SeqIndexBuildContext *context, bool stop) | ||||
| MEM_freeN(context); | MEM_freeN(context); | ||||
| } | } | ||||
| void SEQ_proxy_set(struct Sequence *seq, bool value) | void SEQ_proxy_set(struct Sequence *seq, bool value) | ||||
| { | { | ||||
| if (value) { | if (value) { | ||||
| seq->flag |= SEQ_USE_PROXY; | seq->flag |= SEQ_USE_PROXY; | ||||
| if (seq->strip->proxy == NULL) { | if (seq->strip->proxy == NULL) { | ||||
| seq->strip->proxy = MEM_callocN(sizeof(struct StripProxy), "StripProxy"); | seq->strip->proxy = seq_strip_proxy_alloc(); | ||||
| seq->strip->proxy->quality = 50; | |||||
| seq->strip->proxy->build_tc_flags = SEQ_PROXY_TC_ALL; | |||||
| seq->strip->proxy->build_size_flags = SEQ_PROXY_IMAGE_SIZE_25; | |||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| seq->flag &= ~SEQ_USE_PROXY; | seq->flag &= ~SEQ_USE_PROXY; | ||||
| } | } | ||||
| } | } | ||||
| void seq_proxy_index_dir_set(struct anim *anim, const char *base_dir) | void seq_proxy_index_dir_set(struct anim *anim, const char *base_dir) | ||||
| Show All 17 Lines | |||||