Pillow/src/libImaging/Reduce.c

17 lines
287 B
C
Raw Normal View History

2019-11-24 04:13:48 +03:00
#include "Imaging.h"
#include <math.h>
#define ROUND_UP(f) ((int) ((f) >= 0.0 ? (f) + 0.5F : (f) - 0.5F))
Imaging
ImagingReduce(Imaging imIn, int xscale, int yscale)
{
Imaging imOut = NULL;
imOut = ImagingNewDirty(imIn->mode, imIn->xsize, imIn->ysize);
return imOut;
}