MLT 7.12.0
mlt_properties.h
Go to the documentation of this file.
1
23#ifndef MLT_PROPERTIES_H
24#define MLT_PROPERTIES_H
25
26#include "mlt_types.h"
27#include "mlt_events.h"
28#include <stdio.h>
29
40{
41 void *child;
42 void *local;
47};
48
49extern int mlt_properties_init( mlt_properties, void *child );
51extern int mlt_properties_set_lcnumeric( mlt_properties, const char *locale );
53extern mlt_properties mlt_properties_load( const char *file );
54extern int mlt_properties_preset( mlt_properties self, const char *name );
60extern int mlt_properties_copy( mlt_properties self, mlt_properties that, const char *prefix );
61extern int mlt_properties_pass( mlt_properties self, mlt_properties that, const char *prefix );
62extern void mlt_properties_pass_property( mlt_properties self, mlt_properties that, const char *name );
63extern int mlt_properties_pass_list( mlt_properties self, mlt_properties that, const char *list );
64extern int mlt_properties_set( mlt_properties self, const char *name, const char *value );
65extern int mlt_properties_set_or_default( mlt_properties self, const char *name, const char *value, const char *def );
66extern int mlt_properties_set_string( mlt_properties self, const char *name, const char *value );
67extern int mlt_properties_parse( mlt_properties self, const char *namevalue );
68extern char *mlt_properties_get( mlt_properties self, const char *name );
69extern char *mlt_properties_get_name( mlt_properties self, int index );
71extern char *mlt_properties_get_value( mlt_properties self, int index );
72extern void *mlt_properties_get_data_at( mlt_properties self, int index, int *size );
73extern int mlt_properties_get_int( mlt_properties self, const char *name );
74extern int mlt_properties_set_int( mlt_properties self, const char *name, int value );
75extern int64_t mlt_properties_get_int64( mlt_properties self, const char *name );
76extern int mlt_properties_set_int64( mlt_properties self, const char *name, int64_t value );
77extern double mlt_properties_get_double( mlt_properties self, const char *name );
78extern int mlt_properties_set_double( mlt_properties self, const char *name, double value );
80extern int mlt_properties_set_position( mlt_properties self, const char *name, mlt_position value );
81extern int mlt_properties_set_data( mlt_properties self, const char *name, void *value, int length, mlt_destructor, mlt_serialiser );
82extern void *mlt_properties_get_data( mlt_properties self, const char *name, int *length );
83extern int mlt_properties_rename( mlt_properties self, const char *source, const char *dest );
85extern void mlt_properties_dump( mlt_properties self, FILE *output );
86extern void mlt_properties_debug( mlt_properties self, const char *title, FILE *output );
87extern int mlt_properties_save( mlt_properties, const char * );
88extern int mlt_properties_dir_list( mlt_properties, const char *, const char *, int );
91extern mlt_properties mlt_properties_parse_yaml( const char *file );
95extern void mlt_properties_clear( mlt_properties self, const char *name );
96extern int mlt_properties_exists( mlt_properties self, const char *name );
97
98extern char *mlt_properties_get_time( mlt_properties, const char* name, mlt_time_format );
101
102extern int mlt_properties_set_color( mlt_properties, const char* name, mlt_color value );
104extern int mlt_properties_anim_set_color( mlt_properties self, const char *name, mlt_color value, int position, int length , mlt_keyframe_type keyframe_type );
105extern mlt_color mlt_properties_anim_get_color( mlt_properties self, const char *name, int position, int length );
106
107extern char* mlt_properties_anim_get( mlt_properties self, const char *name, int position, int length );
108extern int mlt_properties_anim_set( mlt_properties self, const char *name, const char *value, int position, int length );
109extern int mlt_properties_anim_get_int( mlt_properties self, const char *name, int position, int length );
110extern int mlt_properties_anim_set_int( mlt_properties self, const char *name, int value, int position, int length, mlt_keyframe_type keyframe_type );
111extern double mlt_properties_anim_get_double( mlt_properties self, const char *name, int position, int length );
112extern int mlt_properties_anim_set_double( mlt_properties self, const char *name, double value, int position, int length, mlt_keyframe_type keyframe_type );
114extern int mlt_properties_is_anim(mlt_properties self, const char *name);
115
116extern int mlt_properties_set_rect( mlt_properties self, const char *name, mlt_rect value );
117extern mlt_rect mlt_properties_get_rect( mlt_properties self, const char *name );
118extern int mlt_properties_anim_set_rect( mlt_properties self, const char *name, mlt_rect value, int position, int length, mlt_keyframe_type keyframe_type );
119extern mlt_rect mlt_properties_anim_get_rect( mlt_properties self, const char *name, int position, int length );
120
121extern int mlt_properties_from_utf8( mlt_properties properties, const char *name_from, const char *name_to );
122extern int mlt_properties_to_utf8( mlt_properties properties, const char *name_from, const char *name_to );
123
124extern int mlt_properties_set_properties( mlt_properties self, const char *name, mlt_properties properties );
127
128#endif
event handling
int mlt_properties_dir_list(mlt_properties, const char *, const char *, int)
int mlt_properties_set_int64(mlt_properties self, const char *name, int64_t value)
int mlt_properties_set(mlt_properties self, const char *name, const char *value)
void mlt_properties_pass_property(mlt_properties self, mlt_properties that, const char *name)
mlt_properties mlt_properties_new()
int mlt_properties_set_double(mlt_properties self, const char *name, double value)
int mlt_properties_set_int(mlt_properties self, const char *name, int value)
void mlt_properties_debug(mlt_properties self, const char *title, FILE *output)
int mlt_properties_anim_set_double(mlt_properties self, const char *name, double value, int position, int length, mlt_keyframe_type keyframe_type)
char * mlt_properties_get_value_tf(mlt_properties self, int index, mlt_time_format)
char * mlt_properties_frames_to_time(mlt_properties, mlt_position, mlt_time_format)
char * mlt_properties_serialise_yaml(mlt_properties self)
int mlt_properties_inherit(mlt_properties self, mlt_properties that)
mlt_color mlt_properties_anim_get_color(mlt_properties self, const char *name, int position, int length)
char * mlt_properties_get_time(mlt_properties, const char *name, mlt_time_format)
mlt_rect mlt_properties_anim_get_rect(mlt_properties self, const char *name, int position, int length)
int mlt_properties_anim_set_color(mlt_properties self, const char *name, mlt_color value, int position, int length, mlt_keyframe_type keyframe_type)
mlt_animation mlt_properties_get_animation(mlt_properties self, const char *name)
int mlt_properties_preset(mlt_properties self, const char *name)
int mlt_properties_set_or_default(mlt_properties self, const char *name, const char *value, const char *def)
int64_t mlt_properties_get_int64(mlt_properties self, const char *name)
int mlt_properties_pass_list(mlt_properties self, mlt_properties that, const char *list)
int mlt_properties_pass(mlt_properties self, mlt_properties that, const char *prefix)
int mlt_properties_rename(mlt_properties self, const char *source, const char *dest)
int mlt_properties_set_data(mlt_properties self, const char *name, void *value, int length, mlt_destructor, mlt_serialiser)
char * mlt_properties_anim_get(mlt_properties self, const char *name, int position, int length)
char * mlt_properties_get_value(mlt_properties self, int index)
int mlt_properties_from_utf8(mlt_properties properties, const char *name_from, const char *name_to)
void mlt_properties_mirror(mlt_properties self, mlt_properties that)
int mlt_properties_set_color(mlt_properties, const char *name, mlt_color value)
int mlt_properties_anim_set_int(mlt_properties self, const char *name, int value, int position, int length, mlt_keyframe_type keyframe_type)
mlt_position mlt_properties_time_to_frames(mlt_properties, const char *time)
int mlt_properties_set_lcnumeric(mlt_properties, const char *locale)
void mlt_properties_clear(mlt_properties self, const char *name)
void mlt_properties_dump(mlt_properties self, FILE *output)
int mlt_properties_set_position(mlt_properties self, const char *name, mlt_position value)
const char * mlt_properties_get_lcnumeric(mlt_properties self)
int mlt_properties_parse(mlt_properties self, const char *namevalue)
void mlt_properties_close(mlt_properties self)
double mlt_properties_get_double(mlt_properties self, const char *name)
char * mlt_properties_get_name(mlt_properties self, int index)
mlt_rect mlt_properties_get_rect(mlt_properties self, const char *name)
int mlt_properties_copy(mlt_properties self, mlt_properties that, const char *prefix)
int mlt_properties_anim_get_int(mlt_properties self, const char *name, int position, int length)
int mlt_properties_save(mlt_properties, const char *)
mlt_properties mlt_properties_get_properties_at(mlt_properties self, int index)
double mlt_properties_anim_get_double(mlt_properties self, const char *name, int position, int length)
int mlt_properties_dec_ref(mlt_properties self)
int mlt_properties_exists(mlt_properties self, const char *name)
mlt_position mlt_properties_get_position(mlt_properties self, const char *name)
void * mlt_properties_get_data_at(mlt_properties self, int index, int *size)
int mlt_properties_inc_ref(mlt_properties self)
void * mlt_properties_get_data(mlt_properties self, const char *name, int *length)
int mlt_properties_count(mlt_properties self)
mlt_properties mlt_properties_parse_yaml(const char *file)
mlt_properties mlt_properties_load(const char *file)
int mlt_properties_to_utf8(mlt_properties properties, const char *name_from, const char *name_to)
int mlt_properties_anim_set(mlt_properties self, const char *name, const char *value, int position, int length)
int mlt_properties_set_properties(mlt_properties self, const char *name, mlt_properties properties)
void mlt_properties_lock(mlt_properties self)
mlt_color mlt_properties_get_color(mlt_properties, const char *name)
int mlt_properties_anim_set_rect(mlt_properties self, const char *name, mlt_rect value, int position, int length, mlt_keyframe_type keyframe_type)
int mlt_properties_get_int(mlt_properties self, const char *name)
void mlt_properties_unlock(mlt_properties self)
mlt_properties mlt_properties_get_properties(mlt_properties self, const char *name)
int mlt_properties_is_anim(mlt_properties self, const char *name)
int mlt_properties_init(mlt_properties, void *child)
int mlt_properties_ref_count(mlt_properties self)
int mlt_properties_is_sequence(mlt_properties self)
int mlt_properties_set_rect(mlt_properties self, const char *name, mlt_rect value)
int mlt_properties_set_string(mlt_properties self, const char *name, const char *value)
char * mlt_properties_get(mlt_properties self, const char *name)
Provides forward definitions of all public types.
mlt_time_format
The time string formats.
Definition: mlt_types.h:127
int32_t mlt_position
Definition: mlt_types.h:181
void(* mlt_destructor)(void *)
pointer to destructor function
Definition: mlt_types.h:233
mlt_keyframe_type
Interpolation methods for animation keyframes.
Definition: mlt_types.h:137
char *(* mlt_serialiser)(void *, int length)
pointer to serialization function
Definition: mlt_types.h:234
Property Animation class.
Definition: mlt_animation.c:49
A tuple of color components.
Definition: mlt_types.h:197
Properties class.
Definition: mlt_properties.h:40
void * child
the object of a subclass
Definition: mlt_properties.h:41
void * close_object
the object supplied to the close virtual function
Definition: mlt_properties.h:46
void * local
instance object
Definition: mlt_properties.h:42
mlt_destructor close
the destructor virtual function
Definition: mlt_properties.h:45
A rectangle type with coordinates, size, and opacity.
Definition: mlt_types.h:186