2 #include <libraries/iffparse.h>
4 /* Header file for 2View.c */
6 enum ScreenWidths
{low
,high
,superhigh
,unknown_w
};
7 typedef enum ScreenWidths ScreenWidths
;
9 enum ScreenHeights
{nolace
,lace
,prodlace
,unknown_h
};
10 typedef enum ScreenHeights ScreenHeights
;
12 enum ScreenTypes
{ham
,ehb
,unknown_t
};
13 typedef enum ScreenTypes ScreenTypes
;
15 enum ButtonTypes
{none
=0,select
,menu
};
16 typedef enum ButtonTypes ButtonTypes
;
52 #define MIN(x,y) ((x)<(y)) ? (x) : (y)
56 /* Prototypes for functions defined in 2View.c */
57 int main (int argc
, char ** argv
);
58 void ReadAndDisplay(char *filename
,struct IFFHandle
*iff
);
59 void setScreenColors(struct Screen
*scr
, UBYTE
*colorMap
, UBYTE depth
,
60 UWORD
*destColorMap
,UBYTE
*colors
);
61 void ReadBodyIntoBitmap(struct BitMap
*bm
,
64 void GetALine(BYTE
*src
,
68 unsigned char Compression
);
70 void getBMHD(UBYTE
*bmhd
);
71 void ParseArgs(IPTR
*args
);
72 ButtonTypes
checkButton(void);
73 void printError(char *fmt
,...);
75 BOOL
dumpRastPort(struct RastPort
*rp
,struct ViewPort
*vp
);
76 void cycleColors(UBYTE
*cycleTable
,UWORD
*colorTable
,UBYTE length
,UBYTE numColors
);
77 UBYTE
interpretCRNG(UBYTE
*cycleTable
,CRNG
*crng
,UBYTE
*rate
);
78 UBYTE
interpretDRNG(UBYTE
*cycleTable
,DRNG
*drng
,UBYTE
*rate
);
79 void toggleCycling(void);
82 void setupSHAM(struct Screen
*scr
,UWORD
*sham
);
83 void setupDynHires(struct Screen
*scr
,UWORD
*colorBuf
);