|
Blender V5.0
|
#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_string_utf8.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_interface_layout.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 "MOV_read.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 blender::StringRefNull propname, bool compact) |
| void | uiTemplateTrack (uiLayout *layout, PointerRNA *ptr, const StringRefNull 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 StringRefNull propname, PointerRNA *userptr, PointerRNA *trackptr, bool compact) |
| void | uiTemplateMovieclipInformation (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, PointerRNA *userptr) |
| #define B_MARKER_FLAG 8 |
Definition at line 220 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_OFFSET 4 |
Definition at line 216 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_PAT_DIM 5 |
Definition at line 217 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_POS 3 |
Definition at line 215 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_SEARCH_DIM 7 |
Definition at line 219 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| #define B_MARKER_SEARCH_POS 6 |
Definition at line 218 of file clip_buttons.cc.
Referenced by marker_block_handler(), and uiTemplateMarker().
| void ED_clip_buttons_register | ( | ARegionType * | art | ) |
Definition at line 77 of file clip_buttons.cc.
References BLI_addtail(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::category, PanelType::draw, PanelType::flag, PanelType::idname, PanelType::label, MEM_callocN(), metadata_panel_context_draw(), metadata_panel_context_poll(), N_, PANEL_TYPE_DEFAULT_CLOSED, ARegionType::paneltypes, PanelType::poll, STRNCPY_UTF8, and PanelType::translation_context.
Referenced by ED_spacetype_clip().
|
static |
Definition at line 268 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(), C, MarkerUpdateCb::clip, copy_v2_v2(), DEG_id_tag_update(), MovieTrackingMarker::flag, MarkerUpdateCb::framenr, i, 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 253 of file clip_buttons.cc.
References BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_marker_ensure(), C, 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 62 of file clip_buttons.cc.
References C, 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(), and image_buttons_register().
Definition at line 57 of file clip_buttons.cc.
References C, and ED_space_clip_poll().
Referenced by ED_clip_buttons_register(), and image_buttons_register().
Definition at line 246 of file clip_buttons.cc.
References copy_v2_v2().
Referenced by uiTemplateMarker().
| void uiTemplateMarker | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| PointerRNA * | userptr, | ||
| PointerRNA * | trackptr, | ||
| bool | compact ) |
Definition at line 378 of file clip_buttons.cc.
References uiLayout::absolute_block(), uiLayout::active_set(), 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(), uiLayout::block(), blender::StringRefNull::c_str(), CheckboxN, MarkerUpdateCb::clip, col, uiLayout::column(), MarkerUpdateCb::compact, PointerRNA::data, MovieTrackingMarker::flag, MovieTrackingTrack::flag, MarkerUpdateCb::framenr, MovieClipUser::framenr, IFACE_, Label, 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_callocN(), MEM_freeN(), mul_v2_fl(), Num, 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, step, sub_v2_v2v2(), TIP_, to_pixel_space(), ToggleN, MarkerUpdateCb::track, TRACK_LOCKED, MarkerUpdateCb::track_offset, UI_block_align_begin(), UI_block_align_end(), UI_block_func_handle_set(), UI_block_funcN_set(), 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(), and MarkerUpdateCb::user.
| void uiTemplateMovieClip | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const blender::StringRefNull | propname, | ||
| bool | compact ) |
Definition at line 94 of file clip_buttons.cc.
References uiLayout::block(), C, blender::StringRefNull::c_str(), col, uiLayout::column(), uiLayout::context_ptr_set(), PointerRNA::data, IFACE_, Label, uiLayout::op(), printf, uiLayout::prop(), PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), uiLayout::row(), split(), uiLayout::split(), UI_ITEM_NONE, uiDefBut(), uiTemplateColorspaceSettings(), and uiTemplateID().
| void uiTemplateMovieclipInformation | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname, | ||
| PointerRNA * | userptr ) |
Definition at line 726 of file clip_buttons.cc.
References MovieClip::anim, 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_utf8_rlen(), BLI_strncpy_utf8_rlen(), blender::StringRefNull::c_str(), ImBuf::channels, col, uiLayout::column(), ImBufFloatBuffer::data, PointerRNA::data, FILE_MAX, MovieClip::flag, ImBuf::float_buffer, MovieClipUser::framenr, IMB_freeImBuf(), len, MovieClip::len, MCLIP_SRC_SEQUENCE, MOV_get_fps(), ImBuf::planes, printf, PROP_POINTER, ptr, R_IMF_PLANES_RGBA, blender::ui::Right, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RPT_, SNPRINTF, SNPRINTF_UTF8, MovieClip::source, str, and UNUSED_VARS.
| void uiTemplateTrack | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const StringRefNull | propname ) |
Definition at line 149 of file clip_buttons.cc.
References blender::StringRefNull::c_str(), col, uiLayout::column(), PointerRNA::data, Grip, printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), MovieClipScopes::track_preview_height, TrackPreview, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), and uiDefIconButI().