X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fframework%2Fmlt_properties.h;h=f4a44c0e6ca99233de3f80a0d2794e524bd8d873;hb=54168b279313b35ca85ae9410a75995658f70c0f;hp=55f9b0d6b49da0483a51dbe82ea5c493d130a0e6;hpb=f9bba88d936e4d95bc962b139f8deed43821333c;p=mlt diff --git a/src/framework/mlt_properties.h b/src/framework/mlt_properties.h index 55f9b0d6..f4a44c0e 100644 --- a/src/framework/mlt_properties.h +++ b/src/framework/mlt_properties.h @@ -3,7 +3,7 @@ * \brief Properties class declaration * \see mlt_properties_s * - * Copyright (C) 2003-2011 Ushodaya Enterprises Limited + * Copyright (C) 2003-2013 Ushodaya Enterprises Limited * \author Charles Yates * \author Dan Dennedy * @@ -47,7 +47,10 @@ struct mlt_properties_s extern int mlt_properties_init( mlt_properties, void *child ); extern mlt_properties mlt_properties_new( ); +extern int mlt_properties_set_lcnumeric( mlt_properties, const char *locale ); +extern const char* mlt_properties_get_lcnumeric( mlt_properties self ); extern mlt_properties mlt_properties_load( const char *file ); +extern int mlt_properties_preset( mlt_properties self, const char *name ); extern int mlt_properties_inc_ref( mlt_properties self ); extern int mlt_properties_dec_ref( mlt_properties self ); extern int mlt_properties_ref_count( mlt_properties self ); @@ -86,4 +89,24 @@ extern char *mlt_properties_serialise_yaml( mlt_properties self ); extern void mlt_properties_lock( mlt_properties self ); extern void mlt_properties_unlock( mlt_properties self ); +extern char *mlt_properties_get_time( mlt_properties, const char* name, mlt_time_format ); +extern char *mlt_properties_frames_to_time( mlt_properties, mlt_position, mlt_time_format ); +extern mlt_position mlt_properties_time_to_frames( mlt_properties, const char* time ); + +extern mlt_color mlt_properties_get_color( mlt_properties, const char* name ); +extern int mlt_properties_set_color( mlt_properties, const char* name, mlt_color value ); + +extern char* mlt_properties_anim_get( mlt_properties self, const char *name, int position, int length ); +extern int mlt_properties_anim_set( mlt_properties self, const char *name, const char *value, int position, int length ); +extern int mlt_properties_anim_get_int( mlt_properties self, const char *name, int position, int length ); +extern int mlt_properties_anim_set_int( mlt_properties self, const char *name, int value, int position, int length, mlt_keyframe_type keyframe_type ); +extern double mlt_properties_anim_get_double( mlt_properties self, const char *name, int position, int length ); +extern int mlt_properties_anim_set_double( mlt_properties self, const char *name, double value, int position, int length, mlt_keyframe_type keyframe_type ); +extern mlt_animation mlt_properties_get_animation( mlt_properties self, const char *name ); + +extern int mlt_properties_set_rect( mlt_properties self, const char *name, mlt_rect value ); +extern mlt_rect mlt_properties_get_rect( mlt_properties self, const char *name ); +extern int mlt_properties_anim_set_rect( mlt_properties self, const char *name, mlt_rect value, int position, int length, mlt_keyframe_type keyframe_type ); +extern mlt_rect mlt_properties_anim_get_rect( mlt_properties self, const char *name, int position, int length ); + #endif