1 /*
2  * kdenlivetitle_wrapper.h -- kdenlivetitle wrapper
3  * Copyright (c) 2009 Marco Gittler <g.marco@freenet.de>
4  * Copyright (c) 2009 Jean-Baptiste Mardelle <jb@kdenlive.org>
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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20 
21 #include <framework/mlt.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include <framework/mlt_producer.h>
28 #include <framework/mlt_cache.h>
29 #include <framework/mlt_frame.h>
30 
31 
32 struct producer_ktitle_s
33 {
34 	struct mlt_producer_s parent;
35 	uint8_t *rgba_image;
36 	uint8_t *current_image;
37 	uint8_t *current_alpha;
38 	mlt_image_format format;
39 	int current_width;
40 	int current_height;
41 	int has_alpha;
42 	pthread_mutex_t mutex;
43 };
44 
45 typedef struct producer_ktitle_s *producer_ktitle;
46 
47 extern void drawKdenliveTitle( producer_ktitle self, mlt_frame frame, mlt_image_format format, int, int, double, int );
48 
49 
50 #ifdef __cplusplus
51 }
52 #endif
53