# image formats, originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
#

0	string		xbtoa			btoa'd file

# PBMPLUS
0	string		P1			PBM file
0	string		P2			PGM file
0	string		P3			PPM file
0	string		P4			PBM "rawbits" file
0	string		P5			PGM "rawbits" file
0	string		P6			PPM "rawbits" file

# TIFF and friends
0	string		\115\115		TIFF file, big-endian
>2      short           >0              	version %d
0	string		\111\111		TIFF file, little-endian
>2      short           >0              	version %d
#
# NIFF (Navy Interchange File Format, a modification of TIFF)
0	string		IIN1			NIFF raster data

# GIF
0	string		GIF		GIF picture
>3	string		87a		- version %.3s
>3	string		89a		- version %.3s
>6	short		>0		%d x
>8	short		>0		%d,
>10	byte		&0x40		interlaced,
>10	byte&0x07	=0x00		2 colors
>10	byte&0x07	=0x01		4 colors
>10	byte&0x07	=0x02		8 colors
>10	byte&0x07	=0x03		16 colors
>10	byte&0x07	=0x04		32 colors
>10	byte&0x07	=0x05		64 colors
>10	byte&0x07	=0x06		128 colors
>10	byte&0x07	=0x07		256 colors

# Miscellany
0	long		1123028772		Artisan image file
>4	long		1	rectangular 24-bit image
>4	long		2	rectangular 8-bit image with colormap
>4      long            3	rectangular 32-bit image (24-bit with matte)
0	string		\361\0\100\273		CMU window manager bitmap
0	string		#FIG			FIG graphics savefile text
>6      string          2.1             	Version 2.1
>6      string          2.0             	Version 2.0
0	string		GKSM			GKS Metafile
8	string		ILBM			IFF ILBM file
0	string		yz			MGR bitmap
0       string          ARF_BEGARF      	PHIGS clear text archive
0	string		\0\0\1\263		MPEG Paris
# PCX formats (source: Selke's filetype program, 1991)
0	string	\x0A\x00	PCX image (Paintbrush version 2.5)
0	string	\x0A\x02	PCX image (Paintbrush version 2.8, with palette)
0	string	\x0A\x03	PCX image (Paintbrush version 2.8, without palette)
0  string	\x0A\x05	PCX image (Paintbrush version 3.0)
# JPEG (source: Cameron Simpson cameron@cs.unsw.oz.au,
#               John Adams J.Adams@ucl.ac.uk)
0	long		0xffd8ffe0		JPEG image, big endian
0	long		0xe0ffd8ff		JPEG image, little endian
0	string		hsi1			HSI1 image (wrapper for JPEG?)
6	string		JFIF			JPEG JFIF
#
# >>>>> BMP, etc. <<<<< (source: Greg Roelofs roe2@midway.uchicago.edu)
# [GRR: The >14 entries should really be strings of length four]
#
0	string		BM			bitmap
>14	byte		12			(OS/2 1.x format)
>14	byte		64			(OS/2 2.x format)
>14	byte		40			(Windows 3.x format)
# [GRR says the following are untested]
0	string		IC			icon
0	string		PI			pointer
0	string		CI			color icon
0	string		CP			color pointer
0	string		BA			bitmap array

# movie files from OS/2 (these are guesses)
0  string      RIFF     
>8 string      AVI      movie
