#include <GP.h> /* or */ #include <filters/GP_Resize.h> typedef enum GP_InterpolationType { 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_InterpolationType; const char *GP_InterpolationTypeName(enum GP_InterpolationType interp_type); int GP_FilterResize(const GP_Context *src, GP_Context *dst, GP_InterpolationType type, GP_ProgressCallback *callback); GP_Context *GP_FilterResizeAlloc(const GP_Context *src, GP_Size w, GP_Size h, GP_InterpolationType type, GP_ProgressCallback *callback);