Imported from antiword-0.37.tar.gz.
[antiword.git] / draw.h
blob839bbf0f39ddd97cad4c70e576edc7050f6b4f16
1 /*
2 * draw.h
3 * Copyright (C) 2001 A.J. van Os; Released under GPL
5 * Description:
6 * Constants and macros to deal with the Draw format
7 */
9 #if !defined(__draw_h)
10 #define __draw_h 1
12 #include "drawftypes.h"
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;
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;
39 typedef union draw_imageType_tag {
40 draw_spristr *sprite;
41 draw_jpegstr *jpeg;
42 char *bytep;
43 int *wordp;
44 } draw_imageType;
46 #endif /* !__draw_h */