File: draw.h

package info (click to toggle)
antiword 0.37-17
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,332 kB
  • sloc: ansic: 27,788; perl: 174; sh: 129; php: 83; makefile: 24
file content (46 lines) | stat: -rw-r--r-- 1,012 bytes parent folder | download | duplicates (11)
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 */