Blender V4.3
clip_buttons.cc File Reference
#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)
 

Macro Definition Documentation

◆ B_MARKER_FLAG

#define B_MARKER_FLAG   8

Definition at line 207 of file clip_buttons.cc.

Referenced by marker_block_handler(), and uiTemplateMarker().

◆ B_MARKER_OFFSET

#define B_MARKER_OFFSET   4

Definition at line 203 of file clip_buttons.cc.

Referenced by marker_block_handler(), and uiTemplateMarker().

◆ B_MARKER_PAT_DIM

#define B_MARKER_PAT_DIM   5

Definition at line 204 of file clip_buttons.cc.

Referenced by marker_block_handler(), and uiTemplateMarker().

◆ B_MARKER_POS

#define B_MARKER_POS   3

Definition at line 202 of file clip_buttons.cc.

Referenced by marker_block_handler(), and uiTemplateMarker().

◆ B_MARKER_SEARCH_DIM

#define B_MARKER_SEARCH_DIM   7

Definition at line 206 of file clip_buttons.cc.

Referenced by marker_block_handler(), and uiTemplateMarker().

◆ B_MARKER_SEARCH_POS

#define B_MARKER_SEARCH_POS   6

Definition at line 205 of file clip_buttons.cc.

Referenced by marker_block_handler(), and uiTemplateMarker().

Function Documentation

◆ ED_clip_buttons_register()

◆ marker_block_handler()

◆ marker_update_cb()

◆ metadata_panel_context_draw()

static void metadata_panel_context_draw ( const bContext * C,
Panel * panel )
static

◆ metadata_panel_context_poll()

static bool metadata_panel_context_poll ( const bContext * C,
PanelType *  )
static

Definition at line 51 of file clip_buttons.cc.

References ED_space_clip_poll().

Referenced by ED_clip_buttons_register().

◆ to_pixel_space()

static void to_pixel_space ( float r[2],
const float a[2],
int width,
int height )
static

Definition at line 233 of file clip_buttons.cc.

References copy_v2_v2().

Referenced by uiTemplateMarker().

◆ 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.

◆ uiTemplateMovieClip()

◆ uiTemplateMovieclipInformation()

◆ uiTemplateTrack()