aboutsummaryrefslogtreecommitdiffstats
path: root/src/meh.h
blob: bd9191094b80c0c6d907f244960b9ba08ad02539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
};