tizen2.0 init
[framework/multimedia/gst-plugins-ext0.10.git] / evasimagesink / src / gstevasimagesink.h
1 /*
2  * evasimagesink
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Sangchul Lee <sc11.lee@samsung.com>
7  *
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License as published by the
10  * Free Software Foundation; either version 2.1 of the License, or (at your option)
11  * any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc., 51
20  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23
24 #ifndef __GST_EVASIMAGESINK_H__
25 #define __GST_EVASIMAGESINK_H__
26
27 #include <gst/gst.h>
28 #include <gst/video/gstvideosink.h>
29 #include <Evas.h>
30 #include <Ecore.h>
31 #include <mm_ta.h>
32
33 G_BEGIN_DECLS
34
35 /* #defines don't like whitespacey bits */
36 #define GST_TYPE_EVASIMAGESINK \
37   (gst_evas_image_sink_get_type())
38 #define GST_EVASIMAGESINK(obj) \
39   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_EVASIMAGESINK,GstEvasImageSink))
40 #define GST_EVASIMAGESINK_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_EVASIMAGESINK,GstEvasImageSinkClass))
42 #define GST_IS_EVASIMAGESINK(obj) \
43   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_EVASIMAGESINK))
44 #define GST_IS_EVASIMAGESINK_CLASS(klass) \
45   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_EVASIMAGESINK))
46
47 typedef struct _GstEvasImageSink      GstEvasImageSink;
48 typedef struct _GstEvasImageSinkClass GstEvasImageSinkClass;
49
50 struct _GstEvasImageSink
51 {
52         GstVideoSink element;
53
54         Evas_Object *eo;
55         Ecore_Pipe *epipe;
56         Evas_Coord w;
57         Evas_Coord h;
58         gboolean object_show;
59         gboolean gl_zerocopy;
60
61         GstBuffer *oldbuf;
62
63         gboolean is_evas_object_size_set;
64         guint present_data_addr;
65 };
66
67 struct _GstEvasImageSinkClass
68 {
69         GstVideoSinkClass parent_class;
70 };
71
72 GType gst_evas_image_sink_get_type (void);
73
74 G_END_DECLS
75
76 #endif /* __GST_EVASIMAGESINK_H__ */