MLT 7.40.0
Multimedia Framework
mlt_animation.h
Go to the documentation of this file.
1
23#ifndef MLT_ANIMATION_H
24#define MLT_ANIMATION_H
25
26#include "mlt_export.h"
27#include "mlt_property.h"
28#include "mlt_types.h"
29
53MLT_EXPORT int mlt_animation_parse(
54 mlt_animation self, const char *data, int length, double fps, mlt_locale_t locale);
55MLT_EXPORT int mlt_animation_refresh(mlt_animation self, const char *data, int length);
57MLT_EXPORT void mlt_animation_set_length(mlt_animation self, int length);
60 const char *data);
61MLT_EXPORT int mlt_animation_get_item(mlt_animation self, mlt_animation_item item, int position);
63MLT_EXPORT int mlt_animation_remove(mlt_animation self, int position);
65MLT_EXPORT int mlt_animation_next_key(mlt_animation self, mlt_animation_item item, int position);
66MLT_EXPORT int mlt_animation_prev_key(mlt_animation self, mlt_animation_item item, int position);
68 int in,
69 int out,
71MLT_EXPORT char *mlt_animation_serialize_cut(mlt_animation self, int in, int out);
75MLT_EXPORT int mlt_animation_key_get(mlt_animation self, mlt_animation_item item, int index);
76MLT_EXPORT void mlt_animation_close(mlt_animation self);
77MLT_EXPORT int mlt_animation_key_set_type(mlt_animation self, int index, mlt_keyframe_type type);
78MLT_EXPORT int mlt_animation_key_set_frame(mlt_animation self, int index, int frame);
79MLT_EXPORT void mlt_animation_shift_frames(mlt_animation self, int shift);
80MLT_EXPORT const char *mlt_animation_get_string(mlt_animation self);
81
82#endif
MLT_EXPORT int mlt_animation_refresh(mlt_animation self, const char *data, int length)
MLT_EXPORT int mlt_animation_key_get(mlt_animation self, mlt_animation_item item, int index)
MLT_EXPORT int mlt_animation_get_item(mlt_animation self, mlt_animation_item item, int position)
MLT_EXPORT mlt_animation mlt_animation_new()
MLT_EXPORT char * mlt_animation_serialize_cut(mlt_animation self, int in, int out)
MLT_EXPORT int mlt_animation_key_set_frame(mlt_animation self, int index, int frame)
MLT_EXPORT char * mlt_animation_serialize_cut_tf(mlt_animation self, int in, int out, mlt_time_format)
MLT_EXPORT int mlt_animation_parse(mlt_animation self, const char *data, int length, double fps, mlt_locale_t locale)
MLT_EXPORT void mlt_animation_shift_frames(mlt_animation self, int shift)
MLT_EXPORT int mlt_animation_remove(mlt_animation self, int position)
MLT_EXPORT void mlt_animation_close(mlt_animation self)
MLT_EXPORT int mlt_animation_parse_item(mlt_animation self, mlt_animation_item item, const char *data)
struct mlt_animation_item_s * mlt_animation_item
pointer to an animation item
Definition mlt_animation.h:50
MLT_EXPORT int mlt_animation_next_key(mlt_animation self, mlt_animation_item item, int position)
MLT_EXPORT int mlt_animation_prev_key(mlt_animation self, mlt_animation_item item, int position)
MLT_EXPORT int mlt_animation_get_length(mlt_animation self)
MLT_EXPORT const char * mlt_animation_get_string(mlt_animation self)
MLT_EXPORT int mlt_animation_key_set_type(mlt_animation self, int index, mlt_keyframe_type type)
MLT_EXPORT int mlt_animation_key_count(mlt_animation self)
MLT_EXPORT int mlt_animation_insert(mlt_animation self, mlt_animation_item item)
MLT_EXPORT void mlt_animation_set_length(mlt_animation self, int length)
MLT_EXPORT char * mlt_animation_serialize(mlt_animation self)
MLT_EXPORT char * mlt_animation_serialize_tf(mlt_animation self, mlt_time_format)
MLT_EXPORT void mlt_animation_interpolate(mlt_animation self)
Property class declaration.
char * mlt_locale_t
Definition mlt_property.h:46
Provides forward definitions of all public types.
mlt_time_format
The time string formats.
Definition mlt_types.h:172
mlt_keyframe_type
Interpolation methods for animation keyframes.
Definition mlt_types.h:181
Animation class.
Definition mlt_animation.h:44
int is_key
a boolean of whether this is a key frame or an interpolated item
Definition mlt_animation.h:45
int frame
the frame number for this instance of the property
Definition mlt_animation.h:46
mlt_keyframe_type keyframe_type
the method of interpolation for this key frame
Definition mlt_animation.h:48
mlt_property property
the property for this point in time
Definition mlt_animation.h:47
Property Animation class.
Definition mlt_animation.c:51
Property class.
Definition mlt_property.c:78