From c97d443e62bd27755fa62e3f5dc8836c80ae5fc7 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sun, 20 Dec 2009 09:18:48 -0800 Subject: add performance tests for scaling. --- src/meh.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/meh.h') diff --git a/src/meh.h b/src/meh.h index 4333f51..f2d5e3c 100644 --- a/src/meh.h +++ b/src/meh.h @@ -31,6 +31,12 @@ struct image{ XImage *ximg; }; + +/* scale */ +void scale(struct image *img, int width, int height, int bytesperline, char* __restrict__ newBuf); +void nearestscale(struct image *img, int width, int height, int bytesperline, char* __restrict__ newBuf); + +/* XLib */ void setaspect(unsigned int w, unsigned int h); void xinit(); void drawimage(XImage *ximg, unsigned int width, unsigned int height); -- cgit v1.2.3