X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_types.h;h=5954f5fcb47d4dd08ad2dec0043768ed0e914dc2;hb=a450db7b8af164bcc71255fd74d406be98c9eb21;hp=aa9746321028214243158565270ffa256d794a85;hpb=661165812e3410fe2f6f49d7af882b36a0efcf82;p=melted diff --git a/src/framework/mlt_types.h b/src/framework/mlt_types.h index aa97463..5954f5f 100644 --- a/src/framework/mlt_types.h +++ b/src/framework/mlt_types.h @@ -23,9 +23,37 @@ #include -typedef double mlt_timecode; +#include "mlt_pool.h" + +typedef enum +{ + mlt_image_none = 0, + mlt_image_rgb24, + mlt_image_rgb24a, + mlt_image_yuv422, + mlt_image_yuv420p +} +mlt_image_format; + +typedef enum +{ + mlt_audio_none = 0, + mlt_audio_pcm +} +mlt_audio_format; + +typedef enum +{ + mlt_whence_relative_start, + mlt_whence_relative_current, + mlt_whence_relative_end +} +mlt_whence; + +typedef int32_t mlt_position; typedef struct mlt_frame_s *mlt_frame, **mlt_frame_ptr; typedef struct mlt_properties_s *mlt_properties; +typedef struct mlt_event_struct *mlt_event; typedef struct mlt_service_s *mlt_service; typedef struct mlt_producer_s *mlt_producer; typedef struct mlt_manager_s *mlt_manager; @@ -33,11 +61,20 @@ typedef struct mlt_playlist_s *mlt_playlist; typedef struct mlt_multitrack_s *mlt_multitrack; typedef struct mlt_filter_s *mlt_filter; typedef struct mlt_transition_s *mlt_transition; -typedef struct mlt_consumer_s *mlt_consumer; typedef struct mlt_tractor_s *mlt_tractor; +typedef struct mlt_field_s *mlt_field; +typedef struct mlt_consumer_s *mlt_consumer; +typedef struct mlt_deque_s *mlt_deque; typedef void ( *mlt_destructor )( void * ); typedef char *( *mlt_serialiser )( void *, int length ); +#define MLT_SERVICE(x) ( ( mlt_service )( x ) ) +#define MLT_PRODUCER(x) ( ( mlt_producer )( x ) ) +#define MLT_MULTITRACK(x) ( ( mlt_multitrack )( x ) ) +#define MLT_PLAYLIST(x) ( ( mlt_playlist )( x ) ) +#define MLT_TRACTOR(x) ( ( mlt_tractor )( x ) ) +#define MLT_FILTER(x) ( ( mlt_filter )( x ) ) +#define MLT_TRANSITION(x) ( ( mlt_transition )( x ) ) #endif