45static void rna_MovieClip_size_get(
PointerRNA *
ptr,
int *values)
49 values[0] = clip->lastsize[0];
50 values[1] = clip->lastsize[1];
66static void rna_MovieClipUser_proxy_render_settings_update(
Main *bmain,
70 ID *
id =
ptr->owner_id;
87 if (&sc->
user == user) {
105 if (clip ==
nullptr || clip->
anim ==
nullptr) {
110 if (metadata ==
nullptr) {
118static std::optional<std::string> rna_MovieClipUser_path(
const PointerRNA *
ptr)
123 switch (
GS(
ptr->owner_id->name)) {
146 "Ignore generated timecodes, seek in movie stream based on calculated timestamp"},
151 "Seek based on timestamps read from movie stream, giving the best match between scene and "
156 "Record Run No Gaps",
157 "Effectively convert movie to an image sequence, ignoring incomplete or dropped frames, "
158 "and changes in frame rate"},
159 {0,
nullptr, 0,
nullptr,
nullptr},
171 prop,
"25%",
"Build proxy resolution 25% of the original footage dimension");
177 prop,
"50%",
"Build proxy resolution 50% of the original footage dimension");
183 prop,
"75%",
"Build proxy resolution 75% of the original footage dimension");
189 prop,
"100%",
"Build proxy resolution 100% of the original footage dimension");
195 prop,
"25%",
"Build proxy resolution 25% of the original undistorted footage dimension");
201 prop,
"50%",
"Build proxy resolution 50% of the original undistorted footage dimension");
207 prop,
"75%",
"Build proxy resolution 75% of the original undistorted footage dimension");
214 prop,
"100%",
"Build proxy resolution 100% of the original undistorted footage dimension");
256 {0,
nullptr, 0,
nullptr,
nullptr},
263 "Parameters defining how a MovieClip data-block is used by another data-block");
272 prop,
"Current Frame",
"Current frame number in movie or image sequence");
280 "Display preview using full resolution or different proxy resolutions");
310 {
MCLIP_SRC_SEQUENCE,
"SEQUENCE", 0,
"Image Sequence",
"Multiple image files, as a sequence"},
312 {0,
nullptr, 0,
nullptr,
nullptr},
317 srna,
"MovieClip",
"MovieClip data-block referencing an external movie file");
337 prop,
"Use Proxy / Timecode",
"Use a preview proxy and/or timecode index for this clip");
347 "Width and height in pixels, zero when image data cannot be loaded",
360 prop,
"Display Aspect",
"Display Aspect for this clip, does not affect rendering");
375 "Proxy Custom Directory",
376 "Create proxy images in a custom directory (default is movie location)");
384 prop,
nullptr,
nullptr,
nullptr,
"rna_GPencil_datablocks_annotations_poll");
394 "Global scene frame number at which this movie starts playing "
395 "(affects all data associated with a clip)");
404 "Offset of footage first frame relative to its file name "
405 "(affects only how footage is loading, does not change data associated with a clip)");
419 prop,
"Frame Rate",
"Detected frame rate of the movie clip in frames per second");
432 func,
"metadata",
"IDPropertyWrapPtr",
"",
"Dict-like object containing the metadata");
void BKE_movieclip_clear_cache(struct MovieClip *clip)
float BKE_movieclip_get_fps(struct MovieClip *clip)
void DEG_id_tag_update(ID *id, unsigned int flags)
@ MCLIP_USE_PROXY_CUSTOM_DIR
@ MCLIP_PROXY_RENDER_UNDISTORT
@ MCLIP_PROXY_RENDER_SIZE_75
@ MCLIP_PROXY_RENDER_SIZE_100
@ MCLIP_PROXY_RENDER_SIZE_50
@ MCLIP_PROXY_RENDER_SIZE_FULL
@ MCLIP_PROXY_RENDER_SIZE_25
@ MCLIP_PROXY_UNDISTORTED_SIZE_100
@ MCLIP_PROXY_UNDISTORTED_SIZE_75
@ MCLIP_PROXY_UNDISTORTED_SIZE_50
@ MCLIP_PROXY_UNDISTORTED_SIZE_25
MovieClip * ED_space_clip_get_clip(const SpaceClip *sc)
@ IMB_TC_RECORD_RUN_NO_GAPS
@ PROP_PATH_SUPPORTS_BLEND_RELATIVE
IDProperty * MOV_load_metadata(MovieReader *anim)
void relations_invalidate_movieclip_strips(Main *bmain, MovieClip *clip_target)
const PointerRNA PointerRNA_NULL
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
void rna_def_animdata_common(StructRNA *srna)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_define_lib_overridable(const bool make_overridable)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
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)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_property_array(PropertyRNA *prop, int length)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
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)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
std::optional< std::string > rna_CameraBackgroundImage_image_or_movieclip_user_path(const PointerRNA *ptr)
static void rna_def_movieclip(BlenderRNA *brna)
static void rna_def_movieclip_proxy(BlenderRNA *brna)
void RNA_def_movieclip(BlenderRNA *brna)
static void rna_def_movieclipUser(BlenderRNA *brna)
static void rna_def_movieClipScopes(BlenderRNA *brna)
struct MovieReader * anim
struct MovieClipUser user