home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
216.lha
/
IFFLib
/
ifflib.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-15
|
2KB
|
68 lines
#ifndef IFFLIB_H
#define IFFLIB_H 1
/* masking */
#define mskNone 0
#define mskHasMask 1
#define mskHasTransparentColor 2
#define mskLasso 3
/* aspect */
#define x320x200Aspect 10
#define y320x200Aspect 11
#define x320x400Aspect 20
#define y320x400Aspect 11
#define x640x200Aspect 5
#define y640x200Aspect 11
#define x640x400Aspect 10
#define y640x400Aspect 11
/* compression */
#define cmpNone 0
#define cmpByteRun1 1
typedef struct
{
unsigned short w, h; /* width, height */
unsigned short x, y; /* position */
unsigned char nPlanes; /* number of bit-planes */
unsigned char masking; /* type of masking used */
unsigned char compression; /* type of compression used */
unsigned char pad1;
unsigned short transparentColor;
unsigned char xAspect, yAspect; /* aspect ration */
unsigned short pageWidth, pageHeight; /* size of the screen */
} BitMapHeader;
/* error codes */
#define NO_ERROR 0
#define YOUR_ERROR 1
#define OPEN_ERROR 2
#define FILE_WAS_CLOSED 3
#define SEEK_ERROR 4
#define READ_ERROR 5
#define MEMORY_ERROR 6
#define IFFBAD_ERROR 7
#define WIERD_MASKING 8
#define WIERD_COMPRESSION 9
#define COMPRESSION_ERROR 10
#define IFF_TO_BIG 11
#define UNKNOWN_ERROR -1
/* library name */
#define IFFNAME "iff.library"
/* memory types */
#define DONTCARE ((unsigned short)0)
#define CHIP ((unsigned short)1)
#define FAST ((unsigned short)2)
#define ALLOC ((unsigned short)1)
#define NOALLOC ((unsigned short)0)
/* functions */
extern void *IFFalloc(), IFFfree(), RlsImage(), RlsBitMap();
extern short QueryIFF(), GetIFF_bitmap(), GetIFF_image();
#endif