00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 #ifndef DCX_H
00015 #define DCX_H
00016 
00017 #include "il_internal.h"
00018 
00019 
00020 #ifdef _WIN32
00021 #pragma pack(push, packed_struct, 1)
00022 #endif
00023 typedef struct DCXHEAD
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 DCXHEAD;
00041 #ifdef _WIN32
00042 #pragma pack(pop, packed_struct)
00043 #endif
00044 
00045 
00046 ILboolean iIsValidDcx(void);
00047 ILboolean iCheckDcx(DCXHEAD *Header);
00048 ILboolean iLoadDcxInternal(void);
00049 ILimage*  iUncompressDcx(DCXHEAD *Header);
00050 ILimage*  iUncompressDcxSmall(DCXHEAD *Header);
00051 
00052 #endif//PCX_H