]> git.sesse.net Git - mlt/blobdiff - src/mlt++/MltProperties.h
Make animation length optional.
[mlt] / src / mlt++ / MltProperties.h
index 4db86017669e207a3af4f6ceb05ac083167baebe..a2a68fa8bc22bec54967728c3b8becefceaacf9d 100644 (file)
@@ -42,12 +42,15 @@ namespace Mlt
                        Properties( bool dummy );
                        Properties( Properties &properties );
                        Properties( mlt_properties properties );
+                       Properties( void *properties );
                        Properties( const char *file );
                        virtual ~Properties( );
                        virtual mlt_properties get_properties( );
                        int inc_ref( );
                        int dec_ref( );
                        int ref_count( );
+                       void lock( );
+                       void unlock( );
                        void block( void *object = NULL );
                        void unblock( void *object = NULL );
                        void fire_event( const char *event );
@@ -55,14 +58,18 @@ namespace Mlt
                        int count( );
                        char *get( const char *name );
                        int get_int( const char *name );
+                       int64_t get_int64( const char *name );
                        double get_double( const char *name );
                        void *get_data( const char *name, int &size );
                        void *get_data( const char *name );
                        int set( const char *name, const char *value );
                        int set( const char *name, int value );
+                       int set( const char *name, int64_t value );
                        int set( const char *name, double value );
                        int set( const char *name, void *value, int size, mlt_destructor destroy = NULL, mlt_serialiser serial = NULL );
+                       void pass_property( Properties &that, const char *name );
                        int pass_values( Properties &that, const char *prefix );
+                       int pass_list( Properties &that, const char *list );
                        int parse( const char *namevalue );
                        char *get_name( int index );
                        char *get( int index );
@@ -82,6 +89,31 @@ namespace Mlt
                        static void delete_event( Event * );
                        Event *setup_wait_for( const char *id );
                        void wait_for( Event *, bool destroy = true );
+                       void wait_for( const char *id );
+                       bool is_sequence( );
+                       static Properties *parse_yaml( const char *file );
+                       char *serialise_yaml( );
+                       int preset( const char *name );
+                       int set_lcnumeric( const char *locale );
+                       const char *get_lcnumeric( );
+                       char *get_time( const char *name, mlt_time_format = mlt_time_smpte );
+                       mlt_color get_color( const char *name );
+
+                       char* anim_get( const char *name, int position, int length = 0 );
+                       int anim_set( const char *name, const char *value, int position, int length = 0 );
+                       int anim_get_int( const char *name, int position, int length = 0 );
+                       int anim_set( const char *name, int value, int position, int length = 0,
+                               mlt_keyframe_type keyframe_type = mlt_keyframe_linear );
+                       double anim_get_double( const char *name, int position, int length = 0 );
+                       int anim_set( const char *name, double value, int position, int length = 0,
+                               mlt_keyframe_type keyframe_type = mlt_keyframe_linear );
+
+                       int set( const char *name, mlt_rect value );
+                       int set( const char *name, double x, double y, double w, double h, double opacity = 1.0 );
+                       mlt_rect get_rect( const char* name );
+                       int anim_set( const char *name, mlt_rect value, int position, int length = 0,
+                               mlt_keyframe_type keyframe_type = mlt_keyframe_linear );
+                       mlt_rect anim_get_rect( const char *name, int position, int length = 0 );
        };
 }