f2b6c41451563b337c3898bac40f9fd71d6f1f64
[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
32 G_BEGIN_DECLS
33
34 /* #defines don't like whitespacey bits */
35 #define GST_TYPE_EVASIMAGESINK \
36   (gst_evas_image_sink_get_type())
37 #define GST_EVASIMAGESINK(obj) \
38   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_EVASIMAGESINK,GstEvasImageSink))
39 #define GST_EVASIMAGESINK_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_EVASIMAGESINK,GstEvasImageSinkClass))
41 #define GST_IS_EVASIMAGESINK(obj) \
42   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_EVASIMAGESINK))
43 #define GST_IS_EVASIMAGESINK_CLASS(klass) \
44   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_EVASIMAGESINK))
45
46 typedef struct _GstEvasImageSink      GstEvasImageSink;
47 typedef struct _GstEvasImageSinkClass GstEvasImageSinkClass;
48
49 struct _GstEvasImageSink
50 {
51   GstVideoSink element;
52
53   GstPad *sinkpad, *srcpad;
54
55   Evas_Object *eo;
56   Ecore_Pipe *epipe;
57   Evas_Coord w, h;
58   GstBuffer *oldbuf;
59   gboolean gl_zerocopy;
60 };
61
62 struct _GstEvasImageSinkClass
63 {
64   GstVideoSinkClass parent_class;
65 };
66
67 GType gst_evas_image_sink_get_type (void);
68
69 G_END_DECLS
70
71 #endif /* __GST_EVASIMAGESINK_H__ */