19#include "RNA_prototypes.hh"
41 .description(
"Specifies the smoothness of the keying screen");
45 .structure_type(StructureType::Dynamic);
63 node->id = &movie_clip->
id;
76 template_id(&layout,
C, ptr,
"clip",
nullptr,
"CLIP_OT_open",
nullptr);
81 &clip->
id, RNA_MovieTracking, &clip->
tracking);
84 col.
prop_search(ptr,
"tracking_object", &tracking_ptr,
"objects",
"", ICON_OBJECT_DATA);
97 if (!movie_tracking_object) {
111 keying_screen.
share_data(cached_keying_screen);
129 movie_tracking, node_storage(
node()).tracking_object);
130 if (movie_tracking_object) {
131 return movie_tracking_object;
181 ntype.
ui_name =
"Keying Screen";
182 ntype.
ui_description =
"Create plates for use as a color reference for keying nodes";
#define NODE_STORAGE_FUNCS(StorageT)
#define CMP_NODE_KEYINGSCREEN
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_ID_SCREEN
#define NOD_REGISTER_NODE(REGISTER_FUNC)
StaticCacheManager & cache_manager()
int get_frame_number() const
Result & get(Context &context, MovieClip *movie_clip, MovieTrackingObject *movie_tracking_object, float smoothness)
NodeOperation(Context &context, const bNode &node)
const bNode & node() const
Result & get_result(StringRef identifier)
void allocate_default_remaining_outputs()
Context & context() const
Result & get_input(StringRef identifier) const
void share_data(const Result &source)
bool is_allocated() const
KeyingScreenContainer keying_screens
std::optional< std::string > translation_context
NodeOperation(Context &context, const bNode &node)
MovieTrackingObject * get_movie_tracking_object()
MovieClip * get_movie_clip()
Domain compute_domain() override
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 node_draw_buttons(ui::Layout &layout, bContext *C, PointerRNA *ptr)
static void node_init(bNodeTree *, bNode *node)
static NodeOperation * get_compositor_operation(Context &context, const bNode &node)
static void node_declare(NodeDeclarationBuilder &b)
static void node_init_api(const bContext *C, PointerRNA *node_ptr)
static void node_register()
void BKE_movieclip_get_size(MovieClip *clip, const MovieClipUser *user, int *r_width, int *r_height)
MovieTrackingObject * BKE_tracking_object_get_active(const MovieTracking *tracking)
BMesh const char void * data
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
void BKE_movieclip_user_set_frame(MovieClipUser *user, int framenr)
float BKE_movieclip_remap_scene_to_clip_frame(const MovieClip *clip, float framenr)
MovieTrackingObject * BKE_tracking_object_get_named(MovieTracking *tracking, const char *name)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
Scene * CTX_data_scene(const bContext *C)
void node_free_standard_storage(bNode *node)
void cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
struct MovieTracking tracking
void(*) draw_buttons(ui::Layout &, bContext *C, PointerRNA *ptr)
std::string ui_description
void(*) initfunc_api(const bContext *C, PointerRNA *ptr)
NodeGetCompositorOperationFunction get_compositor_operation
void(*) initfunc(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy
NodeDeclareFunction declare
void prop_search(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, PropertyRNA *item_searchpropname, std::optional< StringRefNull > name, int icon, bool results_are_suggestions)
Layout & column(bool align)