Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_clip/clip_editor.c
| Show First 20 Lines • Show All 1,147 Lines • ▼ Show 20 Lines | void clip_start_prefetch_job(const bContext *C) | ||||
| SpaceClip *sc = CTX_wm_space_clip(C); | SpaceClip *sc = CTX_wm_space_clip(C); | ||||
| if (prefetch_check_early_out(C)) { | if (prefetch_check_early_out(C)) { | ||||
| return; | return; | ||||
| } | } | ||||
| wm_job = WM_jobs_get(CTX_wm_manager(C), | wm_job = WM_jobs_get(CTX_wm_manager(C), | ||||
| CTX_wm_window(C), | CTX_wm_window(C), | ||||
| CTX_wm_area(C), | CTX_data_scene(C), | ||||
| "Prefetching", | "Prefetching", | ||||
| WM_JOB_PROGRESS, | WM_JOB_PROGRESS, | ||||
| WM_JOB_TYPE_CLIP_PREFETCH); | WM_JOB_TYPE_CLIP_PREFETCH); | ||||
| /* create new job */ | /* create new job */ | ||||
| pj = MEM_callocN(sizeof(PrefetchJob), "prefetch job"); | pj = MEM_callocN(sizeof(PrefetchJob), "prefetch job"); | ||||
| pj->clip = ED_space_clip_get_clip(sc); | pj->clip = ED_space_clip_get_clip(sc); | ||||
| pj->start_frame = prefetch_get_start_frame(C); | pj->start_frame = prefetch_get_start_frame(C); | ||||
| Show All 14 Lines | |||||