00001 /* 00002 /-------------------------------------------------------------------- 00003 | 00004 | $Id: plpcx.h,v 1.1 2004/05/21 21:02:53 maxx Exp $ 00005 | 00006 | Defines structures and constants present in PCX files. 00007 | 00008 | Copyright (c) 1996-2002 Ulrich von Zadow 00009 | 00010 \-------------------------------------------------------------------- 00011 */ 00012 00013 #ifndef INCL_PLPCX 00014 #define INCL_PLPCX 00015 00016 // PCX Image File 00017 typedef struct tagPCXHEADER 00018 { 00019 char Manufacturer; // always 0X0A 00020 char Version; // version number 00021 char Encoding; // always 1 00022 char BitsPerPixel; // color bits 00023 PLWORD Xmin, Ymin; // image origin 00024 PLWORD Xmax, Ymax; // image dimensions 00025 PLWORD Hres, Vres; // resolution values 00026 PLBYTE ColorMap[16][3]; // color palette 00027 char Reserved; 00028 char ColorPlanes; // color planes 00029 PLWORD BytesPerLine; // line buffer size 00030 PLWORD PaletteType; // grey or color palette 00031 char Filter[58]; 00032 } 00033 *LPPCXHEADER; 00034 00035 #define PCX_MAGIC 0X0A // PCX magic number 00036 #define PCX_256_COLORS 0X0C // magic number for 256 colors 00037 #define PCX_HDR_SIZE 128 // size of PCX header 00038 #define PCX_MAXCOLORS 256 00039 #define PCX_MAXPLANES 4 00040 #define PCX_MAXVAL 255 00041 00042 #endif 00043 00044 /* 00045 /-------------------------------------------------------------------- 00046 | 00047 | $Log: plpcx.h,v $ 00048 | Revision 1.1 2004/05/21 21:02:53 maxx 00049 | Initial Version of vuVolume, moderatly changed to make it compile on my windows and linux machine. 00050 | 00051 | Revision 1.1 2002/11/13 01:58:21 mspindle 00052 | *** empty log message *** 00053 | 00054 | Revision 1.3 2002/02/24 13:00:22 uzadow 00055 | Documentation update; removed buggy PLFilterRotate. 00056 | 00057 | Revision 1.2 2001/10/06 22:03:26 uzadow 00058 | Added PL prefix to basic data types. 00059 | 00060 | Revision 1.1 2001/09/16 19:03:22 uzadow 00061 | Added global name prefix PL, changed most filenames. 00062 | 00063 | Revision 1.4 2000/01/10 23:52:59 Ulrich von Zadow 00064 | Changed formatting & removed tabs. 00065 | 00066 | Revision 1.3 1999/12/15 21:16:30 Ulrich von Zadow 00067 | Removed references to gif in pcx decoder. 00068 | 00069 | 00070 \-------------------------------------------------------------------- 00071 */