]> git.sesse.net Git - mlt/blob - src/framework/mlt_types.h
added deque, api design for manager, minor affine tweaks, experimental destructor...
[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 typedef enum
27 {
28         mlt_whence_relative_start,
29         mlt_whence_relative_current,
30         mlt_whence_relative_end
31 }
32 mlt_whence;
33
34 typedef int64_t mlt_position;
35 typedef struct mlt_frame_s *mlt_frame, **mlt_frame_ptr;
36 typedef struct mlt_properties_s *mlt_properties;
37 typedef struct mlt_service_s *mlt_service;
38 typedef struct mlt_producer_s *mlt_producer;
39 typedef struct mlt_manager_s *mlt_manager;
40 typedef struct mlt_playlist_s *mlt_playlist;
41 typedef struct mlt_multitrack_s *mlt_multitrack;
42 typedef struct mlt_filter_s *mlt_filter;
43 typedef struct mlt_transition_s *mlt_transition;
44 typedef struct mlt_tractor_s *mlt_tractor;
45 typedef struct mlt_field_s *mlt_field;
46 typedef struct mlt_consumer_s *mlt_consumer;
47 typedef struct mlt_deque_s *mlt_deque;
48
49 typedef void ( *mlt_destructor )( void * );
50 typedef char *( *mlt_serialiser )( void *, int length );
51
52 #define MLT_SERVICE(x) ( ( mlt_service )( x ) )
53 #define MLT_PRODUCER(x) ( ( mlt_producer )( x ) )
54 #define MLT_MULTITRACK(x) ( ( mlt_multitrack )( x ) )
55 #define MLT_PLAYLIST(x) ( ( mlt_playlist )( x ) )
56 #define MLT_TRACTOR(x) ( ( mlt_tractor )( x ) )
57 #define MLT_FILTER(x) ( ( mlt_filter )( x ) )
58 #define MLT_TRANSITION(x) ( ( mlt_transition )( x ) )
59
60 #endif