X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fframework%2Fmlt_property.h;h=1300c457f64331910037d162b787586fee9c6c2e;hb=74890bee371a67eb4ce974a74c0c5a7e18b44167;hp=b195a50092c1a7b5ccd21404e6c5fd718baf7cc2;hpb=a471526712a58cb0ced264d46c519566df507449;p=mlt diff --git a/src/framework/mlt_property.h b/src/framework/mlt_property.h index b195a500..1300c457 100644 --- a/src/framework/mlt_property.h +++ b/src/framework/mlt_property.h @@ -26,7 +26,12 @@ #include "mlt_types.h" -#if defined(__linux__) || defined(__DARWIN__) +#if defined(__FreeBSD__) +/* This header has existed since 1994 and defines __FreeBSD_version below. */ +#include +#endif + +#if defined(__GLIBC__) || defined(__DARWIN__) || (__FreeBSD_version >= 900506) #include #else typedef void* locale_t; @@ -39,16 +44,27 @@ extern int mlt_property_set_position( mlt_property self, mlt_position value ); extern int mlt_property_set_int64( mlt_property self, int64_t value ); extern int mlt_property_set_string( mlt_property self, const char *value ); extern int mlt_property_set_data( mlt_property self, void *value, int length, mlt_destructor destructor, mlt_serialiser serialiser ); -extern int mlt_property_get_int( mlt_property self ); -extern double mlt_property_get_double( mlt_property self ); -extern double mlt_property_get_double_l( mlt_property self, locale_t ); -extern mlt_position mlt_property_get_position( mlt_property self ); +extern int mlt_property_get_int( mlt_property self, double fps, locale_t ); +extern double mlt_property_get_double( mlt_property self, double fps, locale_t ); +extern mlt_position mlt_property_get_position( mlt_property self, double fps, locale_t ); extern int64_t mlt_property_get_int64( mlt_property self ); extern char *mlt_property_get_string( mlt_property self ); extern char *mlt_property_get_string_l( mlt_property self, locale_t ); extern void *mlt_property_get_data( mlt_property self, int *length ); extern void mlt_property_close( mlt_property self ); - extern void mlt_property_pass( mlt_property self, mlt_property that ); +extern char *mlt_property_get_time( mlt_property self, mlt_time_format, double fps, locale_t ); +extern int mlt_property_interpolate( mlt_property self, mlt_property points[], + double progress, double fps, locale_t locale, mlt_keyframe_type interp ); +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, 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, 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