aboutsummaryrefslogtreecommitdiffstats
path: root/src/meh.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2009-12-20 09:18:48 -0800
committerJohn Hawthorn <john.hawthorn@gmail.com>2009-12-20 09:18:48 -0800
commitc97d443e62bd27755fa62e3f5dc8836c80ae5fc7 (patch)
tree3a1a95b127c1b2e4773a8d2c08f6a60e833a630c /src/meh.h
parent2803eebe996da45dc13a593a49a2330c829829c1 (diff)
downloadmirror-meh-c97d443e62bd27755fa62e3f5dc8836c80ae5fc7.tar.gz
mirror-meh-c97d443e62bd27755fa62e3f5dc8836c80ae5fc7.tar.bz2
mirror-meh-c97d443e62bd27755fa62e3f5dc8836c80ae5fc7.zip
add performance tests for scaling.
Diffstat (limited to 'src/meh.h')
-rw-r--r--src/meh.h6
1 files changed, 6 insertions, 0 deletions
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);