DevIL: /home/dwoods/DevIL/src-IL/include/il_dcx.h Source File

- Main Page
- Data Structures
- Files

# /home/dwoods/DevIL/src-IL/include/il_dcx.h

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Sources
    00004 // Copyright (C) 2000-2009 by Denton Woods
    00005 // Last modified: 02/26/2009
    00006 //
    00007 // Filename: src-IL/include/il_dcx.h
    00008 //
    00009 // Description: Reads from a .dcx file.
    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 // For checking and reading
    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