1 #ifndef _IMAGES_IMAGES_H
2 #define _IMAGES_IMAGES_H
5 IMAGE_GRAYSCALE = 0x1, /* grayscale image */
9 uns flags; /* enum image_flag */
10 uns width; /* number of columns */
11 uns height; /* number of rows */
12 uns size; /* buffer size in bytes */
13 byte *pixels; /* RGB */
17 IMAGE_FORMAT_UNDEFINED = 0,
26 enum image_format format;
37 int read_image_header(struct image_info *info);
38 int read_image_data(struct image_info *info);