42 MovieClip *clip = id_cast<MovieClip *>(ptr->owner_id);
47static void rna_MovieClip_size_get(
PointerRNA *ptr,
int *values)
49 MovieClip *clip = id_cast<MovieClip *>(ptr->owner_id);
51 values[0] = clip->lastsize[0];
52 values[1] = clip->lastsize[1];
55static float rna_MovieClip_fps_get(
PointerRNA *ptr)
57 MovieClip *clip = id_cast<MovieClip *>(ptr->owner_id);
63 MovieClip *clip = id_cast<MovieClip *>(ptr->owner_id);
68static void rna_MovieClipUser_proxy_render_settings_update(
Main *bmain,
72 ID *
id = ptr->owner_id;
80 bScreen *screen = id_cast<bScreen *>(
id);
84 for (area = screen->areabase.first(); area; area = area->next) {
85 for (sl = area->spacedata.first(); sl; sl = sl->next) {
89 if (&sc->user == user) {
107 if (clip ==
nullptr || clip->anim ==
nullptr) {
120static std::optional<std::string> rna_MovieClipUser_path(
const PointerRNA *ptr)
125 switch (
GS(ptr->owner_id->name)) {
156 prop,
"25%",
"Build proxy resolution 25% of the original footage dimension");
162 prop,
"50%",
"Build proxy resolution 50% of the original footage dimension");
168 prop,
"75%",
"Build proxy resolution 75% of the original footage dimension");
174 prop,
"100%",
"Build proxy resolution 100% of the original footage dimension");
180 prop,
"25%",
"Build proxy resolution 25% of the original undistorted footage dimension");
186 prop,
"50%",
"Build proxy resolution 50% of the original undistorted footage dimension");
192 prop,
"75%",
"Build proxy resolution 75% of the original undistorted footage dimension");
199 prop,
"100%",
"Build proxy resolution 100% of the original undistorted footage dimension");
228 {0,
nullptr, 0,
nullptr,
nullptr},
235 "Parameters defining how a MovieClip data-block is used by another data-block");
244 prop,
"Current Frame",
"Current frame number in movie or image sequence");
252 "Display preview using full resolution or different proxy resolutions");
282 {
MCLIP_SRC_SEQUENCE,
"SEQUENCE", 0,
"Image Sequence",
"Multiple image files, as a sequence"},
284 {0,
nullptr, 0,
nullptr,
nullptr},
289 srna,
"MovieClip",
"MovieClip data-block referencing an external movie file");
318 "Width and height in pixels, zero when image data cannot be loaded",
331 prop,
"Display Aspect",
"Display Aspect for this clip, does not affect rendering");
346 "Proxy Custom Directory",
347 "Create proxy images in a custom directory (default is movie location)");
355 prop,
nullptr,
nullptr,
nullptr,
"rna_GPencil_datablocks_annotations_poll");
365 "Global scene frame number at which this movie starts playing "
366 "(affects all data associated with a clip)");
375 "Offset of footage first frame relative to its file name "
376 "(affects only how footage is loading, does not change data associated with a clip)");
390 prop,
"Frame Rate",
"Detected frame rate of the movie clip in frames per second");
403 func,
"metadata",
"IDPropertyWrapPtr",
"",
"Dict-like object containing the metadata");
void relations_invalidate_movieclip_strips(Main *bmain, MovieClip *clip_target)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void BKE_movieclip_clear_cache(MovieClip *clip)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_define_lib_overridable(const bool make_overridable)
PropertyRNA * RNA_def_int_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const int *default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
@ MCLIP_PROXY_RENDER_UNDISTORT
@ MCLIP_PROXY_RENDER_SIZE_75
@ MCLIP_PROXY_RENDER_SIZE_25
@ MCLIP_PROXY_RENDER_SIZE_FULL
@ MCLIP_PROXY_RENDER_SIZE_50
@ MCLIP_PROXY_RENDER_SIZE_100
float BKE_movieclip_get_fps(MovieClip *clip)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void rna_def_animdata_common(StructRNA *srna)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void DEG_id_tag_update(ID *id, unsigned int flags)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
static void rna_def_movieClipScopes(BlenderRNA *brna)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
static void rna_def_movieclip(BlenderRNA *brna)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
@ MCLIP_PROXY_UNDISTORTED_SIZE_100
@ MCLIP_PROXY_UNDISTORTED_SIZE_50
@ MCLIP_PROXY_UNDISTORTED_SIZE_25
@ MCLIP_PROXY_UNDISTORTED_SIZE_75
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
static void rna_def_movieclip_proxy(BlenderRNA *brna)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
IDProperty * MOV_load_metadata(MovieReader *anim)
MovieClip * ED_space_clip_get_clip(const SpaceClip *sc)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
ID_Type GS(const char *name)
@ PROP_PATH_SUPPORTS_BLEND_RELATIVE
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
static void rna_def_movieclipUser(BlenderRNA *brna)
std::optional< std::string > rna_CameraBackgroundImage_image_or_movieclip_user_path(const PointerRNA *ptr)
void RNA_def_property_array(PropertyRNA *prop, int length)
@ MCLIP_USE_PROXY_CUSTOM_DIR
void RNA_def_movieclip(BlenderRNA *brna)