Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/src/cmd/aux/antiword/draw.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/*
 * 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 */

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.