#include <gfxprim.h> /* or */ #include <filters/gp_resize.h> typedef enum gp_interpolation_type { GP_INTERP_NN, /* Nearest Neighbour */ GP_INTERP_LINEAR_INT, /* Bilinear - fixed point arithmetics */ GP_INTERP_LINEAR_LF_INT, /* Bilinear + low pass filter on downscaling */ GP_INTERP_CUBIC, /* Bicubic */ GP_INTERP_CUBIC_INT, /* Bicubic - fixed point arithmetics */ GP_INTERP_MAX = GP_INTERP_CUBIC_INT, } gp_interpolation_type; const char *gp_interpolation_type_name(enum gp_interpolation_type interp_type); int gp_filter_resize(const gp_pixmap *src, gp_pixmap *dst, gp_interpolation_type type, gp_progress_cb *callback); gp_pixmap *gp_filter_resize_alloc(const gp_pixmap *src, gp_size w, gp_size h, gp_interpolation_type type, gp_progress_cb *callback);