mlt_property property;
mlt_keyframe_type keyframe_type;
};
-typedef struct mlt_animation_item_s *mlt_animation_item;
+typedef struct mlt_animation_item_s *mlt_animation_item; /**< pointer to an animation item */
struct mlt_animation_s;
-typedef struct mlt_animation_s *mlt_animation;
/* Create a new animation object. */
extern mlt_animation mlt_animation_new( );
mlt_rect rect = { DBL_MIN, DBL_MIN, DBL_MIN, DBL_MIN, DBL_MIN };
return value == NULL ? rect : mlt_property_anim_get_rect( value, fps, list->locale, position, length );
}
+
+/** Get the animation associated to the name.
+ *
+ * \public \memberof mlt_properties_s
+ * \param self a properties list
+ * \param name the property to get
+ * \return The animation object or NULL if the property has no animation
+ */
+
+mlt_animation mlt_properties_get_animation( mlt_properties self, const char *name )
+{
+ mlt_property value = mlt_properties_find( self, name );
+ return value == NULL ? NULL : mlt_property_get_animation( 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 );
+extern mlt_animation mlt_properties_get_animation( mlt_properties self, const char *name );
#endif
}
return result;
}
+
+mlt_animation mlt_property_get_animation( mlt_property self )
+{
+ return self->animation;
+}
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, 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 );
+extern mlt_animation mlt_property_get_animation( mlt_property self );
#endif
typedef struct mlt_repository_s *mlt_repository; /**< pointer to Repository object */
typedef struct mlt_cache_s *mlt_cache; /**< pointer to Cache object */
typedef struct mlt_cache_item_s *mlt_cache_item; /**< pointer to CacheItem object */
+typedef struct mlt_animation_s *mlt_animation; /**< pointer to Property Animation object */
typedef void ( *mlt_destructor )( void * ); /**< pointer to destructor function */
typedef char *( *mlt_serialiser )( void *, int length );/**< pointer to serialization function */