3 * \brief Provides forward definitions of all public types
5 * Copyright (C) 2003-2012 Ushodaya Enterprises Limited
6 * \author Charles Yates <charles.yates@pandora.be>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
38 /** The set of supported image formats */
42 mlt_image_none = 0,/**< image not available */
43 mlt_image_rgb24, /**< 8-bit RGB */
44 mlt_image_rgb24a, /**< 8-bit RGB with alpha channel */
45 mlt_image_yuv422, /**< 8-bit YUV 4:2:2 packed */
46 mlt_image_yuv420p, /**< 8-bit YUV 4:2:0 planar */
47 mlt_image_opengl /**< (deprecated) suitable for OpenGL texture */
51 /** The set of supported audio formats */
55 mlt_audio_none = 0,/**< audio not available */
56 mlt_audio_pcm = 1, /**< \deprecated signed 16-bit interleaved PCM */
57 mlt_audio_s16 = 1, /**< signed 16-bit interleaved PCM */
58 mlt_audio_s32, /**< signed 32-bit non-interleaved PCM */
59 mlt_audio_float, /**< 32-bit non-interleaved floating point */
60 mlt_audio_s32le, /**< signed 32-bit interleaved PCM */
61 mlt_audio_f32le, /**< 32-bit interleaved floating point */
62 mlt_audio_u8 /**< unsigned 8-bit interleaved PCM */
66 /** The time string formats */
70 mlt_time_frames = 0, /**< frame count */
71 mlt_time_clock, /**< SMIL clock-value as [[hh:]mm:]ss[.fraction] */
72 mlt_time_smpte /**< SMPTE timecode as [[[hh:]mm:]ss:]frames */
76 /** The relative time qualifiers */
80 mlt_whence_relative_start, /**< relative to the beginning */
81 mlt_whence_relative_current,/**< relative to the current position */
82 mlt_whence_relative_end /**< relative to the end */
86 /** The recognized subclasses of mlt_service */
90 invalid_type, /**< invalid service */
91 unknown_type, /**< unknown class */
92 producer_type, /**< Producer class */
93 tractor_type, /**< Tractor class */
94 playlist_type, /**< Playlist class */
95 multitrack_type, /**< Multitrack class */
96 filter_type, /**< Filter class */
97 transition_type, /**< Transition class */
98 consumer_type, /**< Consumer class */
99 field_type /**< Field class */
103 /* I don't want to break anyone's applications without warning. -Zach */
104 #undef DOUBLE_MLT_POSITION
105 #ifdef DOUBLE_MLT_POSITION
106 typedef double mlt_position;
108 typedef int32_t mlt_position;
111 typedef struct mlt_frame_s *mlt_frame, **mlt_frame_ptr; /**< pointer to Frame object */
112 typedef struct mlt_property_s *mlt_property; /**< pointer to Property object */
113 typedef struct mlt_properties_s *mlt_properties; /**< pointer to Properties object */
114 typedef struct mlt_event_struct *mlt_event; /**< pointer to Event object */
115 typedef struct mlt_service_s *mlt_service; /**< pointer to Service object */
116 typedef struct mlt_producer_s *mlt_producer; /**< pointer to Producer object */
117 typedef struct mlt_playlist_s *mlt_playlist; /**< pointer to Playlist object */
118 typedef struct mlt_multitrack_s *mlt_multitrack; /**< pointer to Multitrack object */
119 typedef struct mlt_filter_s *mlt_filter; /**< pointer to Filter object */
120 typedef struct mlt_transition_s *mlt_transition; /**< pointer to Transition object */
121 typedef struct mlt_tractor_s *mlt_tractor; /**< pointer to Tractor object */
122 typedef struct mlt_field_s *mlt_field; /**< pointer to Field object */
123 typedef struct mlt_consumer_s *mlt_consumer; /**< pointer to Consumer object */
124 typedef struct mlt_parser_s *mlt_parser; /**< pointer to Properties object */
125 typedef struct mlt_deque_s *mlt_deque; /**< pointer to Deque object */
126 typedef struct mlt_geometry_s *mlt_geometry; /**< pointer to Geometry object */
127 typedef struct mlt_geometry_item_s *mlt_geometry_item; /**< pointer to Geometry Item object */
128 typedef struct mlt_profile_s *mlt_profile; /**< pointer to Profile object */
129 typedef struct mlt_repository_s *mlt_repository; /**< pointer to Repository object */
130 typedef struct mlt_cache_s *mlt_cache; /**< pointer to Cache object */
131 typedef struct mlt_cache_item_s *mlt_cache_item; /**< pointer to CacheItem object */
133 typedef void ( *mlt_destructor )( void * ); /**< pointer to destructor function */
134 typedef char *( *mlt_serialiser )( void *, int length );/**< pointer to serialization function */
136 #define MLT_SERVICE(x) ( ( mlt_service )( x ) ) /**< Cast to a Service pointer */
137 #define MLT_PRODUCER(x) ( ( mlt_producer )( x ) ) /**< Cast to a Producer pointer */
138 #define MLT_MULTITRACK(x) ( ( mlt_multitrack )( x ) ) /**< Cast to a Multitrack pointer */
139 #define MLT_PLAYLIST(x) ( ( mlt_playlist )( x ) ) /**< Cast to a Playlist pointer */
140 #define MLT_TRACTOR(x) ( ( mlt_tractor )( x ) ) /**< Cast to a Tractor pointer */
141 #define MLT_FILTER(x) ( ( mlt_filter )( x ) ) /**< Cast to a Filter pointer */
142 #define MLT_TRANSITION(x) ( ( mlt_transition )( x ) ) /**< Cast to a Transition pointer */
143 #define MLT_CONSUMER(x) ( ( mlt_consumer )( x ) ) /**< Cast to a Consumer pointer */
144 #define MLT_FRAME(x) ( ( mlt_frame )( x ) ) /**< Cast to a Frame pointer */
148 /* Win32 compatibility function declarations */
149 extern int usleep(unsigned int useconds);
150 extern int nanosleep( const struct timespec * rqtp, struct timespec * rmtp );
151 extern int setenv(const char *name, const char *value, int overwrite);