Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / ext / cairo / gstcairorender.h
1 /* cairorender: CAIRO plugin for GStreamer
2  * 
3  * Copyright (C) 2006-2009 Lutz Mueller <lutz@topfrose.de>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __GST_CAIRO_RENDER_H_
22 #define __GST_CAIRO_RENDER_H__
23
24 #include <gst/gst.h>
25 #include <cairo.h>
26
27 G_BEGIN_DECLS
28
29 #define GST_TYPE_CAIRO_RENDER         (gst_cairo_render_get_type())
30 #define GST_CAIRO_RENDER(obj)         (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CAIRO_RENDER,GstCairoRender))
31 #define GST_CAIRO_RENDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CAIRO_RENDER,GstCairoRenderClass))
32
33 typedef struct _GstCairoRender      GstCairoRender;
34 typedef struct _GstCairoRenderClass GstCairoRenderClass;
35
36 struct _GstCairoRender
37 {
38   GstElement parent;
39
40   GstPad *snk, *src;
41
42   /* < private > */
43
44   /* Source */
45   cairo_surface_t *surface;
46   gint width, height, stride;
47
48   /* Sink */
49   gint64 offset, duration;
50   gboolean png;
51   cairo_format_t format;
52 };
53
54 struct _GstCairoRenderClass
55 {
56   GstElementClass parent_class;
57 };
58
59 GType gst_cairo_render_get_type (void) G_GNUC_CONST;
60
61 G_END_DECLS
62
63 #endif /* __GST_CAIRO_RENDER_H__ */