- Main Page
- Data Structures
- Files

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

    00001 //-----------------------------------------------------------------------------
    00002 //
    00003 // ImageLib Sources
    00004 // Copyright (C) 2000-2002 by Denton Woods
    00005 // Last modified: 05/25/2001 <--Y2K Compliant! =]
    00006 //
    00007 // Filename: src-IL/include/il_pcx.h
    00008 //
    00009 // Description: Reads and writes from/to a .pcx file.
    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 // For checking and reading
    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 // For writing
    00054 ILuint encput(ILubyte byt, ILubyte cnt);
    00055 ILuint encLine(ILubyte *inBuff, ILint inLen, ILubyte Stride);
    00056
    00057
    00058 #endif//PCX_H