Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/indexer.c
| Show First 20 Lines • Show All 1,087 Lines • ▼ Show 20 Lines | static void index_rebuild_fallback(FallbackIndexBuilderContext *context, | ||||
| short *do_update, | short *do_update, | ||||
| float *progress) | float *progress) | ||||
| { | { | ||||
| int cnt = IMB_anim_get_duration(context->anim, IMB_TC_NONE); | int cnt = IMB_anim_get_duration(context->anim, IMB_TC_NONE); | ||||
| int i, pos; | int i, pos; | ||||
| struct anim *anim = context->anim; | struct anim *anim = context->anim; | ||||
| for (pos = 0; pos < cnt; pos++) { | for (pos = 0; pos < cnt; pos++) { | ||||
| struct ImBuf *ibuf = IMB_anim_absolute(anim, pos, IMB_TC_NONE, IMB_PROXY_NONE); | struct ImBuf *ibuf = IMB_anim_absolute( | ||||
| anim, pos, IMB_TC_NONE, IMB_PROXY_NONE, IMB_DOWNSCALE_NONE); | |||||
| struct ImBuf *tmp_ibuf = IMB_dupImBuf(ibuf); | struct ImBuf *tmp_ibuf = IMB_dupImBuf(ibuf); | ||||
| float next_progress = (float)pos / (float)cnt; | float next_progress = (float)pos / (float)cnt; | ||||
| if (*progress != next_progress) { | if (*progress != next_progress) { | ||||
| *progress = next_progress; | *progress = next_progress; | ||||
| *do_update = true; | *do_update = true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines | |||||