Blender
V3.3
|
#include <stdio.h>
#include <string.h>
#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.h"
#include "BLI_path_util.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_context.h"
#include "BKE_movieclip.h"
#include "BKE_screen.h"
#include "BKE_tracking.h"
#include "DEG_depsgraph.h"
#include "ED_clip.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "clip_intern.h"
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 *UNUSED(pt)) |
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 *UNUSED(arg)) |
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 219 of file clip_buttons.c.
#define B_MARKER_OFFSET 4 |
Definition at line 215 of file clip_buttons.c.
#define B_MARKER_PAT_DIM 5 |
Definition at line 216 of file clip_buttons.c.
#define B_MARKER_POS 3 |
Definition at line 214 of file clip_buttons.c.
#define B_MARKER_SEARCH_DIM 7 |
Definition at line 218 of file clip_buttons.c.
#define B_MARKER_SEARCH_POS 6 |
Definition at line 217 of file clip_buttons.c.
void ED_clip_buttons_register | ( | ARegionType * | art | ) |
Definition at line 70 of file clip_buttons.c.
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, and PanelType::translation_context.
Referenced by ED_spacetype_clip().
Definition at line 267 of file clip_buttons.c.
References Freestyle::a, 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, height, 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, NULL, offset, 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, width, and WM_event_add_notifier().
Referenced by uiTemplateMarker().
Definition at line 252 of file clip_buttons.c.
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, NULL, MarkerUpdateCb::track, and WM_event_add_notifier().
Referenced by uiTemplateMarker().
Definition at line 55 of file clip_buttons.c.
References C, CTX_wm_space_clip(), ED_region_image_metadata_panel_draw(), ED_space_clip_get_buffer(), IMB_freeImBuf(), Panel::layout, and NULL.
Referenced by ED_clip_buttons_register().
Definition at line 50 of file clip_buttons.c.
References C, and ED_space_clip_poll().
Referenced by ED_clip_buttons_register().
Definition at line 245 of file clip_buttons.c.
References Freestyle::a, copy_v2_v2(), height, r, and width.
Referenced by uiTemplateMarker().
void uiTemplateMarker | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname, | ||
PointerRNA * | userptr, | ||
PointerRNA * | trackptr, | ||
bool | compact | ||
) |
Definition at line 377 of file clip_buttons.c.
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, MarkerUpdateCb::framenr, height, 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_callocN, mul_v2_fl(), NULL, MovieTrackingMarker::pos, 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(), MarkerUpdateCb::user, and width.
void uiTemplateMovieClip | ( | uiLayout * | layout, |
bContext * | C, | ||
PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | compact | ||
) |
Definition at line 87 of file clip_buttons.c.
References C, col, PointerRNA::data, IFACE_, NULL, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), blender::io::alembic::split(), PointerRNA::type, UI_BTYPE_LABEL, UI_TEMPLATE_ID_FILTER_ALL, 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 757 of file clip_buttons.c.
References MovieClip::anim, BKE_movieclip_filename_for_frame(), BKE_movieclip_get_ibuf_flag(), BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BLI_path_slash_rfind(), BLI_snprintf(), BLI_snprintf_rlen(), BLI_strncpy_rlen(), ImBuf::channels, col, PointerRNA::data, file, FILE_MAX, MovieClip::flag, height, IMB_anim_get_fps(), IMB_freeImBuf(), len, MovieClip::len, MCLIP_SRC_SEQUENCE, MOVIECLIP_CACHE_SKIP, NULL, ImBuf::planes, PROP_POINTER, ptr, R_IMF_PLANES_RGBA, ImBuf::rect_float, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), MovieClip::source, str, TIP_, PointerRNA::type, UI_LAYOUT_ALIGN_RIGHT, uiItemL(), uiLayoutColumn(), uiLayoutSetAlignment(), and width.
void uiTemplateTrack | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 146 of file clip_buttons.c.
References col, PointerRNA::data, if(), 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().