/* rgb_io.h */ /* RGB header structure */ typedef struct { short int magic; short int type; short int dim; short int xsize; short int ysize; short int zsize; long int min; long int max; long int waste; char name[80]; long int space[102]; } RGB_HEADER; /* Routines: */ void read_rgb_data ( FILE *fp, int byte_swap, long int xs, long int ys, long int pl, long int type, unsigned char *r, unsigned char *g, unsigned char *b ); void read_rgb_rle_data ( FILE *fp, int byte_swap, long int xs, long int ys, long int pl, long int type, unsigned char *r, unsigned char *g, unsigned char *b ); int read_rgb_header ( FILE *fp, int byte_swap, long int *xs, long int *ys, long int *pl, long int *type ); void write_rgb_data ( FILE *fp, int byte_swap, long int xs, long int ys, long int pl, unsigned char *r, unsigned char *g, unsigned char *b, long int type ); void write_rgb_rle_data ( FILE *fp, int byte_swap, long int xs, long int ys, long int pl, unsigned char *r, unsigned char *g, unsigned char *b, long int type ); void write_rgb_header ( FILE *fp, int byte_swap, long int xs, long int ys, long int pl, long int type ); short int short_int_reverse_bytes ( short int y ); void long_int_read ( FILE *fp, long int *pr, int ys, int byte_swap ); long int long_int_reverse_bytes ( long int y );