Blender  V3.3
Classes | Macros | Functions
clip_buttons.c File Reference
#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)
 

Macro Definition Documentation

◆ B_MARKER_FLAG

#define B_MARKER_FLAG   8

Definition at line 219 of file clip_buttons.c.

◆ B_MARKER_OFFSET

#define B_MARKER_OFFSET   4

Definition at line 215 of file clip_buttons.c.

◆ B_MARKER_PAT_DIM

#define B_MARKER_PAT_DIM   5

Definition at line 216 of file clip_buttons.c.

◆ B_MARKER_POS

#define B_MARKER_POS   3

Definition at line 214 of file clip_buttons.c.

◆ B_MARKER_SEARCH_DIM

#define B_MARKER_SEARCH_DIM   7

Definition at line 218 of file clip_buttons.c.

◆ B_MARKER_SEARCH_POS

#define B_MARKER_SEARCH_POS   6

Definition at line 217 of file clip_buttons.c.

Function Documentation

◆ ED_clip_buttons_register()

void ED_clip_buttons_register ( ARegionType art)

◆ marker_block_handler()

static void marker_block_handler ( bContext C,
void arg_cb,
int  event 
)
static

◆ marker_update_cb()

static void marker_update_cb ( bContext C,
void arg_cb,
void UNUSEDarg 
)
static

◆ 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 UNUSEDpt 
)
static

Definition at line 50 of file clip_buttons.c.

References C, and 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 245 of file clip_buttons.c.

References Freestyle::a, copy_v2_v2(), height, r, and width.

Referenced by uiTemplateMarker().

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

◆ uiTemplateMovieClip()

void uiTemplateMovieClip ( uiLayout layout,
bContext C,
PointerRNA ptr,
const char *  propname,
bool  compact 
)

◆ uiTemplateMovieclipInformation()

void uiTemplateMovieclipInformation ( uiLayout layout,
PointerRNA ptr,
const char *  propname,
PointerRNA userptr 
)

◆ uiTemplateTrack()

void uiTemplateTrack ( uiLayout layout,
PointerRNA ptr,
const char *  propname 
)