2 * Copyright (C) 2000 Red Hat, Inc
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 of the License, or (at your option) any later version.
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
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
24 /* Interpolation modes; must match GdkInterpType */
26 PIXOPS_INTERP_NEAREST,
28 PIXOPS_INTERP_BILINEAR,
32 /* Scale src_buf from src_width / src_height by factors scale_x, scale_y
33 * and composite the portion corresponding to
34 * render_x, render_y, render_width, render_height in the new
35 * coordinate system into dest_buf starting at 0, 0
37 void _pixops_composite (guchar *dest_buf,
43 const guchar *src_buf,
51 int dest_region_width,
52 int dest_region_height,
57 PixopsInterpType interp_type,
60 /* Scale src_buf from src_width / src_height by factors scale_x, scale_y
61 * and composite the portion corresponding to
62 * render_x, render_y, render_width, render_height in the new
63 * coordinate system against a checkboard with checks of size check_size
64 * of the colors color1 and color2 into dest_buf starting at 0, 0
66 void _pixops_composite_color (guchar *dest_buf,
72 const guchar *src_buf,
80 int dest_region_width,
81 int dest_region_height,
86 PixopsInterpType interp_type,
94 /* Scale src_buf from src_width / src_height by factors scale_x, scale_y
95 * and composite the portion corresponding to
96 * render_x, render_y, render_width, render_height in the new
97 * coordinate system into dest_buf starting at 0, 0
99 void _pixops_scale (guchar *dest_buf,
105 const guchar *src_buf,
113 int dest_region_width,
114 int dest_region_height,
119 PixopsInterpType interp_type);