aboutsummaryrefslogtreecommitdiffstats
path: root/src/meh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/meh.h')
-rw-r--r--src/meh.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/meh.h b/src/meh.h
index 719b717..0e1a410 100644
--- a/src/meh.h
+++ b/src/meh.h
@@ -1,6 +1,20 @@
#include <stdio.h>
+struct image;
+
+struct imageformat{
+ struct image *(*open)(FILE *);
+ int (*read)(struct image *);
+};
+
+struct image{
+ unsigned char *buf;
+ int width, height;
+ FILE *f;
+ struct imageformat *fmt;
+};
+
unsigned char *loadgif(FILE *, int *, int *);
unsigned char *loadjpeg(FILE *, int *, int *);
unsigned char *loadpng(FILE *, int *, int *);