1 /* cairorender: CAIRO plugin for GStreamer
3 * Copyright (C) 2006-2009 Lutz Mueller <lutz@topfrose.de>
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.
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.
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.
21 #ifndef __GST_CAIRO_RENDER_H_
22 #define __GST_CAIRO_RENDER_H__
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))
33 typedef struct _GstCairoRender GstCairoRender;
34 typedef struct _GstCairoRenderClass GstCairoRenderClass;
36 struct _GstCairoRender
45 cairo_surface_t *surface;
46 gint width, height, stride;
49 gint64 offset, duration;
51 cairo_format_t format;
54 struct _GstCairoRenderClass
56 GstElementClass parent_class;
59 GType gst_cairo_render_get_type (void) G_GNUC_CONST;
63 #endif /* __GST_CAIRO_RENDER_H__ */