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.
26 /* Interpolation modes; must match GdkInterpType */
28 PIXOPS_INTERP_NEAREST,
30 PIXOPS_INTERP_BILINEAR,
34 /* Scale src_buf from src_width / src_height by factors scale_x, scale_y
35 * and composite the portion corresponding to
36 * render_x, render_y, render_width, render_height in the new
37 * coordinate system into dest_buf starting at 0, 0
39 void _pixops_composite (guchar *dest_buf,
47 const guchar *src_buf,
55 PixopsInterpType interp_type,
58 /* Scale src_buf from src_width / src_height by factors scale_x, scale_y
59 * and composite the portion corresponding to
60 * render_x, render_y, render_width, render_height in the new
61 * coordinate system against a checkboard with checks of size check_size
62 * of the colors color1 and color2 into dest_buf starting at 0, 0
64 void _pixops_composite_color (guchar *dest_buf,
72 const guchar *src_buf,
80 PixopsInterpType interp_type,
88 /* Scale src_buf from src_width / src_height by factors scale_x, scale_y
89 * and composite the portion corresponding to
90 * render_x, render_y, render_width, render_height in the new
91 * coordinate system into dest_buf starting at 0, 0
93 void _pixops_scale (guchar *dest_buf,
101 const guchar *src_buf,
109 PixopsInterpType interp_type);