Changeset View
Changeset View
Standalone View
Standalone View
source/blender/sequencer/intern/sequencer.c
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
| #include "prefetch.h" | #include "prefetch.h" | ||||
| #include "sequencer.h" | #include "sequencer.h" | ||||
| #include "utils.h" | #include "utils.h" | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Allocate / Free Functions | /** \name Allocate / Free Functions | ||||
| * \{ */ | * \{ */ | ||||
| StripProxy *seq_strip_proxy_alloc(void) | |||||
| { | |||||
| StripProxy *strip_proxy = MEM_callocN(sizeof(struct StripProxy), "StripProxy"); | |||||
| strip_proxy->quality = 50; | |||||
| strip_proxy->build_tc_flags = SEQ_PROXY_TC_ALL; | |||||
| strip_proxy->tc = SEQ_PROXY_TC_RECORD_RUN; | |||||
| return strip_proxy; | |||||
| } | |||||
| static Strip *seq_strip_alloc(int type) | static Strip *seq_strip_alloc(int type) | ||||
| { | { | ||||
| Strip *strip = MEM_callocN(sizeof(Strip), "strip"); | Strip *strip = MEM_callocN(sizeof(Strip), "strip"); | ||||
| if (ELEM(type, SEQ_TYPE_SOUND_RAM, SEQ_TYPE_SOUND_HD) == 0) { | if (ELEM(type, SEQ_TYPE_SOUND_RAM, SEQ_TYPE_SOUND_HD) == 0) { | ||||
| strip->transform = MEM_callocN(sizeof(struct StripTransform), "StripTransform"); | strip->transform = MEM_callocN(sizeof(struct StripTransform), "StripTransform"); | ||||
| strip->transform->scale_x = 1; | strip->transform->scale_x = 1; | ||||
| strip->transform->scale_y = 1; | strip->transform->scale_y = 1; | ||||
| ▲ Show 20 Lines • Show All 852 Lines • Show Last 20 Lines | |||||