1 /*
2  * draw.h
3  * Copyright (C) 2001 A.J. van Os; Released under GPL
4  *
5  * Description:
6  * Constants and macros to deal with the Draw format
7  */
8 
9 #if !defined(__draw_h)
10 #define __draw_h 1
11 
12 #include "drawftypes.h"
13 
14 typedef struct draw_jpegstrhdr_tag {
15 	draw_tagtyp	tag;	/* 1 word  */
16 	draw_sizetyp	size;	/* 1 word  */
17 	draw_bboxtyp	bbox;	/* 4 words */
18 	int	width;		/* 1 word  */
19 	int	height;		/* 1 word  */
20 	int	xdpi;		/* 1 word  */
21 	int	ydpi;		/* 1 word  */
22 	int	trfm[6];	/* 6 words */
23 	int	len;		/* 1 word  */
24 } draw_jpegstrhdr;
25 
26 typedef struct draw_jpegstr_tag {
27 	draw_tagtyp	tag;	/* 1 word  */
28 	draw_sizetyp	size;	/* 1 word  */
29 	draw_bboxtyp	bbox;	/* 4 words */
30 	int	width;		/* 1 word  */
31 	int	height;		/* 1 word  */
32 	int	xdpi;		/* 1 word  */
33 	int	ydpi;		/* 1 word  */
34 	int	trfm[6];	/* 6 words */
35 	int	len;		/* 1 word  */
36 	unsigned char	*jpeg;
37 } draw_jpegstr;
38 
39 typedef union draw_imageType_tag {
40 	draw_spristr	*sprite;
41 	draw_jpegstr	*jpeg;
42 	char		*bytep;
43 	int		*wordp;
44 } draw_imageType;
45 
46 #endif /* !__draw_h */
47