summaryrefslogtreecommitdiff
path: root/Source/ModifyFrame.S
diff options
context:
space:
mode:
authorChristian A. Weber <chris@gna.ch>1992-05-15 03:21:10 +0000
committerChristian A. Weber <chris@gna.ch>1992-05-15 03:21:10 +0000
commite556b972d1ad64453b3372b486191e2a59c91dda (patch)
tree4eb9264758c36cc75cdcf8daf8dde1517d77cb6a /Source/ModifyFrame.S
parent36c824864c02f0a3f62c8a1d365d1670835c8c96 (diff)
downloadiff-library-e556b972d1ad64453b3372b486191e2a59c91dda.tar.gz
iff-library-e556b972d1ad64453b3372b486191e2a59c91dda.tar.bz2
iff-library-e556b972d1ad64453b3372b486191e2a59c91dda.zip
An neue Include-Files angepasst
Diffstat (limited to 'Source/ModifyFrame.S')
-rw-r--r--Source/ModifyFrame.S48
1 files changed, 24 insertions, 24 deletions
diff --git a/Source/ModifyFrame.S b/Source/ModifyFrame.S
index 46fe5ec..d29f300 100644
--- a/Source/ModifyFrame.S
+++ b/Source/ModifyFrame.S
@@ -1,13 +1,13 @@
**
-** $Id: $
-** $Revision: $
+** $Id: ModifyFrame.S,v 1.1 92/05/12 22:26:40 chris Exp $
+** $Revision: 1.1 $
**
** $Filename: ModifyFrame.S $
-** $Author: Christian A. Weber $
+** $Author: chris $
** $Release: 19.1 $
-** $Date: 92/05/11 21:11:27 $
+** $Date: 92/05/12 22:26:40 $
**
-** iff.library/IFFLib_ModifyFrame
+** iff.library/IFFL_ModifyFrame
**
** COPYRIGHT (C) 1987-1992 BY CHRISTIAN A. WEBER, BRUGGERWEG 2,
** CH-8037 ZUERICH, SWITZERLAND. ALL RIGHTS RESERVED. NO PART
@@ -17,7 +17,7 @@
**
- IDNT IFFLib_ModifyFrame
+ IDNT IFFL_ModifyFrame
SECTION text,CODE
INCLUDE "IFFLib.i"
@@ -26,16 +26,16 @@
XDEF ModifyFrameFunc
-******* iff.library/IFFLib_ModifyFrame **************************************
+******* iff.library/IFFL_ModifyFrame ****************************************
*
* NAME
-* IFFLib_ModifyFrame -- Modify an anim frame using a DLTA chunk
+* IFFL_ModifyFrame -- Modify an anim frame using a DLTA chunk
*
* SYNOPSIS
-* success = IFFLib_ModifyFrame( modifyform, bitmap )
-* D0 A1 A0
+* success = IFFL_ModifyFrame( modifyform, bitmap )
+* D0 A1 A0
*
-* BOOL IFFLib_ModifyFrame( void *, struct BitMap * )
+* BOOL IFFL_ModifyFrame( VOID *, struct BitMap * )
*
* FUNCTION
* Uses the DLTA chunk of the supplied FORM to modify the planes-data
@@ -46,29 +46,30 @@
*
* INPUTS
* modifyform - pointer to the FORM containing the actual DLTA chunk
-* bitmap - Pointer to a properly initialized BitMap structure,
-* the planes must contain the image which was displayed
-* to frames back (using double-buffering)
+* bitmap - Pointer to a properly initialized BitMap structure,
+* the planes must contain the image which was displayed
+* to frames back (using double-buffering)
*
* RESULT
-* Non-zero if OK, 0 if error; call IFFError() to know the reason
+* Non-zero if OK, 0 if error; call IFFL_IFFError() to know the reason
* of the failure
*
* RESTRICTIONS
* Currently, only compression type 5 (Byte Vertical Delta Mode) is
* implemented. If you have animations which use modes 1 to 4, try
* loading them with DPaint III and saving them again.
-* Sculpt-Animate pictures do not work, because I have no documentation
-* about the compression scheme they use.
+* Sculpt-Animate ('J' type ANIM, Movie format) support will be
+* added soon.
* I will implement some more compression types upon request.
*
-* WARNINGS
+* NOTE
* This routine needs at least 820 bytes of stack.
* The size of the bitmap is not checked by this routine, the planes
* must have at least the size described in the BMHD of the anim
* file.
*
-* BUGS
+* SEE ALSO
+* IFFL_IFFError()
*
*****************************************************************************
@@ -100,7 +101,7 @@ ModifyFrameFunc:
cmpi.l #'ILBM',8(a4) ; ILBM-Form ?
beq.s 3$ ; ja --->
- moveq #IFF_NOILBM,d0 ; Fehlernummer
+ moveq #IFFL_ERROR_NOILBM,d0 ; Fehlernummer
bra .Error
3$:
*** AnimHeader suchen und nach A2
@@ -110,7 +111,7 @@ ModifyFrameFunc:
bsr FindChunkFunc
;; tst.l d0
bne.s 4$ ; gefunden --->
- moveq #IFF_NOANHD,d0 ; Fehlernummer
+ moveq #IFFL_ERROR_NOANHD,d0 ; Fehlernummer
bra .Error
4$:
addq.l #8,d0 ; ANHD.... überhüpfen
@@ -124,7 +125,7 @@ ModifyFrameFunc:
lea MakePlane(PC),a6
bra.s 6$
5$:
- moveq #IFF_UNKNOWNCOMPRESSION,d0
+ moveq #IFFL_ERROR_BADCOMPRESSION,d0
bra.s .Error
6$:
*** DLTA-Chunk finden und nach A4
@@ -133,7 +134,7 @@ ModifyFrameFunc:
move.l #'DLTA',d0
bsr FindChunkFunc ; Start der Daten
bne.s 7$ ; gefunden --->
- moveq #IFF_NODLTA,d0 ; Fehlernummer
+ moveq #IFFL_ERROR_NODLTA,d0 ; Fehlernummer
bra .Error
7$:
addq.l #8,d0 ; DLTA.... überhüpfen
@@ -253,6 +254,5 @@ ColumnDbf: dbf d4,ColumnLoop ; Nächste Kolonne --->
movem.l (SP)+,d0-d5/a0-a1/a3
rts
-*****************************************************************************
END