Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/indexer.c
| Show First 20 Lines • Show All 1,495 Lines • ▼ Show 20 Lines | for (i = 0; i < num_proxy_sizes; i++) { | ||||
| char filename[FILE_MAX]; | char filename[FILE_MAX]; | ||||
| get_proxy_filename(anim, proxy_size, filename, false); | get_proxy_filename(anim, proxy_size, filename, false); | ||||
| if (BLI_exists(filename)) { | if (BLI_exists(filename)) { | ||||
| existing |= proxy_size; | existing |= proxy_size; | ||||
| } | } | ||||
| } | } | ||||
| return existing; | return existing; | ||||
| } | } | ||||
| IMB_Timecode_Type IMB_anim_timecode_get_existing(struct anim *anim) | |||||
| { | |||||
| const int num_proxy_sizes = IMB_TC_MAX_SLOT; | |||||
| IMB_Timecode_Type existing = 0; | |||||
| int i; | |||||
| for (i = 0; i < num_proxy_sizes; i++) { | |||||
| IMB_Proxy_Size timecode_type = tc_types[i]; | |||||
| char filename[FILE_MAX]; | |||||
| get_tc_filename(anim, timecode_type, filename); | |||||
| if (BLI_exists(filename)) { | |||||
| existing |= timecode_type; | |||||
| } | |||||
| } | |||||
| return existing; | |||||
| } | |||||