]> git.sesse.net Git - mlt/commitdiff
Reorder some property anim parameters for consistency.
authorDan Dennedy <dan@dennedy.org>
Thu, 30 May 2013 05:03:16 +0000 (22:03 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 31 May 2013 23:58:13 +0000 (16:58 -0700)
src/framework/mlt_properties.c
src/framework/mlt_properties.h
src/framework/mlt_property.c
src/framework/mlt_property.h
src/mlt++/MltProperties.cpp
src/tests/test_properties/test_properties.cpp

index 705ccdf67a217d7d909850deb269a8d266d77638..e66c5d6d1e10f44bd1380b0fdb6a77ee5f81726f 100644 (file)
@@ -2198,7 +2198,7 @@ int mlt_properties_anim_get_int( mlt_properties self, const char *name, int posi
  */
 
 int mlt_properties_anim_set_int( mlt_properties self, const char *name, int value,
-       mlt_keyframe_type keyframe_type, int position, int length )
+       int position, int length, mlt_keyframe_type keyframe_type )
 {
        int error = 1;
 
@@ -2213,7 +2213,7 @@ int mlt_properties_anim_set_int( mlt_properties self, const char *name, int valu
                mlt_profile profile = mlt_properties_get_data( self, "_profile", NULL );
                double fps = mlt_profile_fps( profile );
                property_list *list = self->local;
-               error = mlt_property_anim_set_int( property, value, fps, list->locale, keyframe_type, position, length );
+               error = mlt_property_anim_set_int( property, value, fps, list->locale, position, length, keyframe_type );
                mlt_properties_do_mirror( self, name );
        }
 
@@ -2249,7 +2249,7 @@ double mlt_properties_anim_get_double( mlt_properties self, const char *name, in
  */
 
 int mlt_properties_anim_set_double( mlt_properties self, const char *name, double value,
-       mlt_keyframe_type keyframe_type, int position, int length )
+       int position, int length, mlt_keyframe_type keyframe_type )
 {
        int error = 1;
 
@@ -2264,7 +2264,7 @@ int mlt_properties_anim_set_double( mlt_properties self, const char *name, doubl
                mlt_profile profile = mlt_properties_get_data( self, "_profile", NULL );
                double fps = mlt_profile_fps( profile );
                property_list *list = self->local;
-               error = mlt_property_anim_set_double( property, value, fps, list->locale, keyframe_type, position, length );
+               error = mlt_property_anim_set_double( property, value, fps, list->locale, position, length, keyframe_type );
                mlt_properties_do_mirror( self, name );
        }
 
@@ -2328,7 +2328,8 @@ extern mlt_rect mlt_properties_get_rect( mlt_properties self, const char* name )
  * \return true if error
  */
 
-extern int mlt_properties_anim_set_rect( mlt_properties self, const char *name, mlt_rect value, mlt_keyframe_type keyframe_type, int position, int length )
+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 )
 {
        int error = 1;
 
@@ -2343,7 +2344,7 @@ extern int mlt_properties_anim_set_rect( mlt_properties self, const char *name,
                mlt_profile profile = mlt_properties_get_data( self, "_profile", NULL );
                double fps = mlt_profile_fps( profile );
                property_list *list = self->local;
-               error = mlt_property_anim_set_rect( property, value, fps, list->locale, keyframe_type, position, length );
+               error = mlt_property_anim_set_rect( property, value, fps, list->locale, position, length, keyframe_type );
                mlt_properties_do_mirror( self, name );
        }
 
index ec79068789e447e4bd851b3c9f1aa7cf68364254..acd1dd4a618fb92c74513eb354d5716584ab9410 100644 (file)
@@ -94,13 +94,13 @@ extern mlt_color mlt_properties_get_color( mlt_properties, const char* name );
 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, mlt_keyframe_type keyframe_type, 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, mlt_keyframe_type keyframe_type, 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 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, mlt_keyframe_type keyframe_type, int position, int length );
+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
index 0edd0161bbf5bd9fcdf878108a34b3ba1c2ed1ea..a165761133f3d6be46c7d4420f2fca814c70ba45 100644 (file)
@@ -1175,7 +1175,7 @@ char* mlt_property_anim_get_string( mlt_property self, double fps, locale_t loca
  */
 
 int mlt_property_anim_set_double( mlt_property self, double value, double fps, locale_t locale,
-       mlt_keyframe_type keyframe_type, int position, int length )
+       int position, int length, mlt_keyframe_type keyframe_type )
 {
        int result;
        struct mlt_animation_item_s item;
@@ -1202,7 +1202,7 @@ int mlt_property_anim_set_double( mlt_property self, double value, double fps, l
  */
 
 int mlt_property_anim_set_int( mlt_property self, int value, double fps, locale_t locale,
-       mlt_keyframe_type keyframe_type, int position, int length )
+       int position, int length, mlt_keyframe_type keyframe_type )
 {
        int result;
        struct mlt_animation_item_s item;
@@ -1347,7 +1347,7 @@ mlt_rect mlt_property_get_rect( mlt_property self, locale_t locale )
  */
 
 int mlt_property_anim_set_rect( mlt_property self, mlt_rect value, double fps, locale_t locale,
-       mlt_keyframe_type keyframe_type, int position, int length )
+       int position, int length, mlt_keyframe_type keyframe_type )
 {
        int result;
        struct mlt_animation_item_s item;
index 1b4285db48f770f0f6d792d90881ed5f5df7c456..1300c457f64331910037d162b787586fee9c6c2e 100644 (file)
@@ -59,16 +59,12 @@ extern int mlt_property_interpolate( mlt_property self, mlt_property points[],
 extern double mlt_property_anim_get_double( mlt_property self, double fps, locale_t locale, int position, int length );
 extern int mlt_property_anim_get_int( mlt_property self, double fps, locale_t locale, int position, int length );
 extern char* mlt_property_anim_get_string( mlt_property self, double fps, locale_t locale, int position, int length );
-extern int mlt_property_anim_set_double( mlt_property self, double value, double fps, locale_t locale,
-                                         mlt_keyframe_type keyframe_type, int position, int length );
-extern int mlt_property_anim_set_int( mlt_property self, int value, double fps, locale_t locale,
-                                      mlt_keyframe_type keyframe_type, int position, int length );
-extern int mlt_property_anim_set_string( mlt_property self, const char *value, double fps, locale_t locale,
-                                         int position, int length );
+extern int mlt_property_anim_set_double( mlt_property self, double value, double fps, locale_t locale, int position, int length, mlt_keyframe_type keyframe_type );
+extern int mlt_property_anim_set_int( mlt_property self, int value, double fps, locale_t locale, int position, int length, mlt_keyframe_type keyframe_type );
+extern int mlt_property_anim_set_string( mlt_property self, const char *value, double fps, locale_t locale, int position, int length );
 extern int mlt_property_set_rect( mlt_property self, mlt_rect value );
 extern mlt_rect mlt_property_get_rect( mlt_property self, locale_t locale );
-extern int mlt_property_anim_set_rect( mlt_property self, mlt_rect value, double fps, locale_t locale,
-                                      mlt_keyframe_type keyframe_type, int position, int length );
+extern int mlt_property_anim_set_rect( mlt_property self, mlt_rect value, double fps, locale_t locale, int position, int length, mlt_keyframe_type keyframe_type );
 extern mlt_rect mlt_property_anim_get_rect( mlt_property self, double fps, locale_t locale, int position, int length );
 
 #endif
index b037025d97a265fd89e5a374d53dd52c297a398d..657b92c0097eaac53548fbb420356baa324b82eb 100644 (file)
@@ -359,7 +359,7 @@ int Properties::anim_get_int( const char *name, int position, int length )
 
 int Properties::anim_set( const char *name, int value, int position, int length, mlt_keyframe_type keyframe_type )
 {
-       return mlt_properties_anim_set_int( get_properties(), name, value, keyframe_type, position, length );
+       return mlt_properties_anim_set_int( get_properties(), name, value, position, length, keyframe_type );
 }
 
 double Properties::anim_get_double(const char *name, int position, int length)
@@ -367,9 +367,9 @@ double Properties::anim_get_double(const char *name, int position, int length)
        return mlt_properties_anim_get_double( get_properties(), name, position, length );
 }
 
-int Properties::anim_set(const char *name, double value, int position, int length, mlt_keyframe_type keyframe_type)
+int Properties::anim_set( const char *name, double value, int position, int length, mlt_keyframe_type keyframe_type )
 {
-       return mlt_properties_anim_set_double( get_properties(), name, value, keyframe_type, position, length );
+       return mlt_properties_anim_set_double( get_properties(), name, value, position, length, keyframe_type );
 }
 
 int Properties::set( const char *name, mlt_rect value )
@@ -388,9 +388,9 @@ mlt_rect Properties::get_rect( const char *name )
        return mlt_properties_get_rect( get_properties(), name );
 }
 
-int Properties::anim_set(const char *name, mlt_rect value, int position, int length, mlt_keyframe_type keyframe_type)
+int Properties::anim_set( const char *name, mlt_rect value, int position, int length, mlt_keyframe_type keyframe_type )
 {
-       return mlt_properties_anim_set_rect( get_properties(), name, value, keyframe_type, position, length );
+       return mlt_properties_anim_set_rect( get_properties(), name, value, position, length, keyframe_type );
 }
 
 mlt_rect Properties::anim_get_rect(const char *name, int position, int length)
index fb95480c8dc22c5c2352aed4995d3eea571cecc4..a2f488c55f7b20d1a83557b4f872a5f7d1caf444 100644 (file)
@@ -594,7 +594,7 @@ private Q_SLOTS:
         int len = 100;
         mlt_property p = mlt_property_init();
         mlt_property_set_string(p, "10=100; 20=200");
-        mlt_property_anim_set_double(p, 1.5, fps, locale, mlt_keyframe_linear, 30, len);
+        mlt_property_anim_set_double(p, 1.5, fps, locale, 30, len, mlt_keyframe_linear);
         QCOMPARE(mlt_property_get_double(p, fps, locale), 10.0);
         QCOMPARE(mlt_property_anim_get_double(p, fps, locale,  0, len), 100.0);
         QCOMPARE(mlt_property_anim_get_double(p, fps, locale, 15, len), 150.0);
@@ -610,7 +610,7 @@ private Q_SLOTS:
         int len = 0;
         mlt_property p = mlt_property_init();
         mlt_property_set_string(p, "10=100; 20=200");
-        mlt_property_anim_set_int(p, 300, fps, locale, mlt_keyframe_linear, 30, len);
+        mlt_property_anim_set_int(p, 300, fps, locale, 30, len, mlt_keyframe_linear);
         QCOMPARE(mlt_property_get_int(p, fps, locale), 10);
         QCOMPARE(mlt_property_anim_get_int(p, fps, locale,  0, len), 100);
         QCOMPARE(mlt_property_anim_get_int(p, fps, locale, 15, len), 150);