
/* preloadanim.h
 */

#ifndef PRELOADANIM_H
#define PRELOADANIM_H

typedef struct {
   UBYTE operation; /* =5 for RIFF style */
   UBYTE mask;
   UWORD w,h;
   WORD  x,y;
   ULONG abstime; /* for timing w.r.t. start of anim file in jiffies (notused)*/
   ULONG reltime; /* for timing w.r.t. last frame in jiffies */
   UBYTE interleave; /* =0 for XORing to two frames back, =1 for last frame
                             (not used yet)  */
   UBYTE pad0;
   ULONG bits;
   UBYTE pad[16];
   } AnimationHeader;

struct FrameHD
   {
   struct FrameHD *next;
   struct FrameHD *prev;
   BitMapHeader *bmhd;
   AnimationHeader *anhd;
   CamgChunk *camg;
   WORD cmap[32];
   ULONG *body;
   ULONG bodylength;
   UBYTE nColorRegs;
   UBYTE pad;
   };

struct IFFfile
   {
   struct FrameHD *firstframe;
   struct FrameHD *lastframe;
   };

#endif PRELOADANIM_H
