00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 #ifndef PCX_H
00015 #define PCX_H
00016 
00017 #include "il_internal.h"
00018 
00019 
00020 #ifdef _WIN32
00021 #pragma pack(push, packed_struct, 1)
00022 #endif
00023 typedef struct PCXHEAD
00024 {
00025         ILubyte         Manufacturer;
00026         ILubyte         Version;
00027         ILubyte         Encoding;
00028         ILubyte         Bpp;
00029         ILushort        Xmin, Ymin, Xmax, Ymax;
00030         ILushort        HDpi;
00031         ILushort        VDpi;
00032         ILubyte         ColMap[48];
00033         ILubyte         Reserved;
00034         ILubyte         NumPlanes;
00035         ILushort        Bps;
00036         ILushort        PaletteInfo;
00037         ILushort        HScreenSize;
00038         ILushort        VScreenSize;
00039         ILubyte         Filler[54];
00040 } IL_PACKSTRUCT PCXHEAD;
00041 #ifdef _WIN32
00042 #pragma pack(pop, packed_struct)
00043 #endif
00044 
00045 
00046 ILboolean iIsValidPcx(void);
00047 ILboolean iCheckPcx(PCXHEAD *Header);
00048 ILboolean iLoadPcxInternal(void);
00049 ILboolean iSavePcxInternal(void);
00050 ILboolean iUncompressPcx(PCXHEAD *Header);
00051 ILboolean iUncompressSmall(PCXHEAD *Header);
00052 
00053 
00054 ILuint encput(ILubyte byt, ILubyte cnt);
00055 ILuint encLine(ILubyte *inBuff, ILint inLen, ILubyte Stride);
00056 
00057 
00058 #endif//PCX_H