diff options
Diffstat (limited to 'src/meh.h')
-rw-r--r-- | src/meh.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 *); |