diff options
author | Christian A. Weber <chris@gna.ch> | 1992-05-17 03:29:18 +0000 |
---|---|---|
committer | Christian A. Weber <chris@gna.ch> | 1992-05-17 03:29:18 +0000 |
commit | 39b0e0e4901dd9543fdf8ca299332e2f1b5c9380 (patch) | |
tree | 3f67df963ea85a3ae6d443e363b8133ebc310029 | |
parent | 66ed983098f631f3f3b93eebf3b162e9b0996479 (diff) | |
download | iff-library-39b0e0e4901dd9543fdf8ca299332e2f1b5c9380.tar.gz iff-library-39b0e0e4901dd9543fdf8ca299332e2f1b5c9380.tar.bz2 iff-library-39b0e0e4901dd9543fdf8ca299332e2f1b5c9380.zip |
Kompressions-Modi reingetan
-rw-r--r-- | Programmer/iff.h | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/Programmer/iff.h b/Programmer/iff.h index 2725b15..9e89511 100644 --- a/Programmer/iff.h +++ b/Programmer/iff.h @@ -2,13 +2,13 @@ #define LIBRARIES_IFF_H /* ** -** $Id: iff.h,v 1.1 92/05/12 22:54:06 chris Exp $ -** $Revision: 1.1 $ +** $Id: iff.h,v 21.1 92/05/15 03:22:35 chris Exp $ +** $Revision: 21.1 $ ** ** $Filename: iff.h $ ** $Author: chris $ ** $Release: 19.1 $ -** $Date: 92/05/12 22:54:06 $ +** $Date: 92/05/15 03:22:35 $ ** ** Standard header file for programs using iff.library ** @@ -166,6 +166,11 @@ struct IFFL_ANHD /* ANHD chunk for ANIM files */ UBYTE pad[16]; }; +#ifdef IFFLIB_PRE21NAMES +#define Chunk IFFL_Chunk +#define BitMapHeader IFFL_BMHD +#define AnimHeader IFFL_ANHD +#endif /**************************************************************************** ** IFF library function prototypes (ANSI) @@ -174,13 +179,13 @@ struct IFFL_ANHD /* ANHD chunk for ANIM files */ void IFFL_CloseIFF ( IFFL_HANDLE ); BOOL IFFL_DecodePic ( IFFL_HANDLE, struct BitMap * ); void *IFFL_FindChunk ( IFFL_HANDLE, LONG ); -struct BitMapHeader *IFFL_GetBMHD ( IFFL_HANDLE ); +struct IFFL_BMHD *IFFL_GetBMHD ( IFFL_HANDLE ); LONG IFFL_GetColorTab ( IFFL_HANDLE, WORD * ); ULONG IFFL_GetViewModes ( IFFL_HANDLE ); LONG IFFL_IFFError ( void ); BOOL IFFL_ModifyFrame ( void *, struct BitMap * ); APTR IFFL_NewOpenIFF ( char *, LONG ); -IFFL_HANDLE IFFL_OpenIFF ( char * ); +IFFL_HANDLE IFFL_OpenIFF ( char *, ULONG ); LONG IFFL_PopChunk ( IFFL_HANDLE ); IFFL_HANDLE IFFL_PPOpenIFF ( char *, char * ); LONG IFFL_PushChunk ( IFFL_HANDLE, ULONG, ULONG ); @@ -209,11 +214,34 @@ IFFL_HANDLE PPOpenIFF(char *,char *); /**************************************************************************** ** Pragmas for Lattice C V5.x -** (generated with: 'fd2pragma iff_lib.fd iffpragmas.h') +** (generated with: 'fd2pragma iff_lib.fd iff_pragmas.h') */ -#ifndef NO_PRAGMAS extern struct Library *IFFBase; + +#ifndef NO_PRAGMAS +/*pragma libcall IFFBase IFFL_OldOpenIFF 1E 801*/ +#pragma libcall IFFBase IFFL_CloseIFF 24 901 +#pragma libcall IFFBase IFFL_FindChunk 2A 0902 +#pragma libcall IFFBase IFFL_GetBMHD 30 901 +#pragma libcall IFFBase IFFL_GetColorTab 36 8902 +#pragma libcall IFFBase IFFL_DecodePic 3C 8902 +#pragma libcall IFFBase IFFL_SaveBitMap 42 0A9804 +#pragma libcall IFFBase IFFL_SaveClip 48 43210A9808 +#pragma libcall IFFBase IFFL_IFFError 4E 0 +#pragma libcall IFFBase IFFL_GetViewModes 54 901 +/*pragma libcall IFFBase IFFL_OldNewOpenIFF 5A 0802*/ +#pragma libcall IFFBase IFFL_ModifyFrame 60 8902 +/*#pragma libcall IFFBase IFFL_PPOpenIFF 66 9802*/ +/*--- functions in V21 or higher ---*/ +#pragma libcall IFFBase IFFL_OpenIFF 78 0802 +#pragma libcall IFFBase IFFL_PushChunk 7E 10803 +#pragma libcall IFFBase IFFL_PopChunk 84 801 +#pragma libcall IFFBase IFFL_WriteChunkBytes 8A 09803 +#pragma libcall IFFBase IFFL_CompressBlock 90 109804 +#pragma libcall IFFBase IFFL_DecompressBlock 96 109804 + +#ifdef IFFLIB_PRE21NAMES #pragma libcall IFFBase OpenIFF 1e 801 #pragma libcall IFFBase CloseIFF 24 901 #pragma libcall IFFBase FindChunk 2a 0902 @@ -226,7 +254,9 @@ extern struct Library *IFFBase; #pragma libcall IFFBase GetViewModes 54 901 #pragma libcall IFFBase NewOpenIFF 5a 0802 #pragma libcall IFFBase ModifyFrame 60 8902 -#pragma libcall IFFBase PPOpenIFF 66 9802 +/*#pragma libcall IFFBase PPOpenIFF 66 9802*/ +#endif + #endif #endif !LIBRARIES_IFF_H |