|
Blender V4.3
|
#include <cstdio>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_context.hh"#include "BKE_movieclip.h"#include "BKE_screen.hh"#include "BKE_tracking.h"#include "DEG_depsgraph.hh"#include "ED_clip.hh"#include "ED_screen.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "RNA_access.hh"#include "WM_api.hh"#include "WM_types.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "clip_intern.hh"Go to the source code of this file.
Classes | |
| struct | MarkerUpdateCb |
Macros | |
| #define | B_MARKER_POS 3 |
| #define | B_MARKER_OFFSET 4 |
| #define | B_MARKER_PAT_DIM 5 |
| #define | B_MARKER_SEARCH_POS 6 |
| #define | B_MARKER_SEARCH_DIM 7 |
| #define | B_MARKER_FLAG 8 |
Functions | |
| static bool | metadata_panel_context_poll (const bContext *C, PanelType *) |
| static void | metadata_panel_context_draw (const bContext *C, Panel *panel) |
| void | ED_clip_buttons_register (ARegionType *art) |
| void | uiTemplateMovieClip (uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, bool compact) |
| void | uiTemplateTrack (uiLayout *layout, PointerRNA *ptr, const char *propname) |
| static void | to_pixel_space (float r[2], const float a[2], int width, int height) |
| static void | marker_update_cb (bContext *C, void *arg_cb, void *) |
| static void | marker_block_handler (bContext *C, void *arg_cb, int event) |
| void | uiTemplateMarker (uiLayout *layout, PointerRNA *ptr, const char *propname, PointerRNA *userptr, PointerRNA *trackptr, bool compact) |
| void | uiTemplateMovieclipInformation (uiLayout *layout, PointerRNA *ptr, const char *propname, PointerRNA *userptr) |
| #define B_MARKER_FLAG 8 |
Definition at line 207 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_OFFSET 4 |
Definition at line 203 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_PAT_DIM 5 |
Definition at line 204 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_POS 3 |
Definition at line 202 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_SEARCH_DIM 7 |
Definition at line 206 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_SEARCH_POS 6 |
Definition at line 205 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| void ED_clip_buttons_register | ( | ARegionType * | art | ) |
Definition at line 71 of file clip_buttons.cc.
References BLI_addtail(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::category, PanelType::draw, PanelType::flag, PanelType::idname, PanelType::label, metadata_panel_context_draw(), metadata_panel_context_poll(), N_, PANEL_TYPE_DEFAULT_CLOSED, ARegionType::paneltypes, PanelType::poll, STRNCPY, and PanelType::translation_context.
Referenced by ED_spacetype_clip().
Definition at line 255 of file clip_buttons.cc.
References add_v2_v2v2(), B_MARKER_FLAG, B_MARKER_OFFSET, B_MARKER_PAT_DIM, B_MARKER_POS, B_MARKER_SEARCH_DIM, B_MARKER_SEARCH_POS, BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_marker_clamp_search_position(), BKE_tracking_marker_clamp_search_size(), BKE_tracking_marker_ensure(), BKE_tracking_marker_pattern_minmax(), MarkerUpdateCb::clip, copy_v2_v2(), DEG_id_tag_update(), MovieTrackingMarker::flag, MarkerUpdateCb::framenr, MovieClip::id, MarkerUpdateCb::marker, MarkerUpdateCb::marker_flag, MarkerUpdateCb::marker_pat, MarkerUpdateCb::marker_pos, MarkerUpdateCb::marker_search, MarkerUpdateCb::marker_search_pos, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, mul_v2_fl(), NA_EDITED, NC_MOVIECLIP, NC_SPACE, ND_SPACE_VIEW3D, MovieTrackingTrack::offset, MovieTrackingMarker::pattern_corners, MovieTrackingMarker::pos, MovieTrackingMarker::search_max, MovieTrackingMarker::search_min, sub_v2_v2(), sub_v2_v2v2(), MarkerUpdateCb::track, MarkerUpdateCb::track_offset, MarkerUpdateCb::user, and WM_event_add_notifier().
Referenced by uiTemplateMarker().
|
static |
Definition at line 240 of file clip_buttons.cc.
References BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_marker_ensure(), MarkerUpdateCb::clip, MarkerUpdateCb::compact, MovieTrackingMarker::flag, MarkerUpdateCb::framenr, MarkerUpdateCb::marker_flag, NA_EDITED, NC_MOVIECLIP, MarkerUpdateCb::track, and WM_event_add_notifier().
Referenced by uiTemplateMarker().
Definition at line 56 of file clip_buttons.cc.
References CTX_wm_space_clip(), ED_region_image_metadata_panel_draw(), ED_space_clip_get_buffer(), IMB_freeImBuf(), and Panel::layout.
Referenced by ED_clip_buttons_register().
Definition at line 51 of file clip_buttons.cc.
References ED_space_clip_poll().
Referenced by ED_clip_buttons_register().
Definition at line 233 of file clip_buttons.cc.
References copy_v2_v2().
Referenced by uiTemplateMarker().
| void uiTemplateMarker | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| PointerRNA * | userptr, | ||
| PointerRNA * | trackptr, | ||
| bool | compact ) |
Definition at line 365 of file clip_buttons.cc.
References add_v2_v2v2(), B_MARKER_FLAG, B_MARKER_OFFSET, B_MARKER_PAT_DIM, B_MARKER_POS, B_MARKER_SEARCH_DIM, B_MARKER_SEARCH_POS, BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_marker_get(), BKE_tracking_marker_pattern_minmax(), MarkerUpdateCb::clip, col, MarkerUpdateCb::compact, PointerRNA::data, MovieTrackingMarker::flag, MovieTrackingTrack::flag, MarkerUpdateCb::framenr, MovieClipUser::framenr, IFACE_, MarkerUpdateCb::marker, marker_block_handler(), MARKER_DISABLED, MarkerUpdateCb::marker_flag, MarkerUpdateCb::marker_pat, MarkerUpdateCb::marker_pos, MarkerUpdateCb::marker_search, MarkerUpdateCb::marker_search_pos, marker_update_cb(), MEM_freeN(), mul_v2_fl(), MovieTrackingTrack::offset, MovieTrackingMarker::pos, printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), MovieTrackingMarker::search_max, MovieTrackingMarker::search_min, sub_v2_v2v2(), TIP_, to_pixel_space(), MarkerUpdateCb::track, TRACK_LOCKED, MarkerUpdateCb::track_offset, PointerRNA::type, UI_block_align_begin(), UI_block_align_end(), UI_block_func_handle_set(), UI_block_funcN_set(), UI_BTYPE_CHECKBOX_N, UI_BTYPE_LABEL, UI_BTYPE_NUM, UI_BTYPE_TOGGLE_N, UI_but_drawflag_enable(), UI_but_funcN_set(), UI_BUT_ICON_REVERSE, UI_but_number_precision_set(), UI_but_number_step_size_set(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButBitI(), uiDefButF(), uiDefIconButBitI(), uiLayoutAbsoluteBlock(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutSetActive(), and MarkerUpdateCb::user.
| void uiTemplateMovieClip | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| bool | compact ) |
Definition at line 88 of file clip_buttons.cc.
References col, PointerRNA::data, IFACE_, printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), PointerRNA::type, UI_BTYPE_LABEL, UI_ITEM_NONE, uiDefBut(), uiItemO(), uiItemR(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetContextPointer(), uiLayoutSplit(), uiTemplateColorspaceSettings(), and uiTemplateID().
| void uiTemplateMovieclipInformation | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| PointerRNA * | userptr ) |
Definition at line 711 of file clip_buttons.cc.
References BKE_movieclip_filepath_for_frame(), BKE_movieclip_get_ibuf_flag(), BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BLI_path_basename(), BLI_snprintf_rlen(), BLI_strncpy_rlen(), ImBuf::channels, col, ImBufFloatBuffer::data, PointerRNA::data, file, FILE_MAX, ImBuf::float_buffer, MovieClipUser::framenr, IMB_anim_get_fps(), IMB_freeImBuf(), len, MCLIP_SRC_SEQUENCE, ImBuf::planes, printf, PROP_POINTER, ptr, R_IMF_PLANES_RGBA, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RPT_, SNPRINTF, str, PointerRNA::type, UI_LAYOUT_ALIGN_RIGHT, uiItemL(), uiLayoutColumn(), uiLayoutSetAlignment(), and UNUSED_VARS.
| void uiTemplateTrack | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname ) |
Definition at line 138 of file clip_buttons.cc.
References col, PointerRNA::data, printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), MovieClipScopes::track_preview_height, PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_TRACK_PREVIEW, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutColumn(), and uiLayoutGetBlock().