oops, I shifted the wrong value.
[swfdec.git] / swfdec / swfdec_renderer_internal.h
blob6d69ef2aed0f3767d276aecac0f9761b40cb2649
1 /* Swfdec
2 * Copyright (c) 2008 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef _SWFDEC_RENDERER_INTERNAL_H_
21 #define _SWFDEC_RENDERER_INTERNAL_H_
23 #include <swfdec/swfdec_renderer.h>
24 #include <swfdec/swfdec_cached.h>
25 #include <swfdec/swfdec_color.h>
27 G_BEGIN_DECLS
30 typedef gboolean SwfdecRendererSearchFunc (SwfdecCached *cached, gpointer data);
32 SwfdecRenderer * swfdec_renderer_new_default (SwfdecPlayer * player);
34 void swfdec_renderer_attach (SwfdecRenderer * renderer,
35 cairo_t * cr);
36 SwfdecRenderer * swfdec_renderer_get (cairo_t * cr);
37 void swfdec_renderer_reset_matrix (cairo_t * cr);
39 void swfdec_renderer_add_cache (SwfdecRenderer * renderer,
40 gboolean replace,
41 gpointer key,
42 SwfdecCached * value);
43 SwfdecCached * swfdec_renderer_get_cache (SwfdecRenderer * renderer,
44 gpointer key,
45 SwfdecRendererSearchFunc func,
46 gpointer data);
47 gsize swfdec_renderer_get_max_cache_size
48 (SwfdecRenderer * renderer);
50 cairo_surface_t * swfdec_renderer_create_similar (SwfdecRenderer * renderer,
51 cairo_surface_t * surface);
52 cairo_surface_t * swfdec_renderer_create_for_data (SwfdecRenderer * renderer,
53 guint8 * data,
54 cairo_format_t format,
55 guint width,
56 guint height,
57 guint rowstride);
58 cairo_surface_t * swfdec_renderer_transform (SwfdecRenderer * renderer,
59 cairo_surface_t * surface,
60 const SwfdecColorTransform *trans);
63 G_END_DECLS
64 #endif