Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/clip_editor.c
| Show First 20 Lines • Show All 955 Lines • ▼ Show 20 Lines | static void start_prefetch_threads(MovieClip *clip, | ||||
| queue.render_size = render_size; | queue.render_size = render_size; | ||||
| queue.render_flag = render_flag; | queue.render_flag = render_flag; | ||||
| queue.forward = 1; | queue.forward = 1; | ||||
| queue.stop = stop; | queue.stop = stop; | ||||
| queue.do_update = do_update; | queue.do_update = do_update; | ||||
| queue.progress = progress; | queue.progress = progress; | ||||
| task_pool = BLI_task_pool_create(task_scheduler, &queue); | task_pool = BLI_task_pool_create(task_scheduler, &queue, TASK_PRIORITY_LOW); | ||||
| for (i = 0; i < tot_thread; i++) { | for (i = 0; i < tot_thread; i++) { | ||||
| BLI_task_pool_push(task_pool, prefetch_task_func, clip, false, TASK_PRIORITY_LOW); | BLI_task_pool_push(task_pool, prefetch_task_func, clip, false, NULL); | ||||
| } | } | ||||
| BLI_task_pool_work_and_wait(task_pool); | BLI_task_pool_work_and_wait(task_pool); | ||||
| BLI_task_pool_free(task_pool); | BLI_task_pool_free(task_pool); | ||||
| BLI_spin_end(&queue.spin); | BLI_spin_end(&queue.spin); | ||||
| } | } | ||||
| static bool prefetch_movie_frame( | static bool prefetch_movie_frame( | ||||
| ▲ Show 20 Lines • Show All 208 Lines • Show Last 20 Lines | |||||