1 //---------------------------------------------------------------------------- 2 // PCX defines, raw on-disk layout 3 //---------------------------------------------------------------------------- 4 // 5 // Copyright (c) 2004-2008 The EDGE Team. 6 // 7 // This program is free software; you can redistribute it and/or 8 // modify it under the terms of the GNU General Public License 9 // as published by the Free Software Foundation; either version 2 10 // of the License, or (at your option) any later version. 11 // 12 // This program is distributed in the hope that it will be useful, 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 // GNU General Public License for more details. 16 // 17 //---------------------------------------------------------------------------- 18 // 19 // Based on "qfiles.h" from the GPL'd quake 2 source release. 20 // Copyright (C) 1997-2001 Id Software, Inc. 21 // 22 //---------------------------------------------------------------------------- 23 24 #ifndef __EPI_RAWDEF_PCX_H__ 25 #define __EPI_RAWDEF_PCX_H__ 26 27 namespace epi 28 { 29 30 /* 31 * PCX image structure 32 */ 33 34 typedef struct 35 { 36 u8_t manufacturer; 37 u8_t version; 38 u8_t encoding; 39 u8_t bits_per_pixel; 40 41 u16_t xmin, ymin, xmax, ymax; 42 u16_t hres, vres; 43 44 u8_t palette[48]; 45 46 u8_t reserved; 47 u8_t color_planes; 48 49 u16_t bytes_per_line; 50 u16_t palette_type; 51 52 u8_t filler[58]; 53 u8_t data[1]; /* variable sized */ 54 } 55 raw_pcx_header_t; 56 57 } // namespace epi 58 59 #endif /* __EPI_RAWDEF_PCX_H__ */ 60 61 //--- editor settings --- 62 // vi:ts=4:sw=4:noexpandtab 63