diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-08-15 05:23:32 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | 3ea03344ec2b9c5cd17b0ef253adece705558019 (patch) | |
| tree | ea26fd2828bb9e4c55f32f6239e092221ea456e4 /src/tools/data.h | |
| parent | 14d3cc45bcf1a9dce1e982fd82b79d7053be4048 (diff) | |
Removing junk.
Diffstat (limited to 'src/tools/data.h')
| -rw-r--r-- | src/tools/data.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/tools/data.h b/src/tools/data.h deleted file mode 100644 index b1b9717..0000000 --- a/src/tools/data.h +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef __DATA_H__ -#define __DATA_H__ - -#define PACKED __attribute__((packed)) - -typedef struct pcx_header_type -{ - char manufacturer; - char version; - char encoding; - char bits_per_pixel; - short int x, y; - short int width, height; - short int horz_res; - short int virt_res; - char ega_palette[48]; - char reserved; - char num_color_planes; - short int byte_per_line; - short int palette_type; - short int hscreen_size; - short int vscreen_size; - char padding[54]; -} PACKED pcx_header, *pcx_header_ptr; - -unsigned char *Pal_3_4(unsigned char *dat); - -unsigned char *Pixel_BGR_RGB(unsigned char *data, int length); -unsigned char *Pixel_BGRA_RGBA(unsigned char *data, int length); -unsigned char *Pixel_256_RGB(unsigned char *data, unsigned char *pal, int length); -unsigned char *Pixel_256_RGBA(unsigned char *data, unsigned char *pal, int length, int trans); - -unsigned char *LoadTGA(char *filename, int *width, int *height); - -unsigned char *LoadPCX(char *filename, unsigned char **pal, int *width, int *height); -unsigned char *LoadPCX_RGB(char *filename, int *width, int *height); -unsigned char *LoadPCX_RGBA(char *filename, int *width, int *height); -void SavePCX(unsigned char *buf, int width, int height, unsigned char *pal, char *name); - -void SavePCX256ToFile(unsigned char *buf, int width, int height, unsigned char *pal, char *name); -void SavePCXRGBToFile(unsigned char *buf, int width, int height, char *name); -/* - -todo: sgi graphic format, microsoft bmp format, rest of tga/pcx, ilbm -gif? -jpg? -png? - -function call asks for certain graphic format and data is converted if needed - -of course asking for an indexed type from a truecolor type will generate an -error - -EnumerateLoadImageTypes -EnumerateSaveImageTypes -EnumerateLoadImageTypeCaps -EnumerateSaveImageTypeCaps -DetermineImageType -*/ - -#endif |
