Blender
V3.3
|
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "DNA_defaults.h"
#include "DNA_scene_types.h"
#include "DNA_userdef_types.h"
#include "BLI_fileops.h"
#include "BLI_math.h"
#include "BLI_path_util.h"
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BLI_task.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_movieclip.h"
#include "BKE_report.h"
#include "BKE_tracking.h"
#include "WM_api.h"
#include "WM_types.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "ED_clip.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "UI_view2d.h"
#include "PIL_time.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "clip_intern.h"
Go to the source code of this file.
Classes | |
struct | ViewPanData |
struct | ViewZoomData |
struct | ProxyBuildJob |
struct | ProxyQueue |
struct | ProxyThread |
View Pan Operator | |
typedef struct ViewPanData | ViewPanData |
static void | view_pan_init (bContext *C, wmOperator *op, const wmEvent *event) |
static void | view_pan_exit (bContext *C, wmOperator *op, bool cancel) |
static int | view_pan_exec (bContext *C, wmOperator *op) |
static int | view_pan_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
static int | view_pan_modal (bContext *C, wmOperator *op, const wmEvent *event) |
static void | view_pan_cancel (bContext *C, wmOperator *op) |
void | CLIP_OT_view_pan (wmOperatorType *ot) |
View Zoom Operator | |
typedef struct ViewZoomData | ViewZoomData |
static void | view_zoom_init (bContext *C, wmOperator *op, const wmEvent *event) |
static void | view_zoom_exit (bContext *C, wmOperator *op, bool cancel) |
static int | view_zoom_exec (bContext *C, wmOperator *op) |
static int | view_zoom_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
static void | view_zoom_apply (bContext *C, ViewZoomData *vpd, wmOperator *op, const wmEvent *event, const bool zoom_to_pos) |
static int | view_zoom_modal (bContext *C, wmOperator *op, const wmEvent *event) |
static void | view_zoom_cancel (bContext *C, wmOperator *op) |
void | CLIP_OT_view_zoom (wmOperatorType *ot) |
Rebuild Proxies Operator | |
typedef struct ProxyBuildJob | ProxyJob |
typedef struct ProxyQueue | ProxyQueue |
typedef struct ProxyThread | ProxyThread |
static void | proxy_freejob (void *pjv) |
static int | proxy_bitflag_to_array (int size_flag, int build_sizes[4], int undistort) |
static void | do_movie_proxy (void *pjv, int *UNUSED(build_sizes), int UNUSED(build_count), int *build_undistort_sizes, int build_undistort_count, short *stop, short *do_update, float *progress) |
static uchar * | proxy_thread_next_frame (ProxyQueue *queue, MovieClip *clip, size_t *r_size, int *r_cfra) |
static void | proxy_task_func (TaskPool *__restrict pool, void *task_data) |
static void | do_sequence_proxy (void *pjv, int *build_sizes, int build_count, int *build_undistort_sizes, int build_undistort_count, short *stop, short *do_update, float *progress) |
static void | proxy_startjob (void *pjv, short *stop, short *do_update, float *progress) |
static void | proxy_endjob (void *pjv) |
static int | clip_rebuild_proxy_exec (bContext *C, wmOperator *UNUSED(op)) |
void | CLIP_OT_rebuild_proxy (wmOperatorType *ot) |
typedef struct ProxyBuildJob ProxyJob |
typedef struct ProxyQueue ProxyQueue |
typedef struct ProxyThread ProxyThread |
typedef struct ViewPanData ViewPanData |
typedef struct ViewZoomData ViewZoomData |
|
static |
Definition at line 1059 of file clip_ops.c.
References C, RenderData::cfra, CTX_data_scene(), DEG_id_tag_update(), FRAMENUMBER_MIN_CLAMP, Scene::id, ID_RECALC_FRAME_CHANGE, NC_SCENE, ND_FRAME, wmOperator::ptr, Scene::r, RNA_int_get(), scene, RenderData::subframe, and WM_event_add_notifier().
Referenced by change_frame_exec(), change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 1073 of file clip_ops.c.
References C, change_frame_apply(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_change_frame().
|
static |
Definition at line 1102 of file clip_ops.c.
References C, change_frame_apply(), CTX_wm_region(), frame_from_event(), wmEvent::mval, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ARegion::regiontype, RGN_TYPE_WINDOW, RNA_int_set(), UI_DPI_FAC, and WM_event_add_modal_handler().
Referenced by CLIP_OT_change_frame().
|
static |
Definition at line 1122 of file clip_ops.c.
References C, change_frame_apply(), EVT_ESCKEY, frame_from_event(), KM_RELEASE, LEFTMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHTMOUSE, RNA_int_set(), wmEvent::type, and wmEvent::val.
Referenced by CLIP_OT_change_frame().
Definition at line 1049 of file clip_ops.c.
References C, CTX_wm_space_clip(), G, and NULL.
Referenced by CLIP_OT_change_frame().
|
static |
Definition at line 158 of file clip_ops.c.
References C, wmOperator::ptr, RNA_string_set(), and WM_event_add_fileselect().
Referenced by open_invoke().
void CLIP_OT_change_frame | ( | wmOperatorType * | ot | ) |
Definition at line 1144 of file clip_ops.c.
References change_frame_exec(), change_frame_invoke(), change_frame_modal(), change_frame_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAXFRAME, MINAFRAME, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_cursor_set | ( | wmOperatorType * | ot | ) |
Definition at line 1798 of file clip_ops.c.
References clip_set_2d_cursor_exec(), clip_set_2d_cursor_invoke(), wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_float_vector(), and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_lock_selection_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1848 of file clip_ops.c.
References wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, lock_selection_toggle_exec(), wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
void CLIP_OT_mode_set | ( | wmOperatorType * | ot | ) |
Definition at line 1601 of file clip_ops.c.
References wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::idname, mode_set_exec(), wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_enum(), rna_enum_clip_editor_mode_items, SC_MODE_TRACKING, and wmOperatorType::srna.
Referenced by clip_operatortypes().
void CLIP_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 295 of file clip_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, open_cancel(), open_exec(), open_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, WM_FILESEL_DIRECTORY, WM_FILESEL_FILES, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by clip_operatortypes().
void CLIP_OT_prefetch | ( | wmOperatorType * | ot | ) |
Definition at line 1707 of file clip_ops.c.
References clip_prefetch_invoke(), clip_prefetch_modal(), wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
void CLIP_OT_rebuild_proxy | ( | wmOperatorType * | ot | ) |
Definition at line 1563 of file clip_ops.c.
References clip_rebuild_proxy_exec(), wmOperatorType::description, ED_space_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
void CLIP_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 342 of file clip_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and reload_exec().
Referenced by clip_operatortypes().
void CLIP_OT_set_scene_frames | ( | wmOperatorType * | ot | ) |
Definition at line 1748 of file clip_ops.c.
References clip_set_scene_frames_exec(), wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
void CLIP_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 957 of file clip_ops.c.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and view_all_exec().
Referenced by clip_operatortypes().
void CLIP_OT_view_center_cursor | ( | wmOperatorType * | ot | ) |
Definition at line 996 of file clip_ops.c.
References wmOperatorType::description, ED_space_clip_maskedit_poll(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and view_center_cursor_exec().
Referenced by clip_operatortypes().
void CLIP_OT_view_pan | ( | wmOperatorType * | ot | ) |
Definition at line 496 of file clip_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, RNA_def_float_vector(), wmOperatorType::srna, view_pan_cancel(), view_pan_exec(), view_pan_invoke(), and view_pan_modal().
Referenced by clip_operatortypes().
void CLIP_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 1028 of file clip_ops.c.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, and view_selected_exec().
Referenced by clip_operatortypes().
void CLIP_OT_view_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 699 of file clip_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float(), RNA_def_property_flag(), wmOperatorType::srna, view_zoom_cancel(), view_zoom_exec(), view_zoom_invoke(), view_zoom_modal(), and WM_operator_properties_use_cursor_init().
Referenced by clip_operatortypes().
void CLIP_OT_view_zoom_in | ( | wmOperatorType * | ot | ) |
Definition at line 765 of file clip_ops.c.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), wmOperatorType::srna, view_zoom_in_exec(), and view_zoom_in_invoke().
Referenced by clip_operatortypes().
void CLIP_OT_view_zoom_out | ( | wmOperatorType * | ot | ) |
Definition at line 822 of file clip_ops.c.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_float_vector(), RNA_def_property_flag(), wmOperatorType::srna, view_zoom_out_exec(), and view_zoom_out_invoke().
Referenced by clip_operatortypes().
void CLIP_OT_view_zoom_ratio | ( | wmOperatorType * | ot | ) |
Definition at line 874 of file clip_ops.c.
References wmOperatorType::description, ED_space_clip_view_clip_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_LOCK_BYPASS, ot, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, and view_zoom_ratio_exec().
Referenced by clip_operatortypes().
|
static |
Definition at line 1697 of file clip_ops.c.
References C, clip_start_prefetch_job(), OPERATOR_RUNNING_MODAL, and WM_event_add_modal_handler().
Referenced by CLIP_OT_prefetch().
|
static |
Definition at line 1681 of file clip_ops.c.
References C, CTX_wm_area(), CTX_wm_manager(), EVT_ESCKEY, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmEvent::type, WM_JOB_TYPE_CLIP_PREFETCH, and WM_jobs_test().
Referenced by CLIP_OT_prefetch().
|
static |
Definition at line 1515 of file clip_ops.c.
References MovieClip::anim, blender::compositor::area(), MovieClipProxy::build_size_flag, MovieClipProxy::build_tc_flag, C, ProxyBuildJob::clip, ProxyBuildJob::clip_flag, CTX_data_main(), CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_space_clip(), CTX_wm_window(), ED_area_tag_redraw(), ED_space_clip_get_clip(), MovieClip::flag, G, IMB_anim_index_rebuild_context(), ProxyBuildJob::index_context, ProxyBuildJob::main, MCLIP_TIMECODE_FLAGS, MCLIP_USE_PROXY, MEM_callocN, NC_MOVIECLIP, ND_DISPLAY, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, MovieClip::proxy, proxy_endjob(), proxy_freejob(), proxy_startjob(), MovieClipProxy::quality, scene, ProxyBuildJob::scene, WM_JOB_PROGRESS, WM_JOB_TYPE_CLIP_BUILD_PROXY, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), and WM_jobs_timer().
Referenced by CLIP_OT_rebuild_proxy().
|
static |
Definition at line 1766 of file clip_ops.c.
References SpaceClip::around, C, CTX_wm_space_clip(), SpaceClip::cursor, SpaceClip::mode, NC_SPACE, ND_SPACE_CLIP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_float_get_array(), SC_MODE_MASKEDIT, V3D_AROUND_CURSOR, and WM_event_add_notifier().
Referenced by CLIP_OT_cursor_set(), and clip_set_2d_cursor_invoke().
|
static |
Definition at line 1786 of file clip_ops.c.
References C, clip_set_2d_cursor_exec(), CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), wmEvent::mval, wmOperator::ptr, and RNA_float_set_array().
Referenced by CLIP_OT_cursor_set().
|
static |
Definition at line 1726 of file clip_ops.c.
References BKE_movieclip_get_duration(), C, CTX_data_edit_movieclip(), CTX_data_scene(), RenderData::efra, ELEM, max_ii(), NC_SCENE, ND_FRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, scene, RenderData::sfra, MovieClip::start_frame, and WM_event_add_notifier().
Referenced by CLIP_OT_set_scene_frames().
|
static |
Definition at line 1217 of file clip_ops.c.
References BKE_movieclip_build_proxy_frame(), BKE_movieclip_get_size(), BKE_tracking_distortion_free(), BKE_tracking_distortion_new(), BKE_tracking_distortion_set_threads(), BLI_system_thread_count(), ProxyBuildJob::clip, ProxyBuildJob::clip_flag, float(), G, height, IMB_anim_index_rebuild(), ProxyBuildJob::index_context, MovieClip::len, NULL, ProxyBuildJob::stop, blender::compositor::threads, MovieClip::tracking, and width.
Referenced by proxy_startjob().
|
static |
Definition at line 1388 of file clip_ops.c.
References BKE_movieclip_get_size(), BKE_tracking_distortion_free(), BKE_tracking_distortion_new(), 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(), ProxyThread::build_count, ProxyThread::build_sizes, ProxyThread::build_undistort_count, ProxyThread::build_undistort_sizes, ProxyBuildJob::clip, ProxyThread::clip, ProxyThread::distortion, RenderData::efra, handles, height, MEM_callocN, MEM_freeN, NULL, proxy_task_func(), queue, Scene::r, scene, ProxyBuildJob::scene, RenderData::sfra, task_pool, TASK_PRIORITY_LOW, MovieClip::tracking, and width.
Referenced by proxy_startjob().
Definition at line 1869 of file clip_ops.c.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), RNA_struct_idprops_unset(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
Definition at line 1080 of file clip_ops.c.
References C, CTX_data_scene(), CTX_wm_region(), RenderData::efra, wmEvent::mval, Scene::r, ARegion::regiontype, RGN_TYPE_WINDOW, round_fl_to_int(), scene, RenderData::sfra, UI_view2d_region_to_view(), ARegion::v2d, and ARegion::winx.
Referenced by change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 1832 of file clip_ops.c.
References C, CTX_wm_space_clip(), ED_clip_view_lock_state_restore_no_jump(), ED_clip_view_lock_state_store(), SpaceClip::flag, NC_SPACE, ND_SPACE_CLIP, NULL, OPERATOR_FINISHED, SC_LOCK_SELECTION, and WM_event_add_notifier().
Referenced by CLIP_OT_lock_selection_toggle().
|
static |
Definition at line 1584 of file clip_ops.c.
References C, CTX_wm_space_clip(), SpaceClip::mode, NC_SPACE, ND_SPACE_CLIP, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SC_MODE_MASKEDIT, SC_VIEW_CLIP, SpaceClip::view, and WM_event_add_notifier().
Referenced by CLIP_OT_mode_set().
|
static |
Definition at line 173 of file clip_ops.c.
References wmOperator::customdata, MEM_freeN, and NULL.
Referenced by CLIP_OT_open().
|
static |
Definition at line 179 of file clip_ops.c.
References BKE_movieclip_file_add_exists(), BKE_report(), BKE_reportf(), BLI_join_dirfile(), BLI_path_rel(), C, CTX_data_main(), CTX_wm_screen(), CTX_wm_space_clip(), wmOperator::customdata, DEG_relations_tag_update(), ED_space_clip_set_clip(), FILE_MAX, Main::filepath, MovieClip::id, id_us_min(), MEM_freeN, NA_ADDED, NC_MOVIECLIP, NULL, open_init(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, wmOperator::ptr, PropertyPointerRNA::ptr, wmOperator::reports, RNA_boolean_get(), RNA_collection_is_empty(), RNA_id_pointer_create(), RNA_property_collection_lookup_int(), RNA_property_pointer_set(), RNA_property_update(), RNA_string_get(), RNA_struct_find_property(), RPT_ERROR, str, TIP_, and WM_event_add_notifier().
Referenced by CLIP_OT_open(), and open_invoke().
|
static |
Definition at line 165 of file clip_ops.c.
References C, wmOperator::customdata, MEM_callocN, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and UI_context_active_but_prop_get_templateID().
Referenced by open_exec(), and open_invoke().
|
static |
Definition at line 260 of file clip_ops.c.
References BLI_path_abs(), BLI_path_parent_dir(), BLI_strncpy(), C, clip_filesel(), CTX_data_main(), CTX_wm_space_clip(), ED_space_clip_get_clip(), FILE_MAX, MovieClip::filepath, NULL, open_exec(), open_init(), OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_set(), RNA_struct_property_is_set(), and USER_RELPATHS.
Referenced by CLIP_OT_open().
|
static |
Definition at line 1186 of file clip_ops.c.
References MCLIP_PROXY_RENDER_SIZE_100, MCLIP_PROXY_RENDER_SIZE_25, MCLIP_PROXY_RENDER_SIZE_50, MCLIP_PROXY_RENDER_SIZE_75, MCLIP_PROXY_SIZE_100, MCLIP_PROXY_SIZE_25, MCLIP_PROXY_SIZE_50, MCLIP_PROXY_SIZE_75, MCLIP_PROXY_UNDISTORTED_SIZE_100, MCLIP_PROXY_UNDISTORTED_SIZE_25, MCLIP_PROXY_UNDISTORTED_SIZE_50, and MCLIP_PROXY_UNDISTORTED_SIZE_75.
Referenced by proxy_startjob().
Definition at line 1491 of file clip_ops.c.
References MovieClip::anim, BKE_movieclip_clear_proxy_cache(), ProxyBuildJob::clip, DEG_id_tag_update(), MovieClip::id, ID_RECALC_SOURCE, IMB_anim_index_rebuild_finish(), IMB_close_anim_proxies(), ProxyBuildJob::index_context, MCLIP_SRC_MOVIE, NC_MOVIECLIP, ND_DISPLAY, MovieClip::source, ProxyBuildJob::stop, and WM_main_add_notifier().
Referenced by clip_rebuild_proxy_exec().
Definition at line 1179 of file clip_ops.c.
References MEM_freeN.
Referenced by clip_rebuild_proxy_exec().
Definition at line 1455 of file clip_ops.c.
References MovieClipProxy::build_size_flag, ProxyBuildJob::clip, do_movie_proxy(), do_sequence_proxy(), MCLIP_SRC_MOVIE, MovieClip::proxy, proxy_bitflag_to_array(), and MovieClip::source.
Referenced by clip_rebuild_proxy_exec().
Definition at line 1354 of file clip_ops.c.
References BKE_movieclip_build_proxy_frame_for_ibuf(), BLI_task_pool_user_data(), data, IB_alphamode_detect, IB_multilayer, IB_rect, IMB_freeImBuf(), IMB_ibImageFromMemory(), MEM_freeN, NULL, blender::compositor::pool, proxy_thread_next_frame(), queue, and size().
Referenced by do_sequence_proxy().
|
static |
Definition at line 1300 of file clip_ops.c.
References BKE_movieclip_filename_for_frame(), BLI_file_descriptor_size(), BLI_open(), BLI_spin_lock(), BLI_spin_unlock(), DNA_struct_default_get, file, FILE_MAX, float(), MovieClipUser::framenr, MEM_freeN, MEM_mallocN, NULL, O_BINARY, queue, and size().
Referenced by proxy_task_func().
|
static |
Definition at line 326 of file clip_ops.c.
References BKE_movieclip_reload(), C, CTX_data_edit_movieclip(), CTX_data_main(), CTX_wm_manager(), NA_EDITED, NC_MOVIECLIP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, WM_event_add_notifier(), WM_JOB_TYPE_CLIP_PREFETCH, and WM_jobs_kill_type().
Referenced by CLIP_OT_reload().
|
static |
Definition at line 70 of file clip_ops.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), C, clip_view_has_locked_selection(), CTX_wm_region(), CTX_wm_space_clip(), ED_space_clip_get_aspect(), ED_space_clip_get_size(), height, w(), width, ARegion::winrct, SpaceClip::xlockof, SpaceClip::xof, SpaceClip::ylockof, SpaceClip::yof, and SpaceClip::zoom.
Referenced by sclip_zoom_set_factor(), view_all_exec(), view_zoom_apply(), and view_zoom_ratio_exec().
|
static |
Definition at line 124 of file clip_ops.c.
References C, CTX_wm_space_clip(), sclip_zoom_set(), and SpaceClip::zoom.
Referenced by sclip_zoom_set_factor_exec(), view_zoom_exec(), view_zoom_in_exec(), and view_zoom_out_exec().
Definition at line 134 of file clip_ops.c.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), ED_region_tag_redraw(), wmEvent::mval, NULL, sclip_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by view_zoom_invoke().
|
static |
Definition at line 906 of file clip_ops.c.
References BLI_rcti_size_x(), BLI_rcti_size_y(), C, CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), ED_space_clip_get_aspect(), ED_space_clip_get_size(), float(), height, min_ff(), NULL, OPERATOR_FINISHED, power_of_2(), wmOperator::ptr, RNA_boolean_get(), sclip_zoom_set(), w(), width, ARegion::winrct, SpaceClip::xof, and SpaceClip::yof.
Referenced by CLIP_OT_view_all().
|
static |
Definition at line 984 of file clip_ops.c.
References C, clip_view_center_to_point(), CTX_wm_region(), CTX_wm_space_clip(), SpaceClip::cursor, ED_region_tag_redraw(), and OPERATOR_FINISHED.
Referenced by CLIP_OT_view_center_cursor().
|
static |
Definition at line 491 of file clip_ops.c.
References C, and view_pan_exit().
Referenced by CLIP_OT_view_pan().
|
static |
Definition at line 415 of file clip_ops.c.
References C, clip_view_has_locked_selection(), CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), offset, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get_array(), SpaceClip::xlockof, SpaceClip::xof, SpaceClip::ylockof, and SpaceClip::yof.
Referenced by CLIP_OT_view_pan(), view_pan_invoke(), and view_pan_modal().
|
static |
Definition at line 399 of file clip_ops.c.
References C, copy_v2_v2(), CTX_wm_region(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN, ViewPanData::own_cursor, ViewPanData::vec, WM_cursor_modal_restore(), and ViewPanData::xorig.
Referenced by view_pan_cancel(), and view_pan_modal().
|
static |
Definition at line 367 of file clip_ops.c.
References C, clip_view_has_locked_selection(), copy_v2_v2(), CTX_wm_space_clip(), CTX_wm_window(), wmOperator::customdata, wmWindow::grabcursor, ViewPanData::launch_event, MEM_callocN, ViewPanData::own_cursor, wmEvent::type, ViewPanData::vec, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_userdef_event_type_from_keymap_type(), ViewPanData::x, SpaceClip::xlockof, ViewPanData::xof, SpaceClip::xof, ViewPanData::xorig, and ViewPanData::y.
Referenced by view_pan_invoke().
|
static |
Definition at line 436 of file clip_ops.c.
References C, CTX_wm_space_clip(), MOUSEPAN, offset, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::prev_xy, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, view_pan_exec(), view_pan_init(), wmEvent::xy, and SpaceClip::zoom.
Referenced by CLIP_OT_view_pan().
|
static |
Definition at line 457 of file clip_ops.c.
References C, copy_v2_v2(), CTX_wm_space_clip(), wmOperator::customdata, EVT_ESCKEY, EVT_SPACEKEY, KM_RELEASE, ViewPanData::launch_event, MOUSEMOVE, offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set_array(), wmEvent::type, wmEvent::val, ViewPanData::vec, view_pan_exec(), view_pan_exit(), ViewPanData::x, ViewPanData::xorig, wmEvent::xy, ViewPanData::y, and SpaceClip::zoom.
Referenced by CLIP_OT_view_pan().
|
static |
Definition at line 1014 of file clip_ops.c.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_view_selection(), ED_region_tag_redraw(), OPERATOR_FINISHED, SpaceClip::xlockof, and SpaceClip::ylockof.
Referenced by CLIP_OT_view_selected().
|
static |
Definition at line 626 of file clip_ops.c.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), float(), ViewZoomData::location, PIL_check_seconds_timer(), wmOperator::ptr, RNA_float_set(), sclip_zoom_set(), time, ViewZoomData::timer_lastdraw, USER_ZOOM_CONTINUE, USER_ZOOM_HORIZ, USER_ZOOM_INVERT, USER_ZOOM_SCALE, ViewZoomData::x, wmEvent::xy, ViewZoomData::y, ViewZoomData::zoom, and SpaceClip::zoom.
Referenced by view_zoom_modal().
|
static |
Definition at line 694 of file clip_ops.c.
References C, and view_zoom_exit().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 593 of file clip_ops.c.
References C, CTX_wm_region(), ED_region_tag_redraw(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), and sclip_zoom_set_factor().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 573 of file clip_ops.c.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_clip(), CTX_wm_window(), wmOperator::customdata, ED_region_tag_redraw(), MEM_freeN, ViewZoomData::own_cursor, ViewZoomData::timer, wmTimer::win, WM_cursor_modal_restore(), WM_event_remove_timer(), ViewZoomData::zoom, and SpaceClip::zoom.
Referenced by view_zoom_cancel(), and view_zoom_modal().
|
static |
Definition at line 739 of file clip_ops.c.
References C, CTX_wm_region(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sclip_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by CLIP_OT_view_zoom_in(), and view_zoom_in_invoke().
|
static |
Definition at line 752 of file clip_ops.c.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), and view_zoom_in_exec().
Referenced by CLIP_OT_view_zoom_in().
|
static |
Definition at line 542 of file clip_ops.c.
References C, CTX_wm_manager(), CTX_wm_region(), CTX_wm_space_clip(), CTX_wm_window(), wmOperator::customdata, ED_clip_mouse_pos(), wmWindow::grabcursor, ViewZoomData::launch_event, ViewZoomData::location, MEM_callocN, wmEvent::mval, ViewZoomData::own_cursor, PIL_check_seconds_timer(), ViewZoomData::timer, TIMER, ViewZoomData::timer_lastdraw, wmEvent::type, USER_ZOOM_CONTINUE, WM_cursor_modal_set(), WM_CURSOR_NSEW_SCROLL, WM_event_add_modal_handler(), WM_event_add_timer(), WM_userdef_event_type_from_keymap_type(), ViewZoomData::x, ViewZoomData::y, ViewZoomData::zoom, and SpaceClip::zoom.
Referenced by view_zoom_invoke().
|
static |
Definition at line 602 of file clip_ops.c.
References C, ELEM, MOUSEPAN, MOUSEZOOM, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_float_set(), sclip_zoom_set_factor_exec(), wmEvent::type, USER_ZOOM_INVERT, and view_zoom_init().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 669 of file clip_ops.c.
References C, wmOperator::customdata, wmEvent::customdata, KM_RELEASE, ViewZoomData::launch_event, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_get(), ViewZoomData::timer, TIMER, wmEvent::type, USER_ZOOM_TO_MOUSEPOS, wmEvent::val, view_zoom_apply(), and view_zoom_exit().
Referenced by CLIP_OT_view_zoom().
|
static |
Definition at line 796 of file clip_ops.c.
References C, CTX_wm_region(), ED_region_tag_redraw(), OPERATOR_FINISHED, powf, wmOperator::ptr, RNA_float_get_array(), sclip_zoom_set_factor(), and USER_ZOOM_TO_MOUSEPOS.
Referenced by CLIP_OT_view_zoom_out(), and view_zoom_out_invoke().
|
static |
Definition at line 809 of file clip_ops.c.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_clip_mouse_pos(), wmEvent::mval, wmOperator::ptr, RNA_float_set_array(), and view_zoom_out_exec().
Referenced by CLIP_OT_view_zoom_out().
|
static |
Definition at line 859 of file clip_ops.c.
References C, CTX_wm_region(), CTX_wm_space_clip(), ED_region_tag_redraw(), NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), sclip_zoom_set(), SpaceClip::xof, and SpaceClip::yof.
Referenced by CLIP_OT_view_zoom_ratio().