]> git.sesse.net Git - mlt/blob - src/framework/mlt_types.h
Cleanup license declarations and remove dv1394d references.
[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 library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, 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 #ifndef GCC_VERSION
25 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
26 #endif
27
28 #include <stdint.h>
29
30 #include "mlt_pool.h"
31
32 typedef enum
33 {
34         mlt_image_none = 0,
35         mlt_image_rgb24,
36         mlt_image_rgb24a,
37         mlt_image_yuv422,
38         mlt_image_yuv420p,
39         mlt_image_opengl
40 }
41 mlt_image_format;
42
43 typedef enum
44 {
45         mlt_audio_none = 0,
46         mlt_audio_pcm
47 }
48 mlt_audio_format;
49
50 typedef enum
51 {
52         mlt_whence_relative_start,
53         mlt_whence_relative_current,
54         mlt_whence_relative_end
55 }
56 mlt_whence;
57
58 typedef enum
59 {
60         invalid_type,
61         unknown_type,
62         producer_type,
63         playlist_type,
64         tractor_type,
65         multitrack_type,
66         filter_type,
67         transition_type,
68         consumer_type,
69         field_type
70 }
71 mlt_service_type;
72
73 /* I don't want to break anyone's applications without warning. -Zach */
74 #undef DOUBLE_MLT_POSITION
75 #ifdef DOUBLE_MLT_POSITION
76 typedef double mlt_position;
77 #else
78 typedef int32_t mlt_position;
79 #endif
80
81 typedef struct mlt_frame_s *mlt_frame, **mlt_frame_ptr;
82 typedef struct mlt_properties_s *mlt_properties;
83 typedef struct mlt_event_struct *mlt_event;
84 typedef struct mlt_service_s *mlt_service;
85 typedef struct mlt_producer_s *mlt_producer;
86 typedef struct mlt_playlist_s *mlt_playlist;
87 typedef struct mlt_multitrack_s *mlt_multitrack;
88 typedef struct mlt_filter_s *mlt_filter;
89 typedef struct mlt_transition_s *mlt_transition;
90 typedef struct mlt_tractor_s *mlt_tractor;
91 typedef struct mlt_field_s *mlt_field;
92 typedef struct mlt_consumer_s *mlt_consumer;
93 typedef struct mlt_parser_s *mlt_parser;
94 typedef struct mlt_deque_s *mlt_deque;
95 typedef struct mlt_geometry_s *mlt_geometry;
96 typedef struct mlt_geometry_item_s *mlt_geometry_item;
97
98 typedef void ( *mlt_destructor )( void * );
99 typedef char *( *mlt_serialiser )( void *, int length );
100
101 #define MLT_SERVICE(x) ( ( mlt_service )( x ) )
102 #define MLT_PRODUCER(x) ( ( mlt_producer )( x ) )
103 #define MLT_MULTITRACK(x) ( ( mlt_multitrack )( x ) )
104 #define MLT_PLAYLIST(x) ( ( mlt_playlist )( x ) )
105 #define MLT_TRACTOR(x) ( ( mlt_tractor )( x ) )
106 #define MLT_FILTER(x) ( ( mlt_filter )( x ) )
107 #define MLT_TRANSITION(x) ( ( mlt_transition )( x ) )
108
109 #endif