Strings in RASTFILE.TXT


Copyright Sun Microsystems.  Included with permission
@(#)rasterfile.h 1.11 89/08/21 SMI
* Description of header for files containing raster images
#ifndef _rasterfile_h
#define _rasterfile_h
struct rasterfile {
ras_magic;
/* magic number */
ras_width;
/* width (pixels) of image */
ras_height;
/* height (pixels) of image */
ras_depth;
/* depth (1, 8, or 24 bits) of pixel */
ras_length;
/* length (bytes) of image */
ras_type;
/* type of file; see RT_* below */
ras_maptype;
/* type of colormap; see RMT_* below */
ras_maplength;
/* length (bytes) of following map */
/* color map follows for ras_maplength bytes, followed by image */
#define
RAS_MAGIC
0x59a66a95
/* Sun supported ras_type's */
#define RT_OLD
/* Raw pixrect image in 68000 byte order */
#define RT_STANDARD
/* Raw pixrect image in 68000 byte order */
#define RT_BYTE_ENCODED
/* Run-length compression of bytes */
#define RT_FORMAT_RGB
/* XRGB or RGB instead of XBGR or BGR */
#define RT_FORMAT_TIFF
/* tiff <-> standard rasterfile */
#define RT_FORMAT_IFF
/* iff (TAAC format) <-> standard rasterfile */
#define RT_EXPERIMENTAL 0xffff
/* Reserved for testing */
/* Sun registered ras_maptype's */
#define RMT_RAW
/* Sun supported ras_maptype's */
#define RMT_NONE
/* ras_maplength is expected to be 0 */
#define RMT_EQUAL_RGB
/* red[ras_maplength/3],green[],blue[] */
* NOTES:
Each line of the image is rounded out to a multiple of 16 bits.
* This corresponds to the rounding convention used by the memory pixrect
* package (/usr/include/pixrect/memvar.h) of the SunWindows system.
The ras_encoding field (always set to 0 by Sun's supported software)
* was renamed to ras_length in release 2.0. As a result, rasterfiles
* of type 0 generated by the old software claim to have 0 length; for
* compatibility, code reading rasterfiles must be prepared to compute the
* true length from the width, height, and depth fields.
#endif /*!_rasterfile_h*/