diff options
Diffstat (limited to 'gdk-pixbuf/pixops/pixops.h')
-rw-r--r-- | gdk-pixbuf/pixops/pixops.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gdk-pixbuf/pixops/pixops.h b/gdk-pixbuf/pixops/pixops.h index 8aa06b6309..d0cbfb82f0 100644 --- a/gdk-pixbuf/pixops/pixops.h +++ b/gdk-pixbuf/pixops/pixops.h @@ -2,10 +2,17 @@ #define PIXOPS_H #include <glib.h> -#include "gdk-pixbuf.h" +/* Interpolation modes; must match PixopsInterpType */ +typedef enum { + PIXOPS_INTERP_NEAREST, + PIXOPS_INTERP_TILES, + PIXOPS_INTERP_BILINEAR, + PIXOPS_INTERP_HYPER +} PixopsInterpType; + /* Scale src_buf from src_width / src_height by factors scale_x, scale_y * and composite the portion corresponding to * render_x, render_y, render_width, render_height in the new @@ -27,7 +34,7 @@ void pixops_composite (guchar *dest_buf, int src_has_alpha, double scale_x, double scale_y, - GdkInterpType interp_type, + PixopsInterpType interp_type, int overall_alpha); /* Scale src_buf from src_width / src_height by factors scale_x, scale_y @@ -52,7 +59,7 @@ void pixops_composite_color (guchar *dest_buf, int src_has_alpha, double scale_x, double scale_y, - GdkInterpType interp_type, + PixopsInterpType interp_type, int overall_alpha, int check_x, int check_y, @@ -81,7 +88,7 @@ void pixops_scale (guchar *dest_buf, int src_has_alpha, double scale_x, double scale_y, - GdkInterpType interp_type); + PixopsInterpType interp_type); |