23#include "RNA_prototypes.hh"
47 .description(
"Specifies the smoothness of the keying screen");
51 .structure_type(StructureType::Dynamic);
83 &clip->
id, &RNA_MovieTracking, &clip->
tracking);
86 col->prop_search(
ptr,
"tracking_object", &tracking_ptr,
"objects",
"", ICON_OBJECT_DATA);
100 if (!movie_tracking_object) {
131 movie_tracking, node_storage(
bnode()).tracking_object);
132 if (movie_tracking_object) {
133 return movie_tracking_object;
182 ntype.
ui_name =
"Keying Screen";
183 ntype.
ui_description =
"Create plates for use as a color reference for keying nodes";
186 ntype.
declare = file_ns::cmp_node_keyingscreen_declare;
187 ntype.
draw_buttons = file_ns::node_composit_buts_keyingscreen;
188 ntype.
initfunc_api = file_ns::node_composit_init_keyingscreen;
Scene * CTX_data_scene(const bContext *C)
float BKE_movieclip_remap_scene_to_clip_frame(const struct MovieClip *clip, float framenr)
void BKE_movieclip_user_set_frame(struct MovieClipUser *user, int framenr)
void BKE_movieclip_get_size(struct MovieClip *clip, const struct MovieClipUser *user, int *r_width, int *r_height)
#define NODE_STORAGE_FUNCS(StorageT)
#define CMP_NODE_KEYINGSCREEN
struct MovieTrackingObject * BKE_tracking_object_get_named(struct MovieTracking *tracking, const char *name)
struct MovieTrackingObject * BKE_tracking_object_get_active(const struct MovieTracking *tracking)
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_ID_SCREEN
#define DNA_struct_default_get(struct_name)
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void uiTemplateID(uiLayout *layout, const bContext *C, PointerRNA *ptr, blender::StringRefNull propname, const char *newop, const char *openop, const char *unlinkop, int filter=UI_TEMPLATE_ID_FILTER_ALL, bool live_icon=false, std::optional< blender::StringRef > text=std::nullopt)
BMesh const char void * data
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
StaticCacheManager & cache_manager()
int get_frame_number() const
Result & get(Context &context, MovieClip *movie_clip, MovieTrackingObject *movie_tracking_object, float smoothness)
const bNode & bnode() const
NodeOperation(Context &context, DNode node)
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
void wrap_external(blender::gpu::Texture *texture)
bool is_allocated() const
KeyingScreenContainer keying_screens
std::optional< std::string > translation_context
MovieClip * get_movie_clip()
Domain compute_domain() override
MovieTrackingObject * get_movie_tracking_object()
NodeOperation(Context &context, DNode node)
void * MEM_callocN(size_t len, const char *str)
void node_register_type(bNodeType &ntype)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
T clamp(const T &a, const T &min, const T &max)
T interpolate(const T &a, const T &b, const FactorT &t)
static void cmp_node_keyingscreen_declare(NodeDeclarationBuilder &b)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
static void node_composit_buts_keyingscreen(uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_composit_init_keyingscreen(const bContext *C, PointerRNA *ptr)
VecBase< int32_t, 2 > int2
static void register_node_type_cmp_keyingscreen()
void cmp_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
struct MovieTracking tracking
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
const char * enum_name_legacy
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare
void(* initfunc_api)(const bContext *C, PointerRNA *ptr)
uiLayout & column(bool align)