-
Notifications
You must be signed in to change notification settings - Fork 5
/
draw.h
46 lines (40 loc) · 1012 Bytes
/
draw.h
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
/*
* draw.h
* Copyright (C) 2001 A.J. van Os; Released under GPL
*
* Description:
* Constants and macros to deal with the Draw format
*/
#if !defined(__draw_h)
#define __draw_h 1
#include "drawftypes.h"
typedef struct draw_jpegstrhdr_tag {
draw_tagtyp tag; /* 1 word */
draw_sizetyp size; /* 1 word */
draw_bboxtyp bbox; /* 4 words */
int width; /* 1 word */
int height; /* 1 word */
int xdpi; /* 1 word */
int ydpi; /* 1 word */
int trfm[6]; /* 6 words */
int len; /* 1 word */
} draw_jpegstrhdr;
typedef struct draw_jpegstr_tag {
draw_tagtyp tag; /* 1 word */
draw_sizetyp size; /* 1 word */
draw_bboxtyp bbox; /* 4 words */
int width; /* 1 word */
int height; /* 1 word */
int xdpi; /* 1 word */
int ydpi; /* 1 word */
int trfm[6]; /* 6 words */
int len; /* 1 word */
unsigned char *jpeg;
} draw_jpegstr;
typedef union draw_imageType_tag {
draw_spristr *sprite;
draw_jpegstr *jpeg;
char *bytep;
int *wordp;
} draw_imageType;
#endif /* !__draw_h */