MLT 6.26.0
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_types.h"
27#include "mlt_property.h"
28
43{
44 int is_key;
45 int frame;
48};
52extern int mlt_animation_parse(mlt_animation self, const char *data, int length, double fps, locale_t locale );
53extern int mlt_animation_refresh( mlt_animation self, const char *data, int length );
55extern void mlt_animation_set_length( mlt_animation self, int length );
56extern int mlt_animation_parse_item( mlt_animation self, mlt_animation_item item, const char *data );
57extern int mlt_animation_get_item( mlt_animation self, mlt_animation_item item, int position );
59extern int mlt_animation_remove( mlt_animation self, int position );
61extern int mlt_animation_next_key( mlt_animation self, mlt_animation_item item, int position );
62extern int mlt_animation_prev_key( mlt_animation self, mlt_animation_item item, int position );
63extern char *mlt_animation_serialize_cut_tf( mlt_animation self, int in, int out, mlt_time_format );
64extern char *mlt_animation_serialize_cut( mlt_animation self, int in, int out );
68extern int mlt_animation_key_get( mlt_animation self, mlt_animation_item item, int index );
71extern int mlt_animation_key_set_frame( mlt_animation self, int index, int frame );
72
73#endif
74
int mlt_animation_parse_item(mlt_animation self, mlt_animation_item item, const char *data)
mlt_animation mlt_animation_new()
int mlt_animation_prev_key(mlt_animation self, mlt_animation_item item, int position)
int mlt_animation_key_set_frame(mlt_animation self, int index, int frame)
void mlt_animation_set_length(mlt_animation self, int length)
void mlt_animation_close(mlt_animation self)
char * mlt_animation_serialize_cut_tf(mlt_animation self, int in, int out, mlt_time_format)
struct mlt_animation_item_s * mlt_animation_item
pointer to an animation item
Definition mlt_animation.h:49
int mlt_animation_parse(mlt_animation self, const char *data, int length, double fps, locale_t locale)
char * mlt_animation_serialize_tf(mlt_animation self, mlt_time_format)
int mlt_animation_insert(mlt_animation self, mlt_animation_item item)
int mlt_animation_key_get(mlt_animation self, mlt_animation_item item, int index)
int mlt_animation_get_length(mlt_animation self)
int mlt_animation_key_count(mlt_animation self)
char * mlt_animation_serialize(mlt_animation self)
int mlt_animation_key_set_type(mlt_animation self, int index, mlt_keyframe_type type)
int mlt_animation_remove(mlt_animation self, int position)
int mlt_animation_refresh(mlt_animation self, const char *data, int length)
int mlt_animation_get_item(mlt_animation self, mlt_animation_item item, int position)
void mlt_animation_interpolate(mlt_animation self)
char * mlt_animation_serialize_cut(mlt_animation self, int in, int out)
int mlt_animation_next_key(mlt_animation self, mlt_animation_item item, int position)
Property class declaration.
char * locale_t
Definition mlt_property.h:41
Provides forward definitions of all public types.
mlt_time_format
The time string formats.
Definition mlt_types.h:110
mlt_keyframe_type
Interpolation methods for animation keyframes.
Definition mlt_types.h:121
Animation class.
Definition mlt_animation.h:43
int is_key
a boolean of whether this is a key frame or an interpolated item
Definition mlt_animation.h:44
int frame
the frame number for this instance of the property
Definition mlt_animation.h:45
mlt_keyframe_type keyframe_type
the method of interpolation for this key frame
Definition mlt_animation.h:47
mlt_property property
the property for this point in time
Definition mlt_animation.h:46
Property Animation class.
Definition mlt_animation.c:49
Property class.
Definition mlt_property.c:63