X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_types.h;h=e9c1743271db526e1045f5641fd81ff23f3668ca;hb=a8be96087b2f59f05330f2a6320baa62d31d5c03;hp=58aacbb0d5acbdd91ea1d167522311809191d441;hpb=b76b6f1e50864e9a6ed239e0b4e1577d58fc24be;p=melted diff --git a/src/framework/mlt_types.h b/src/framework/mlt_types.h index 58aacbb..e9c1743 100644 --- a/src/framework/mlt_types.h +++ b/src/framework/mlt_types.h @@ -25,7 +25,7 @@ #include "mlt_pool.h" -typedef enum mlt_image_format_enum +typedef enum { mlt_image_none = 0, mlt_image_rgb24, @@ -35,14 +35,14 @@ typedef enum mlt_image_format_enum } mlt_image_format; -typedef enum mlt_audio_format_enum +typedef enum { mlt_audio_none = 0, mlt_audio_pcm } mlt_audio_format; -typedef enum mlt_whence_enum +typedef enum { mlt_whence_relative_start, mlt_whence_relative_current, @@ -50,7 +50,7 @@ typedef enum mlt_whence_enum } mlt_whence; -typedef enum mlt_service_type_enum +typedef enum { invalid_type, unknown_type, @@ -65,7 +65,14 @@ typedef enum mlt_service_type_enum } mlt_service_type; +/* I don't want to break anyone's applications without warning. -Zach */ +#undef DOUBLE_MLT_POSITION +#ifdef DOUBLE_MLT_POSITION +typedef double mlt_position; +#else typedef int32_t mlt_position; +#endif + typedef struct mlt_frame_s *mlt_frame, **mlt_frame_ptr; typedef struct mlt_properties_s *mlt_properties; typedef struct mlt_event_struct *mlt_event;