#ifndef MYREADPICT_H
#define MYREADPICT_H

#ifndef ILBM_H
#include <iff/ilbm.h>
#endif

#ifndef GRAPHICS_GFX_H
#include <graphics/gfx.h>
#endif


#define EXDepth 6        /* Maximum depth (6=HAM) */
#define maxColorReg 32

typedef struct {
   ULONG ViewModes;
   } CamgChunk;

#define GetCAMG(context, camg)  \
    IFFReadBytes(context, (BYTE *)camg, sizeof(CamgChunk))

typedef struct {
   ClientFrame clientFrame;
   UBYTE foundBMHD;
   UBYTE nColorRegs;
   BitMapHeader bmHdr;
   Color4 colorMap[maxColorReg];
   /* If you want to read any other property chunks, e.g. GRAB or CAMG, add
    * fields to this record to store them. */
   UBYTE foundCAMG;
   CamgChunk camgChunk;
   } ILBMFrame;

typedef UBYTE *UBytePtr;

#ifdef FDwAT
extern IFFP myReadPicture(LONG, ILBMFrame *);
extern struct BitMap *getBitMap(ILBMFrame *);
#else 
extern IFFP myReadPicture();
extern struct BitMap *getBitMap();
#endif

#endif MYREADPICT_H


