|
Blender V4.3
|
#include <cerrno>#include <cstddef>#include <fcntl.h>#include <sys/types.h>#include <unistd.h>#include "MEM_guardedalloc.h"#include "DNA_defaults.h"#include "DNA_mask_types.h"#include "BLI_fileops.h"#include "BLI_listbase.h"#include "BLI_rect.h"#include "BLI_task.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_movieclip.h"#include "BKE_tracking.h"#include "IMB_colormanagement.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "ED_clip.hh"#include "ED_select_utils.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_view2d.hh"#include "clip_intern.hh"Go to the source code of this file.
Classes | |
| struct | PrefetchJob |
| struct | PrefetchQueue |
Functions | |
Operator Poll Functions | |
| bool | ED_space_clip_poll (bContext *C) |
| bool | ED_space_clip_view_clip_poll (bContext *C) |
| bool | ED_space_clip_tracking_poll (bContext *C) |
| bool | ED_space_clip_maskedit_poll (bContext *C) |
| bool | ED_space_clip_maskedit_visible_splines_poll (bContext *C) |
| bool | ED_space_clip_maskedit_mask_poll (bContext *C) |
| bool | ED_space_clip_maskedit_mask_visible_splines_poll (bContext *C) |
Common Editing Functions | |
| void | ED_space_clip_get_size (const SpaceClip *sc, int *r_width, int *r_height) |
| void | ED_space_clip_get_size_fl (const SpaceClip *sc, float r_size[2]) |
| void | ED_space_clip_get_zoom (const SpaceClip *sc, const ARegion *region, float *r_zoomx, float *r_zoomy) |
| void | ED_space_clip_get_aspect (const SpaceClip *sc, float *r_aspx, float *r_aspy) |
| void | ED_space_clip_get_aspect_dimension_aware (const SpaceClip *sc, float *r_aspx, float *r_aspy) |
| int | ED_space_clip_get_clip_frame_number (const SpaceClip *sc) |
| ImBuf * | ED_space_clip_get_buffer (const SpaceClip *sc) |
| ImBuf * | ED_space_clip_get_stable_buffer (const SpaceClip *sc, float loc[2], float *scale, float *angle) |
| bool | ED_space_clip_get_position (const SpaceClip *sc, const ARegion *region, const int mval[2], float r_fpos[2]) |
| bool | ED_space_clip_color_sample (const SpaceClip *sc, const ARegion *region, const int mval[2], float r_col[3]) |
| void | ED_clip_update_frame (const Main *mainp, int cfra) |
| bool | ED_clip_view_selection (const bContext *C, const ARegion *, bool fit) |
| void | ED_clip_select_all (const SpaceClip *sc, int action, bool *r_has_selection) |
| void | ED_clip_point_undistorted_pos (const SpaceClip *sc, const float co[2], float r_co[2]) |
| void | ED_clip_point_stable_pos (const SpaceClip *sc, const ARegion *region, float x, float y, float *xr, float *yr) |
| void | ED_clip_point_stable_pos__reverse (const SpaceClip *sc, const ARegion *region, const float co[2], float r_co[2]) |
| the reverse of ED_clip_point_stable_pos(), gets the marker region coords. better name here? view_to_track / track_to_view or so? | |
| void | ED_clip_mouse_pos (const SpaceClip *sc, const ARegion *region, const int mval[2], float r_co[2]) |
| bool | ED_space_clip_check_show_trackedit (const SpaceClip *sc) |
| bool | ED_space_clip_check_show_maskedit (const SpaceClip *sc) |
Clip Editing Functions | |
| MovieClip * | ED_space_clip_get_clip (const SpaceClip *sc) |
| void | ED_space_clip_set_clip (bContext *C, bScreen *screen, SpaceClip *sc, MovieClip *clip) |
Masking Editing Functions | |
| Mask * | ED_space_clip_get_mask (const SpaceClip *sc) |
| void | ED_space_clip_set_mask (bContext *C, SpaceClip *sc, Mask *mask) |
Pre-Fetching Functions | |
| static bool | check_prefetch_break () |
| static uchar * | prefetch_read_file_to_memory (MovieClip *clip, int current_frame, short render_size, short render_flag, size_t *r_size) |
| static int | prefetch_find_uncached_frame (MovieClip *clip, int from_frame, int end_frame, short render_size, short render_flag, short direction) |
| static uchar * | prefetch_thread_next_frame (PrefetchQueue *queue, MovieClip *clip, size_t *r_size, int *r_current_frame) |
| static void | prefetch_task_func (TaskPool *__restrict pool, void *task_data) |
| static void | start_prefetch_threads (MovieClip *clip, int start_frame, int current_frame, int end_frame, short render_size, short render_flag, bool *stop, bool *do_update, float *progress) |
| static bool | prefetch_movie_frame (MovieClip *clip, MovieClip *clip_local, int frame, short render_size, short render_flag, bool *stop) |
| static void | do_prefetch_movie (MovieClip *clip, MovieClip *clip_local, int start_frame, int current_frame, int end_frame, short render_size, short render_flag, bool *stop, bool *do_update, float *progress) |
| static void | prefetch_startjob (void *pjv, wmJobWorkerStatus *worker_status) |
| static void | prefetch_freejob (void *pjv) |
| static int | prefetch_get_start_frame (const bContext *C) |
| static int | prefetch_get_final_frame (const bContext *C) |
| static bool | prefetch_check_early_out (const bContext *C) |
| void | clip_start_prefetch_job (const bContext *C) |
| void | ED_clip_view_lock_state_store (const bContext *C, ClipViewLockState *state) |
| void | ED_clip_view_lock_state_restore_no_jump (const bContext *C, const ClipViewLockState *state) |
|
static |
Definition at line 692 of file clip_editor.cc.
References G.
Referenced by prefetch_movie_frame(), and prefetch_thread_next_frame().
| void clip_start_prefetch_job | ( | const bContext * | C | ) |
Definition at line 1111 of file clip_editor.cc.
References BKE_id_copy_ex(), PrefetchJob::clip, PrefetchJob::clip_local, CTX_data_scene(), CTX_wm_manager(), CTX_wm_space_clip(), CTX_wm_window(), PrefetchJob::current_frame, ED_space_clip_get_clip(), PrefetchJob::end_frame, MovieClipUser::framenr, G, MovieClip::id, LIB_ID_COPY_LOCALIZE, MCLIP_SRC_MOVIE, NC_MOVIECLIP, ND_DISPLAY, prefetch_check_early_out(), prefetch_freejob(), prefetch_get_final_frame(), prefetch_get_start_frame(), prefetch_startjob(), MovieClipUser::render_flag, PrefetchJob::render_flag, MovieClipUser::render_size, PrefetchJob::render_size, MovieClip::source, PrefetchJob::start_frame, SpaceClip::user, WM_JOB_PROGRESS, WM_JOB_TYPE_CLIP_PREFETCH, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), and WM_jobs_timer().
Referenced by clip_prefetch_invoke().
|
static |
Definition at line 965 of file clip_editor.cc.
References float, and prefetch_movie_frame().
Referenced by prefetch_startjob().
| void ED_clip_mouse_pos | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_co[2] ) |
Takes event->mval.
Definition at line 548 of file clip_editor.cc.
References ED_clip_point_stable_pos().
Referenced by add_marker_invoke(), clip_set_2d_cursor_invoke(), ED_mask_mouse_pos(), ED_space_clip_color_sample(), ED_space_clip_get_position(), sclip_zoom_set_factor_exec(), select_invoke(), slide_marker_customdata(), slide_plane_marker_customdata(), tracking_plane_marker_check_slide(), view_zoom_in_invoke(), view_zoom_init(), and view_zoom_out_invoke().
| void ED_clip_point_stable_pos | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| float | x, | ||
| float | y, | ||
| float * | xr, | ||
| float * | yr ) |
Definition at line 488 of file clip_editor.cc.
References BKE_tracking_distort_v2(), MovieTracking::camera, ED_space_clip_get_clip(), ED_space_clip_get_size(), ED_space_clip_get_zoom(), invert_m4_m4(), MCLIP_PROXY_RENDER_UNDISTORT, mul_v3_m4v3(), MovieTrackingCamera::pixel_aspect, pos, MovieClipUser::render_flag, SpaceClip::stabmat, UI_view2d_view_to_region(), and SpaceClip::user.
Referenced by add_marker_at_click_modal(), box_select_exec(), circle_select_exec(), ED_clip_mouse_pos(), and ED_mask_point_pos().
| void ED_clip_point_stable_pos__reverse | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| const float | co[2], | ||
| float | r_co[2] ) |
the reverse of ED_clip_point_stable_pos(), gets the marker region coords. better name here? view_to_track / track_to_view or so?
Definition at line 524 of file clip_editor.cc.
References ED_clip_point_undistorted_pos(), ED_space_clip_get_size(), ED_space_clip_get_zoom(), mul_v3_m4v3(), pos, SpaceClip::stabmat, and UI_view2d_view_to_region().
Referenced by do_lasso_select_marker(), ED_mask_point_pos__reverse(), and projectIntViewEx().
Definition at line 467 of file clip_editor.cc.
References BKE_movieclip_get_size(), BKE_tracking_undistort_v2(), SpaceClip::clip, copy_v2_v2(), ED_space_clip_get_clip(), MCLIP_PROXY_RENDER_UNDISTORT, MovieClipUser::render_flag, and SpaceClip::user.
Referenced by draw_marker_areas(), draw_marker_outline(), draw_tracking_tracks(), ED_clip_point_stable_pos__reverse(), marker_to_path_point(), mask_point_undistort_pos(), mask_point_undistort_pos(), and selected_tracking_boundbox().
Definition at line 378 of file clip_editor.cc.
References BKE_tracking_marker_get(), BKE_tracking_object_get_active(), ED_space_clip_get_clip(), ED_space_clip_get_clip_frame_number(), ED_space_clip_marker_is_visible(), LISTBASE_FOREACH, PLANE_TRACK_HIDDEN, PLANE_TRACK_VIEW_SELECTED, MovieTrackingObject::plane_tracks, SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, SELECT, TRACK_HIDDEN, TRACK_VIEW_SELECTED, and MovieTrackingObject::tracks.
Referenced by box_select_exec(), circle_select_exec(), clip_lasso_select_exec(), and select_all_exec().
Definition at line 342 of file clip_editor.cc.
References BKE_movieclip_user_set_frame(), LISTBASE_FOREACH, MovieClipScopes::ok, SpaceClip::scopes, SPACE_CLIP, SpaceClip::user, Main::wm, and WM_window_get_active_screen().
Referenced by ED_update_for_newframe().
| void ED_clip_view_lock_state_restore_no_jump | ( | const bContext * | C, |
| const ClipViewLockState * | state ) |
Definition at line 1179 of file clip_editor.cc.
References BLI_assert, clip_view_calculate_view_selection(), CTX_wm_space_clip(), SpaceClip::flag, SC_LOCK_SELECTION, state, SpaceClip::xlockof, and SpaceClip::ylockof.
Referenced by add_marker_exec(), ED_mask_view_lock_state_restore_no_jump(), lock_selection_toggle_exec(), select_all_exec(), and select_exec().
| void ED_clip_view_lock_state_store | ( | const bContext * | C, |
| ClipViewLockState * | state ) |
Definition at line 1153 of file clip_editor.cc.
References BLI_assert, clip_view_calculate_view_selection(), CTX_wm_space_clip(), SpaceClip::flag, SC_LOCK_SELECTION, state, SpaceClip::xlockof, SpaceClip::xof, SpaceClip::ylockof, SpaceClip::yof, and SpaceClip::zoom.
Referenced by add_marker_exec(), ED_mask_view_lock_state_store(), lock_selection_toggle_exec(), select_all_exec(), and select_exec().
Definition at line 362 of file clip_editor.cc.
References clip_view_calculate_view_selection(), CTX_wm_space_clip(), SpaceClip::xof, SpaceClip::yof, and SpaceClip::zoom.
Referenced by clip_main_region_draw(), and view_selected_exec().
| bool ED_space_clip_check_show_maskedit | ( | const SpaceClip * | sc | ) |
Definition at line 565 of file clip_editor.cc.
References SpaceClip::mode, and SC_MODE_MASKEDIT.
Referenced by ED_space_clip_maskedit_poll(), initTransInfo(), and viewRedrawForce().
| bool ED_space_clip_check_show_trackedit | ( | const SpaceClip * | sc | ) |
Definition at line 556 of file clip_editor.cc.
References SpaceClip::mode, and SC_MODE_TRACKING.
Referenced by ED_space_clip_tracking_poll(), initTransInfo(), recalcData_tracking(), recalcData_tracking_curves(), and viewRedrawForce().
| bool ED_space_clip_color_sample | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_col[3] ) |
Returns color in linear space, matching ED_space_image_color_sample().
Definition at line 296 of file clip_editor.cc.
References ImBuf::byte_buffer, ImBuf::channels, CLAMP, ImBufByteBuffer::colorspace, copy_v3_v3(), ImBufByteBuffer::data, ImBufFloatBuffer::data, ED_clip_mouse_pos(), ED_space_clip_get_buffer(), ImBuf::float_buffer, IMB_colormanagement_colorspace_to_scene_linear_v3(), IMB_freeImBuf(), int, ret, rgb_uchar_to_float(), ImBuf::x, x, and ImBuf::y.
Referenced by eyedropper_color_sample_fl().
Definition at line 174 of file clip_editor.cc.
References BKE_movieclip_get_aspect(), and ED_space_clip_get_clip().
Referenced by clip_main_region_draw(), clip_view_calculate_view_selection(), clip_view_offset_for_center_to_point(), ED_mask_get_aspect(), ED_mask_pixelspace_factor(), ED_space_clip_get_aspect_dimension_aware(), movieclip_main_area_set_view2d(), sclip_zoom_set(), setTransformViewAspect(), and view_all_exec().
| void ED_space_clip_get_aspect_dimension_aware | ( | const SpaceClip * | sc, |
| float * | r_aspx, | ||
| float * | r_aspy ) |
Definition at line 195 of file clip_editor.cc.
References BKE_movieclip_get_size(), SpaceClip::clip, ED_space_clip_get_aspect(), float, SpaceClip::user, and w().
Referenced by setTransformViewAspect().
Definition at line 237 of file clip_editor.cc.
References BKE_movieclip_get_postprocessed_ibuf(), ImBuf::byte_buffer, SpaceClip::clip, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImBuf::float_buffer, IMB_freeImBuf(), SpaceClip::postproc_flag, and SpaceClip::user.
Referenced by clip_draw_main(), ED_space_clip_color_sample(), ED_space_clip_get_position(), metadata_panel_context_draw(), and sample_plane_marker_image_for_operator().
Definition at line 580 of file clip_editor.cc.
References SpaceClip::clip.
Referenced by add_marker(), add_marker_at_click_modal(), add_marker_exec(), annotation_session_initdata(), apply_mouse_slide(), apply_solution_scale_invoke(), apply_solution_scale_poll(), average_tracks_exec(), average_tracks_invoke(), box_select_exec(), box_select_graph_exec(), circle_select_exec(), clean_tracks_exec(), clean_tracks_invoke(), clear_solution_exec(), clear_track_path_exec(), clip_channels_region_draw(), clip_draw_cache_and_notes(), clip_draw_dopesheet_channels(), clip_draw_dopesheet_main(), clip_draw_graph(), clip_draw_grease_pencil(), clip_draw_main(), clip_graph_tracking_iterate(), clip_graph_tracking_values_iterate(), clip_graph_tracking_values_iterate_track_reprojection_error_values(), clip_graph_tracking_values_iterate_track_speed_values(), clip_main_region_draw(), clip_rebuild_proxy_exec(), clip_start_prefetch_job(), copy_tracks_exec(), count_selected_bundles(), create_plane_track_tracks_exec(), createTransTrackingCurves(), createTransTrackingCurvesData(), createTransTrackingData(), createTransTrackingTracksData(), delete_curve_exec(), delete_knot_exec(), delete_marker_exec(), delete_track_exec(), detect_features_exec(), disable_markers_exec(), do_lasso_select_marker(), do_set_scale(), dopesheet_region_draw(), dopesheet_select_channel_exec(), dopesheet_view_all_exec(), draw_frame_curves(), draw_movieclip_buffer(), draw_movieclip_notes(), draw_stabilization_border(), draw_tracks_motion_and_error_curves(), ED_annotation_data_get_pointers_direct(), ED_clip_point_stable_pos(), ED_clip_point_undistorted_pos(), ED_clip_select_all(), ED_space_clip_get_aspect(), ED_space_clip_get_clip_frame_number(), ed_tracking_pick_plane_track(), ed_tracking_pick_point_track(), frame_jump_exec(), get_orientation_object(), graph_disable_markers_exec(), graph_select_all_markers_exec(), hide_tracks_clear_exec(), hide_tracks_exec(), join_tracks_exec(), keyframe_set_flag(), lock_tracks_exec(), mask_parent_set_exec(), mouse_select_curve(), mouse_select_knot(), new_image_from_plane_marker_exec(), new_image_from_plane_marker_poll(), open_invoke(), paste_tracks_exec(), prefetch_check_early_out(), prefetch_get_final_frame(), projectIntViewEx(), recalcData_tracking(), recalcData_tracking_curves(), refine_marker_exec(), sample_plane_marker_image_for_operator(), screen_ctx_selected_movieclip_tracks(), select_all_exec(), select_exec(), select_grouped_exec(), selected_boundbox(), selected_tracking_boundbox(), set_axis_exec(), set_orientation_poll(), set_origin_exec(), set_plane_exec(), set_scale_invoke(), set_solution_scale_invoke(), set_solution_scale_poll(), set_solver_keyframe_exec(), slide_marker_invoke(), slide_plane_marker_invoke(), slide_plane_marker_modal(), solve_camera_initjob(), solve_camera_invoke(), special_aftertrans_update__movieclip(), special_aftertrans_update__movieclip_for_curves(), stabilize_2d_add_exec(), stabilize_2d_poll(), stabilize_2d_remove_exec(), stabilize_2d_rotation_add_exec(), stabilize_2d_rotation_remove_exec(), stabilize_2d_rotation_select_exec(), stabilize_2d_select_exec(), track_copy_color_exec(), track_markers(), track_markers_initjob(), tracking_has_selection(), tracking_object_new_exec(), tracking_object_remove_exec(), update_image_from_plane_marker_exec(), update_image_from_plane_marker_poll(), and viewRedrawForce().
Return current frame number in clip space.
Definition at line 229 of file clip_editor.cc.
References BKE_movieclip_remap_scene_to_clip_frame(), ED_space_clip_get_clip(), MovieClipUser::framenr, and SpaceClip::user.
Referenced by add_marker(), annotation_session_initdata(), apply_mouse_slide(), box_select_exec(), circle_select_exec(), clear_track_path_exec(), clip_draw_grease_pencil(), create_plane_track_tracks_exec(), create_slide_marker_data(), createTransTrackingTracksData(), delete_marker_exec(), detect_features_exec(), disable_markers_exec(), do_lasso_select_marker(), draw_marker_texts(), draw_tracking_tracks(), ED_clip_select_all(), ed_tracking_pick_plane_track(), ed_tracking_pick_point_track(), frame_jump_exec(), join_tracks_exec(), keyframe_set_flag(), mask_parent_set_exec(), recalcData_tracking(), refine_marker_exec(), sample_plane_marker_image_for_operator(), select_grouped_exec(), selected_tracking_boundbox(), slide_marker_customdata(), slide_plane_marker_customdata(), slide_plane_marker_update_homographies(), special_aftertrans_update__movieclip(), track_markers(), track_markers_initjob(), track_to_path_segment(), and tracking_has_selection().
Definition at line 638 of file clip_editor.cc.
References MaskSpaceInfo::mask, and SpaceClip::mask_info.
Referenced by special_aftertrans_update__mask().
| bool ED_space_clip_get_position | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| const int | mval[2], | ||
| float | r_fpos[2] ) |
Definition at line 279 of file clip_editor.cc.
References ED_clip_mouse_pos(), ED_space_clip_get_buffer(), and IMB_freeImBuf().
Referenced by eyedropper_cryptomatte_sample_fl().
Definition at line 141 of file clip_editor.cc.
References BKE_movieclip_get_size(), SpaceClip::clip, IMG_SIZE_FALLBACK, and SpaceClip::user.
Referenced by add_marker(), circle_select_exec(), clip_draw_main(), clip_main_region_draw(), clip_view_calculate_view_selection(), clip_view_offset_for_center_to_point(), ED_clip_point_stable_pos(), ED_clip_point_stable_pos__reverse(), ED_mask_get_size(), ED_space_clip_get_size_fl(), ED_space_clip_get_zoom(), ed_tracking_pick_plane_track(), ed_tracking_pick_point_track(), movieclip_main_area_set_view2d(), sclip_zoom_set(), selected_boundbox(), selected_tracking_boundbox(), slide_marker_customdata(), slide_plane_marker_customdata(), and view_all_exec().
Definition at line 151 of file clip_editor.cc.
References ED_space_clip_get_size().
| ImBuf * ED_space_clip_get_stable_buffer | ( | const SpaceClip * | sc, |
| float | loc[2], | ||
| float * | scale, | ||
| float * | angle ) |
Definition at line 256 of file clip_editor.cc.
References BKE_movieclip_get_stable_ibuf(), ImBuf::byte_buffer, SpaceClip::clip, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImBuf::float_buffer, IMB_freeImBuf(), SpaceClip::postproc_flag, and SpaceClip::user.
Referenced by clip_draw_main(), and clip_main_region_draw().
| void ED_space_clip_get_zoom | ( | const SpaceClip * | sc, |
| const ARegion * | region, | ||
| float * | r_zoomx, | ||
| float * | r_zoomy ) |
Definition at line 159 of file clip_editor.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), ED_space_clip_get_size(), and float.
Referenced by circle_select_exec(), clip_draw_main(), clip_main_region_draw(), ED_clip_point_stable_pos(), ED_clip_point_stable_pos__reverse(), and ED_mask_zoom().
| bool ED_space_clip_maskedit_mask_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 110 of file clip_editor.cc.
References CTX_data_edit_movieclip(), CTX_wm_space_clip(), ED_space_clip_maskedit_poll(), MaskSpaceInfo::mask, and SpaceClip::mask_info.
Referenced by ED_maskedit_mask_poll(), ED_space_clip_maskedit_mask_visible_splines_poll(), and MASK_OT_parent_set().
| bool ED_space_clip_maskedit_mask_visible_splines_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 125 of file clip_editor.cc.
References CTX_wm_space_clip(), MaskSpaceInfo::draw_flag, ED_space_clip_maskedit_mask_poll(), MASK_DRAWFLAG_SPLINE, and SpaceClip::mask_info.
Referenced by ED_maskedit_mask_visible_splines_poll().
| bool ED_space_clip_maskedit_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have mask opened for editing.
Definition at line 89 of file clip_editor.cc.
References SpaceClip::clip, CTX_wm_space_clip(), and ED_space_clip_check_show_maskedit().
Referenced by CLIP_OT_view_center_cursor(), ED_maskedit_poll(), ED_space_clip_maskedit_mask_poll(), and ED_space_clip_maskedit_visible_splines_poll().
| bool ED_space_clip_maskedit_visible_splines_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have mask opened for editing.
Definition at line 100 of file clip_editor.cc.
References CTX_wm_space_clip(), MaskSpaceInfo::draw_flag, ED_space_clip_maskedit_poll(), MASK_DRAWFLAG_SPLINE, and SpaceClip::mask_info.
Referenced by ED_maskedit_visible_splines_poll().
| bool ED_space_clip_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
Definition at line 56 of file clip_editor.cc.
References SpaceClip::clip, and CTX_wm_space_clip().
Referenced by CLIP_OT_cursor_set(), CLIP_OT_lock_selection_toggle(), CLIP_OT_mode_set(), CLIP_OT_rebuild_proxy(), and metadata_panel_context_poll().
Definition at line 585 of file clip_editor.cc.
References BKE_movieclip_clear_cache(), SpaceClip::clip, CTX_wm_screen(), ELEM, id_us_ensure_real(), LISTBASE_FOREACH, NA_SELECTED, NC_MOVIECLIP, SC_VIEW_CLIP, SPACE_CLIP, SpaceClip::view, and WM_event_add_notifier().
Referenced by open_exec().
Definition at line 643 of file clip_editor.cc.
References id_us_ensure_real(), mask(), MaskSpaceInfo::mask, SpaceClip::mask_info, NA_SELECTED, NC_MASK, and WM_event_add_notifier().
Referenced by ED_mask_new().
| bool ED_space_clip_tracking_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have movie clip opened for editing.
Definition at line 78 of file clip_editor.cc.
References SpaceClip::clip, CTX_wm_space_clip(), and ED_space_clip_check_show_trackedit().
Referenced by CLIP_OT_add_marker(), CLIP_OT_add_marker_at_click(), CLIP_OT_average_tracks(), CLIP_OT_clean_tracks(), CLIP_OT_clear_solution(), CLIP_OT_clear_track_path(), CLIP_OT_copy_tracks(), CLIP_OT_create_plane_track(), CLIP_OT_delete_marker(), CLIP_OT_delete_track(), CLIP_OT_detect_features(), CLIP_OT_disable_markers(), CLIP_OT_hide_tracks(), CLIP_OT_hide_tracks_clear(), CLIP_OT_join_tracks(), CLIP_OT_keyframe_delete(), CLIP_OT_keyframe_insert(), CLIP_OT_lock_tracks(), CLIP_OT_refine_markers(), CLIP_OT_select_all(), CLIP_OT_select_box(), CLIP_OT_select_circle(), CLIP_OT_select_grouped(), CLIP_OT_select_lasso(), CLIP_OT_set_solver_keyframe(), CLIP_OT_slide_marker(), CLIP_OT_slide_plane_marker(), CLIP_OT_solve_camera(), CLIP_OT_track_copy_color(), CLIP_OT_track_markers(), CLIP_OT_tracking_object_new(), CLIP_OT_tracking_object_remove(), ED_space_clip_graph_poll(), new_image_from_plane_marker_poll(), paste_tracks_poll(), space_clip_dopesheet_poll(), stabilize_2d_poll(), and update_image_from_plane_marker_poll().
| bool ED_space_clip_view_clip_poll | ( | bContext * | C | ) |
Returns true when the following conditions are met:
It is not required to have movie clip opened for editing.
Definition at line 67 of file clip_editor.cc.
References CTX_wm_space_clip(), SC_VIEW_CLIP, and SpaceClip::view.
Referenced by CLIP_OT_prefetch(), CLIP_OT_set_scene_frames(), CLIP_OT_view_all(), CLIP_OT_view_pan(), CLIP_OT_view_selected(), CLIP_OT_view_zoom(), CLIP_OT_view_zoom_in(), CLIP_OT_view_zoom_out(), and CLIP_OT_view_zoom_ratio().
|
static |
Definition at line 1078 of file clip_editor.cc.
References BKE_movieclip_get_duration(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieClipUser::framenr, prefetch_find_uncached_frame(), prefetch_get_final_frame(), prefetch_get_start_frame(), MovieClipUser::render_flag, MovieClipUser::render_size, and SpaceClip::user.
Referenced by clip_start_prefetch_job().
|
static |
Definition at line 740 of file clip_editor.cc.
References BKE_movieclip_has_cached_frame(), DNA_struct_default_get, MovieClipUser::framenr, MovieClipUser::render_flag, and MovieClipUser::render_size.
Referenced by prefetch_check_early_out(), and prefetch_thread_next_frame().
|
static |
Definition at line 1038 of file clip_editor.cc.
References BKE_libblock_free_data(), BKE_libblock_free_datablock(), BLI_assert, PrefetchJob::clip_local, MovieClip::id, MEM_freeN(), and ID::py_instance.
Referenced by clip_start_prefetch_job().
Definition at line 1060 of file clip_editor.cc.
References CTX_data_scene(), CTX_wm_space_clip(), ED_space_clip_get_clip(), and min_ii().
Referenced by clip_start_prefetch_job(), and prefetch_check_early_out().
Definition at line 1053 of file clip_editor.cc.
References CTX_data_scene().
Referenced by clip_start_prefetch_job(), and prefetch_check_early_out().
|
static |
Definition at line 924 of file clip_editor.cc.
References BKE_movieclip_anim_ibuf_for_frame_no_lock(), BKE_movieclip_has_cached_frame(), BKE_movieclip_put_frame_if_possible(), check_prefetch_break(), DNA_struct_default_get, MovieClipUser::framenr, IMB_freeImBuf(), MovieClipUser::render_flag, MovieClipUser::render_size, and result.
Referenced by do_prefetch_movie().
|
static |
Definition at line 698 of file clip_editor.cc.
References BKE_movieclip_filepath_for_frame(), BLI_file_descriptor_size(), BLI_open(), BLI_read(), DNA_struct_default_get, ELEM, FILE_MAX, MovieClipUser::framenr, MEM_freeN(), O_BINARY, MovieClipUser::render_flag, MovieClipUser::render_size, size(), and UNLIKELY.
Referenced by prefetch_thread_next_frame().
|
static |
Definition at line 1004 of file clip_editor.cc.
References BLI_assert_msg, PrefetchJob::clip, PrefetchJob::clip_local, PrefetchJob::current_frame, do_prefetch_movie(), wmJobWorkerStatus::do_update, PrefetchJob::end_frame, MCLIP_SRC_MOVIE, MCLIP_SRC_SEQUENCE, wmJobWorkerStatus::progress, PrefetchJob::render_flag, PrefetchJob::render_size, MovieClip::source, PrefetchJob::start_frame, start_prefetch_threads(), and wmJobWorkerStatus::stop.
Referenced by clip_start_prefetch_job().
|
static |
Definition at line 839 of file clip_editor.cc.
References BKE_movieclip_convert_multilayer_ibuf(), BKE_movieclip_put_frame_if_possible(), BLI_task_pool_user_data(), DNA_struct_default_get, flag, MovieClipUser::framenr, IB_alphamode_detect, IB_metadata, IB_multilayer, IB_rect, IMB_freeImBuf(), IMB_ibImageFromMemory(), MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_USE_PROXY, MEM_freeN(), prefetch_thread_next_frame(), MovieClipUser::render_flag, MovieClipUser::render_size, result, size(), and use_proxy().
Referenced by start_prefetch_threads().
|
static |
Definition at line 776 of file clip_editor.cc.
References BLI_spin_lock(), BLI_spin_unlock(), check_prefetch_break(), float, IN_RANGE_INCL, prefetch_find_uncached_frame(), and prefetch_read_file_to_memory().
Referenced by prefetch_task_func().
|
static |
Definition at line 885 of file clip_editor.cc.
References BLI_spin_end(), BLI_spin_init(), BLI_task_pool_create(), BLI_task_pool_free(), BLI_task_pool_push(), BLI_task_pool_work_and_wait(), BLI_task_scheduler_num_threads(), prefetch_task_func(), task_pool, and TASK_PRIORITY_LOW.
Referenced by prefetch_startjob().