File: fli.h

package info (click to toggle)
aview 1.3.0rc1-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 468 kB
  • sloc: ansic: 2,990; sh: 542; makefile: 8
file content (46 lines) | stat: -rw-r--r-- 1,650 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

#define FLITYPE 0xAF11
#define FLCTYPE 0xAF12

#define COLOR_256	4
#define DELTA_FLC	7
#define COLOR_64	11
#define DELTA_FLI	12
#define BLACK		13
#define BYTE_RUN	15
#define LITERAL		16
#define PSTAMP		18

/* Structure of flic file header. Fields with + before the comment are FLC only. */
struct FLI_HEADER {
	long			size;		/*  size of entire file */
	unsigned short int	type;		/*  0xAF12 = FLC, 0xAF11 = FLI */
	short int		frames;		/*  number of frames in flic */
	short int 		width;		/*  screen width in pixels */
	short int 		height;		/*  sceen height in pixels */
	short int 		depth;		/*  bits per pixel (always 8) */
	unsigned short int	flags;		/*  set to 0x0003 */
	long			speed;		/*  time delay between frames, FLI: 1/70thsec, FLC: msec */
	short int 		reserved0;	/*  set to 0 */
	long			created;	/*+ MS-DOS formatted date and time of creation */
	long			creator;	/*+ Animator Pro serial number */
	long			updated;	/*+ date of last update */
	long 			updater;	/*+ Serial number of updating program */
	short int		aspectx;	/*+ ratio of screen used to create flic */
	short int 		aspecty;	/*+ */
	char  			reserved1[38];	/*+ 38 bytes set to 0 */
	long			oframe1;	/*+ file offset of first frame */
	long			oframe2;	/*+ file offset of second frame */
	char                    reserved2[40];	/*  40 bytes set to 0 */
};	
	
#define FLI_HEADERLEN ( sizeof( struct FLI_HEADER ) )

struct FLI_CHUNK_HEADER {
	long 			size;		/* size of chunk */
	short unsigned int	type;		/* chunk type */
	short unsigned int 	chunks;		/* number of subchunks */
	char 			reserved[8];	/* set to 0 */
};

#define FLI_CHUNK_HEADERLEN ( sizeof( struct FLI_CHUNK_HEADER ) )