~ubuntu-branches/ubuntu/hardy/devil/hardy-updates

« back to all changes in this revision

Viewing changes to src-IL/include/il_dcx.h

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2005-01-03 19:57:42 UTC
  • Revision ID: james.westby@ubuntu.com-20050103195742-4ipkplcwygu3irv0
Tags: upstream-1.6.7
ImportĀ upstreamĀ versionĀ 1.6.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-----------------------------------------------------------------------------
 
2
//
 
3
// ImageLib Sources
 
4
// Copyright (C) 2000-2002 by Denton Woods
 
5
// Last modified: 12/03/2001 <--Y2K Compliant! =]
 
6
//
 
7
// Filename: src-IL/include/il_dcx.h
 
8
//
 
9
// Description: Reads from a .dcx file.
 
10
//
 
11
//-----------------------------------------------------------------------------
 
12
 
 
13
 
 
14
#ifndef DCX_H
 
15
#define DCX_H
 
16
 
 
17
#include "il_internal.h"
 
18
 
 
19
 
 
20
#ifdef _WIN32
 
21
#pragma pack(push, packed_struct, 1)
 
22
#endif
 
23
typedef struct DCXHEAD
 
24
{
 
25
        ILubyte         Manufacturer;
 
26
        ILubyte         Version;
 
27
        ILubyte         Encoding;
 
28
        ILubyte         Bpp;
 
29
        ILushort        Xmin, Ymin, Xmax, Ymax;
 
30
        ILushort        HDpi;
 
31
        ILushort        VDpi;
 
32
        ILubyte         ColMap[48];
 
33
        ILubyte         Reserved;
 
34
        ILubyte         NumPlanes;
 
35
        ILushort        Bps;
 
36
        ILushort        PaletteInfo;
 
37
        ILushort        HScreenSize;
 
38
        ILushort        VScreenSize;
 
39
        ILubyte         Filler[54];
 
40
} IL_PACKSTRUCT DCXHEAD;
 
41
#ifdef _WIN32
 
42
#pragma pack(pop, packed_struct)
 
43
#endif
 
44
 
 
45
// For checking and reading
 
46
ILboolean iIsValidDcx(ILvoid);
 
47
ILboolean iCheckDcx(DCXHEAD *Header);
 
48
ILboolean iLoadDcxInternal(ILvoid);
 
49
ILimage*  iUncompressDcx(DCXHEAD *Header);
 
50
ILimage*  iUncompressDcxSmall(DCXHEAD *Header);
 
51
 
 
52
#endif//PCX_H