From f821d2f8d2179229bfec65fd244038349485719c Mon Sep 17 00:00:00 2001 From: "Christian A. Weber" Date: Fri, 15 May 1992 03:22:20 +0000 Subject: =?UTF-8?q?Neue=20Namen=20f=C3=BCr=20ziemlich=20alles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Programmer/iff.i | 200 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 129 insertions(+), 71 deletions(-) (limited to 'Programmer/iff.i') diff --git a/Programmer/iff.i b/Programmer/iff.i index 4c1bf11..a004d7b 100644 --- a/Programmer/iff.i +++ b/Programmer/iff.i @@ -1,13 +1,13 @@ IFND LIBRARIES_IFF_I LIBRARIES_IFF_I SET 1 ** -** $Id: $ -** $Revision: $ +** $Id: iff.i,v 1.1 92/05/12 22:54:18 chris Exp $ +** $Revision: 1.1 $ ** ** $Filename: iff.i $ -** $Author: Christian A. Weber $ +** $Author: chris $ ** $Release: 19.1 $ -** $Date: 90/10/09 22:32:54 $ +** $Date: 92/05/12 22:54:18 $ ** ** Standard header file for programs using iff.library ** @@ -18,77 +18,135 @@ LIBRARIES_IFF_I SET 1 XREF _IFFBase -IFFVERSION: EQU 19 ; Use this for the OpenLibrary() call +IFFNAME MACRO + dc.b 'iff.library',0 + ENDM + +IFFVERSION: EQU 21 ; Current library version + + +***************************************************************************** +** Error codes (returned by IFFL_IFFError()) + +IFFL_ERROR_BADTASK EQU -1 ; IFFL_IFFError() called by wrong task +IFFL_ERROR_OPEN EQU 16 ; Can't open file +IFFL_ERROR_READ EQU 17 ; Error reading file +IFFL_ERROR_NOMEM EQU 18 ; Not enough memory +IFFL_ERROR_NOTIFF EQU 19 ; File is not an IFF file +IFFL_ERROR_WRITE EQU 20 ; Error writing file +IFFL_ERROR_NOILBM EQU 24 ; IFF file is not of type ILBM +IFFL_ERROR_NOBMHD EQU 25 ; BMHD chunk not found +IFFL_ERROR_NOBODY EQU 26 ; BODY chunk not found +IFFL_ERROR_BADCOMPRESSION EQU 28 ; Unknown compression type +IFFL_ERROR_NOANHD EQU 29 ; ANHD chunk not found +IFFL_ERROR_NODLTA EQU 30 ; DLTA chunk not found + + IFD IFFLIB_PRE21NAMES +IFF_BADTASK EQU -1 +IFF_CANTOPENFILE EQU 16 +IFF_READERROR EQU 17 +IFF_NOMEM EQU 18 +IFF_NOTIFF EQU 19 +IFF_WRITEERROR EQU 20 +IFF_NOILBM EQU 24 +IFF_NOBMHD EQU 25 +IFF_NOBODY EQU 26 +IFF_TOOMANYPLANES EQU 27 +IFF_UNKNOWNCOMPRESSION EQU 28 +IFF_NOANHD EQU 29 +IFF_NODLTA EQU 30 + ENDC + + +***************************************************************************** +** Common IFF IDs + +** Generic IFF IDs + + IFND ID_FORM ; don't redefine if iffparse.i is included +ID_FORM EQU 'FORM' +ID_CAT EQU 'CAT ' +ID_LIST EQU 'LIST' +ID_PROP EQU 'PROP' + ENDC -IFF: MACRO - movea.l _IFFBase,a6 - jsr \1(a6) - ENDM +** Specific IFF IDs + +ID_ANIM EQU 'ANIM' +ID_ANHD EQU 'ANHD' +ID_BMHD EQU 'BMHD' +ID_BODY EQU 'BODY' +ID_CAMG EQU 'CAMG' +ID_CLUT EQU 'CLUT' +ID_CMAP EQU 'CMAP' +ID_CRNG EQU 'CRNG' +ID_CTBL EQU 'CTBL' +ID_DLTA EQU 'DLTA' +ID_ILBM EQU 'ILBM' +ID_SHAM EQU 'SHAM' + +ID_8SVX EQU '8SVX' +ID_ATAK EQU 'ATAK' +ID_NAME EQU 'NAME' +ID_RLSE EQU 'RLSE' +ID_VHDR EQU 'VHDR' *************** LIBRARY OFFSETS ****************************************** -_LVOOpenIFF: EQU -30 ; (filename) (A0) -_LVOCloseIFF: EQU -36 ; (ifffile) (A1) -_LVOFindChunk: EQU -42 ; (ifffile,chunkname) (A1,D0) -_LVOGetBMHD: EQU -48 ; (ifffile) (A1) -_LVOGetColorTab: EQU -54 ; (ifffile,colortable) (A1/A0) -_LVODecodePic: EQU -60 ; (ifffile,bitmap) (A1/A0) -_LVOSaveBitMap: EQU -66 ; (name,bmap,ctab,crmd) (A0-A2,D0) -_LVOSaveClip: EQU -72 ; (name,bmap,ctab,crmd,x,y,w,h) (A0-A2,D0-D4) -_LVOIFFError: EQU -78 ; () () -_LVOGetViewModes: EQU -84 ; (ifffile) (A1) -_LVONewOpenIFF: EQU -90 ; (filename,memtype) (A0,D0) -_LVOModifyFrame: EQU -96 ; (modifyform,bitmap) (A1/A0) - - -*************** ERROR CODES ********************************************** - -IFF_BADTASK: EQU -1 ; IffError() called by wrong task - -IFF_CANTOPENFILE: EQU 16 ; File not found -IFF_READERROR: EQU 17 ; Error reading file -IFF_NOMEM: EQU 18 ; Not enough memory -IFF_NOTIFF: EQU 19 ; File is not an IFF file -IFF_WRITEERROR: EQU 20 ; Error writing file - -IFF_NOILBM: EQU 24 ; IFF file is not of type ILBM -IFF_NOBMHD: EQU 25 ; BMHD chunk not found -IFF_NOBODY: EQU 26 ; BODY chunk not found -IFF_TOOMANYPLANES: EQU 27 ; Obsolete since V18.6 -IFF_UNKNOWNCOMPRESSION: EQU 28 ; Unknown compression type - -IFF_NOANHD: EQU 29 ; ANHD chunk not found (since V18.1) -IFF_NODLTA: EQU 30 ; DLTA chunk not found (since V18.1) - - -bmh_Width: EQU 0 ; struct BitMapHeader -bmh_Height: EQU $2 -bmh_XPos: EQU $4 -bmh_YPos: EQU $6 -bmh_nPlanes: EQU $8 -bmh_Masking: EQU $9 -bmh_Compression: EQU $A -bmh_Pad1: EQU $B -bmh_TranspCol: EQU $C -bmh_XAspect: EQU $E -bmh_YAspect: EQU $F -bmh_PageWidth: EQU $10 -bmh_PageHeight: EQU $12 -bmh_SIZEOF: EQU $14 - -anh_Operation: EQU 0 ; struct AnimHeader -anh_Mask: EQU $1 -anh_W: EQU $2 -anh_H: EQU $4 -anh_X: EQU $6 -anh_Y: EQU $8 -anh_AbsTime: EQU $A -anh_RelTime: EQU $E -anh_Interleave: EQU $12 -anh_pad0: EQU $13 -anh_Bits: EQU $14 -anh_pad: EQU $18 -anh_SIZEOF: EQU $28 + IFD IFFLIB_PRE21NAMES +_LVOOpenIFF EQU -30 ; (filename) (A0) +_LVOCloseIFF EQU -36 ; (ifffile) (A1) +_LVOFindChunk EQU -42 ; (ifffile,chunkname) (A1,D0) +_LVOGetBMHD EQU -48 ; (ifffile) (A1) +_LVOGetColorTab EQU -54 ; (ifffile,colortable) (A1/A0) +_LVODecodePic EQU -60 ; (ifffile,bitmap) (A1/A0) +_LVOSaveBitMap EQU -66 ; (name,bmap,ctab,crmd) (A0-A2,D0) +_LVOSaveClip EQU -72 ; (name,bmap,ctab,crmd,x,y,w,h) (A0-A2,D0-D4) +_LVOIFFError EQU -78 ; () () +_LVOGetViewModes EQU -84 ; (ifffile) (A1) +_LVONewOpenIFF EQU -90 ; (filename,memtype) (A0,D0) +_LVOModifyFrame EQU -96 ; (modifyform,bitmap) (A1/A0) + ENDC + + +***************************************************************************** +** Modes for IFFL_OpenIFF() + +IFFL_MODE_READ EQU 0 +IFFL_MODE_WRITE EQU 1 + + +***************************************************************************** +** Structure definitions + +bmh_Width EQU 0 ; BMHD: struct BitMapHeader +bmh_Height EQU $2 +bmh_XPos EQU $4 +bmh_YPos EQU $6 +bmh_nPlanes EQU $8 +bmh_Masking EQU $9 +bmh_Compression EQU $A +bmh_Pad1 EQU $B +bmh_TranspCol EQU $C +bmh_XAspect EQU $E +bmh_YAspect EQU $F +bmh_PageWidth EQU $10 +bmh_PageHeight EQU $12 +bmh_SIZEOF EQU $14 + +anh_Operation EQU 0 ; ANHD: struct AnimHeader +anh_Mask EQU $1 +anh_W EQU $2 +anh_H EQU $4 +anh_X EQU $6 +anh_Y EQU $8 +anh_AbsTime EQU $A +anh_RelTime EQU $E +anh_Interleave EQU $12 +anh_pad0 EQU $13 +anh_Bits EQU $14 +anh_pad EQU $18 +anh_SIZEOF EQU $28 ENDC -- cgit v1.2.3