Changeset View
Changeset View
Standalone View
Standalone View
source/blender/sequencer/intern/prefetch.c
| Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Lines | for (int i = 0; i < count; i++) { | ||||
| if (seq_arr[i]->type == SEQ_TYPE_META && | if (seq_arr[i]->type == SEQ_TYPE_META && | ||||
| seq_prefetch_do_skip_frame(pfjob, &seq_arr[i]->seqbase)) { | seq_prefetch_do_skip_frame(pfjob, &seq_arr[i]->seqbase)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (seq_arr[i]->type == SEQ_TYPE_SCENE && (seq_arr[i]->flag & SEQ_SCENE_STRIPS) == 0) { | if (seq_arr[i]->type == SEQ_TYPE_SCENE && (seq_arr[i]->flag & SEQ_SCENE_STRIPS) == 0) { | ||||
| int cached_types = 0; | int cached_types = 0; | ||||
| ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_FINAL_OUT, false); | ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_FINAL_OUT); | ||||
| if (ibuf != NULL) { | if (ibuf != NULL) { | ||||
| cached_types |= SEQ_CACHE_STORE_FINAL_OUT; | cached_types |= SEQ_CACHE_STORE_FINAL_OUT; | ||||
| IMB_freeImBuf(ibuf); | IMB_freeImBuf(ibuf); | ||||
| ibuf = NULL; | ibuf = NULL; | ||||
| } | } | ||||
| ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_COMPOSITE, false); | ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_COMPOSITE); | ||||
| if (ibuf != NULL) { | if (ibuf != NULL) { | ||||
| cached_types |= SEQ_CACHE_STORE_COMPOSITE; | cached_types |= SEQ_CACHE_STORE_COMPOSITE; | ||||
| IMB_freeImBuf(ibuf); | IMB_freeImBuf(ibuf); | ||||
| ibuf = NULL; | ibuf = NULL; | ||||
| } | } | ||||
| ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_PREPROCESSED, false); | ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_PREPROCESSED); | ||||
| if (ibuf != NULL) { | if (ibuf != NULL) { | ||||
| cached_types |= SEQ_CACHE_STORE_PREPROCESSED; | cached_types |= SEQ_CACHE_STORE_PREPROCESSED; | ||||
| IMB_freeImBuf(ibuf); | IMB_freeImBuf(ibuf); | ||||
| ibuf = NULL; | ibuf = NULL; | ||||
| } | } | ||||
| ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_RAW, false); | ibuf = seq_cache_get(ctx, seq_arr[i], cfra, SEQ_CACHE_STORE_RAW); | ||||
| if (ibuf != NULL) { | if (ibuf != NULL) { | ||||
| cached_types |= SEQ_CACHE_STORE_RAW; | cached_types |= SEQ_CACHE_STORE_RAW; | ||||
| IMB_freeImBuf(ibuf); | IMB_freeImBuf(ibuf); | ||||
| ibuf = NULL; | ibuf = NULL; | ||||
| } | } | ||||
| if ((cached_types & (SEQ_CACHE_STORE_RAW | SEQ_CACHE_STORE_PREPROCESSED)) != 0) { | if ((cached_types & (SEQ_CACHE_STORE_RAW | SEQ_CACHE_STORE_PREPROCESSED)) != 0) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines | |||||