blob: 0e1a4104ac7589985d3b9db361fdf2375917c3e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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 *);
|