12 lines
302 B
C
12 lines
302 B
C
typedef unsigned char luminance;
|
|
typedef luminance pixel1[1];
|
|
typedef struct {
|
|
unsigned int width;
|
|
unsigned int height;
|
|
luminance *buf;
|
|
} grayimage_t;
|
|
typedef grayimage_t *grayimage;
|
|
|
|
grayimage alloc_grayimg(unsigned int, unsigned int);
|
|
grayimage tograyscale(image);
|
|
image tocolor(grayimage);
|