]> git.sesse.net Git - mlt/blob - src/framework/mlt_types.h
Fix build errors caused by the (hypothetical) conversion of mlt_position from an...
[mlt] / src / framework / mlt_types.h
1 /*
2  * mlt_types.h -- provides forward definitions of all public types
3  * Copyright (C) 2003-2004 Ushodaya Enterprises Limited
4  * Author: Charles Yates <charles.yates@pandora.be>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef _MLT_TYPES_H_
22 #define _MLT_TYPES_H_
23
24 #include <stdint.h>
25
26 #include "mlt_pool.h"
27
28 typedef enum
29 {
30         mlt_image_none = 0,
31         mlt_image_rgb24,
32         mlt_image_rgb24a,
33         mlt_image_yuv422,
34         mlt_image_yuv420p
35 }
36 mlt_image_format;
37
38 typedef enum
39 {
40         mlt_audio_none = 0,
41         mlt_audio_pcm
42 }
43 mlt_audio_format;
44
45 typedef enum
46 {
47         mlt_whence_relative_start,
48         mlt_whence_relative_current,
49         mlt_whence_relative_end
50 }
51 mlt_whence;
52
53 typedef enum
54 {
55         invalid_type,
56         unknown_type,
57         producer_type,
58         playlist_type,
59         tractor_type,
60         multitrack_type,
61         filter_type,
62         transition_type,
63         consumer_type,
64         field_type
65 }
66 mlt_service_type;
67
68 /* I don't want to break anyone's applications without warning. -Zach */
69 #undef DOUBLE_MLT_POSITION
70 #ifdef DOUBLE_MLT_POSITION
71 typedef double mlt_position;
72 #else
73 typedef int32_t mlt_position;
74 #endif
75
76 typedef struct mlt_frame_s *mlt_frame, **mlt_frame_ptr;
77 typedef struct mlt_properties_s *mlt_properties;
78 typedef struct mlt_event_struct *mlt_event;
79 typedef struct mlt_service_s *mlt_service;
80 typedef struct mlt_producer_s *mlt_producer;
81 typedef struct mlt_playlist_s *mlt_playlist;
82 typedef struct mlt_multitrack_s *mlt_multitrack;
83 typedef struct mlt_filter_s *mlt_filter;
84 typedef struct mlt_transition_s *mlt_transition;
85 typedef struct mlt_tractor_s *mlt_tractor;
86 typedef struct mlt_field_s *mlt_field;
87 typedef struct mlt_consumer_s *mlt_consumer;
88 typedef struct mlt_parser_s *mlt_parser;
89 typedef struct mlt_deque_s *mlt_deque;
90 typedef struct mlt_geometry_s *mlt_geometry;
91 typedef struct mlt_geometry_item_s *mlt_geometry_item;
92
93 typedef void ( *mlt_destructor )( void * );
94 typedef char *( *mlt_serialiser )( void *, int length );
95
96 #define MLT_SERVICE(x) ( ( mlt_service )( x ) )
97 #define MLT_PRODUCER(x) ( ( mlt_producer )( x ) )
98 #define MLT_MULTITRACK(x) ( ( mlt_multitrack )( x ) )
99 #define MLT_PLAYLIST(x) ( ( mlt_playlist )( x ) )
100 #define MLT_TRACTOR(x) ( ( mlt_tractor )( x ) )
101 #define MLT_FILTER(x) ( ( mlt_filter )( x ) )
102 #define MLT_TRANSITION(x) ( ( mlt_transition )( x ) )
103
104 #endif