168349Sobrien
268349Sobrien#------------------------------------------------------------------------------
3226048Sobrien# $File: iff,v 1.13 2011/09/06 11:00:06 christos Exp $
468349Sobrien# iff:	file(1) magic for Interchange File Format (see also "audio" & "images")
568349Sobrien#
668349Sobrien# Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic
768349Sobrien# Arts for file interchange.  It has also been used by Apple, SGI, and
868349Sobrien# especially Commodore-Amiga.
968349Sobrien#
1068349Sobrien# IFF files begin with an 8 byte FORM header, followed by a 4 character
1168349Sobrien# FORM type, which is followed by the first chunk in the FORM.
1268349Sobrien
1368349Sobrien0	string		FORM		IFF data
1468349Sobrien#>4	belong		x		\b, FORM is %d bytes long
1568349Sobrien# audio formats
1668349Sobrien>8	string		AIFF		\b, AIFF audio
17186690Sobrien!:mime	audio/x-aiff
1868349Sobrien>8	string		AIFC		\b, AIFF-C compressed audio
19186690Sobrien!:mime	audio/x-aiff
2068349Sobrien>8	string		8SVX		\b, 8SVX 8-bit sampled sound voice
21186690Sobrien!:mime	audio/x-aiff
22159764Sobrien>8	string		16SV		\b, 16SV 16-bit sampled sound voice
2368349Sobrien>8	string		SAMP		\b, SAMP sampled audio
24159764Sobrien>8	string		MAUD		\b, MAUD MacroSystem audio
25159764Sobrien>8	string		SMUS		\b, SMUS simple music
26159764Sobrien>8	string		CMUS		\b, CMUS complex music
2768349Sobrien# image formats
2868349Sobrien>8	string		ILBMBMHD	\b, ILBM interleaved image
2968349Sobrien>>20	beshort		x		\b, %d x
3068349Sobrien>>22	beshort		x		%d
3168349Sobrien>8	string		RGBN		\b, RGBN 12-bit RGB image
3268349Sobrien>8	string		RGB8		\b, RGB8 24-bit RGB image
33159764Sobrien>8	string		DEEP		\b, DEEP TVPaint/XiPaint image
3468349Sobrien>8	string		DR2D		\b, DR2D 2-D object
3568349Sobrien>8	string		TDDD		\b, TDDD 3-D rendering
36159764Sobrien>8	string		LWOB		\b, LWOB 3-D object
37159764Sobrien>8	string		LWO2		\b, LWO2 3-D object, v2
38159764Sobrien>8	string		LWLO		\b, LWLO 3-D layered object
39159764Sobrien>8	string		REAL		\b, REAL Real3D rendering
40159764Sobrien>8	string		MC4D		\b, MC4D MaxonCinema4D rendering
41159764Sobrien>8	string		ANIM		\b, ANIM animation
42159764Sobrien>8	string		YAFA		\b, YAFA animation
43159764Sobrien>8	string		SSA\ 		\b, SSA super smooth animation
44159764Sobrien>8	string		ACBM		\b, ACBM continuous image
45159764Sobrien>8	string		FAXX		\b, FAXX fax image
4668349Sobrien# other formats
4768349Sobrien>8	string		FTXT		\b, FTXT formatted text
48133359Sobrien>8	string		CTLG		\b, CTLG message catalog
49133359Sobrien>8	string		PREF		\b, PREF preferences
50159764Sobrien>8	string		DTYP		\b, DTYP datatype description
51159764Sobrien>8	string		PTCH		\b, PTCH binary patch
52159764Sobrien>8	string		AMFF		\b, AMFF AmigaMetaFile format
53159764Sobrien>8	string		WZRD		\b, WZRD StormWIZARD resource
54159764Sobrien>8	string		DOC\ 		\b, DOC desktop publishing document
55226048Sobrien>8	string		WVQA 		\b, Westwood Studios VQA Multimedia,
56226048Sobrien>>24	leshort		x		%d video frames,
57226048Sobrien>>26	leshort		x		%d x
58226048Sobrien>>28	leshort		x		%d
59226048Sobrien>8	string		MOVE		\b, Wing Commander III Video
60226048Sobrien>>12	string		_PC_		\b, PC version
61226048Sobrien>>12	string		3DO_		\b, 3DO version
62159764Sobrien
63159764Sobrien# These go at the end of the iff rules
64159764Sobrien#
65159764Sobrien# I don't see why these might collide with anything else.
66159764Sobrien#
67159764Sobrien# Interactive Fiction related formats
68159764Sobrien#
69159764Sobrien>8	string		IFRS		\b, Blorb Interactive Fiction
70159764Sobrien>>24	string		Exec		with executable chunk
71159764Sobrien>8	string          IFZS		\b, Z-machine or Glulx saved game file (Quetzal)
72