xref: /minix3/external/bsd/file/dist/magic/magdir/iff (revision 835f6802383ea18ff9311123031e44be87fb502a)
1ef01931fSBen Gras
2ef01931fSBen Gras#------------------------------------------------------------------------------
3*835f6802SDirk Vogt# $File: iff,v 1.13 2011/09/06 11:00:06 christos Exp $
4ef01931fSBen Gras# iff:	file(1) magic for Interchange File Format (see also "audio" & "images")
5ef01931fSBen Gras#
6ef01931fSBen Gras# Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic
7ef01931fSBen Gras# Arts for file interchange.  It has also been used by Apple, SGI, and
8ef01931fSBen Gras# especially Commodore-Amiga.
9ef01931fSBen Gras#
10ef01931fSBen Gras# IFF files begin with an 8 byte FORM header, followed by a 4 character
11ef01931fSBen Gras# FORM type, which is followed by the first chunk in the FORM.
12ef01931fSBen Gras
13ef01931fSBen Gras0	string		FORM		IFF data
14ef01931fSBen Gras#>4	belong		x		\b, FORM is %d bytes long
15ef01931fSBen Gras# audio formats
16ef01931fSBen Gras>8	string		AIFF		\b, AIFF audio
17ef01931fSBen Gras!:mime	audio/x-aiff
18ef01931fSBen Gras>8	string		AIFC		\b, AIFF-C compressed audio
19ef01931fSBen Gras!:mime	audio/x-aiff
20ef01931fSBen Gras>8	string		8SVX		\b, 8SVX 8-bit sampled sound voice
21ef01931fSBen Gras!:mime	audio/x-aiff
22ef01931fSBen Gras>8	string		16SV		\b, 16SV 16-bit sampled sound voice
23ef01931fSBen Gras>8	string		SAMP		\b, SAMP sampled audio
24ef01931fSBen Gras>8	string		MAUD		\b, MAUD MacroSystem audio
25ef01931fSBen Gras>8	string		SMUS		\b, SMUS simple music
26ef01931fSBen Gras>8	string		CMUS		\b, CMUS complex music
27ef01931fSBen Gras# image formats
28ef01931fSBen Gras>8	string		ILBMBMHD	\b, ILBM interleaved image
29ef01931fSBen Gras>>20	beshort		x		\b, %d x
30ef01931fSBen Gras>>22	beshort		x		%d
31ef01931fSBen Gras>8	string		RGBN		\b, RGBN 12-bit RGB image
32ef01931fSBen Gras>8	string		RGB8		\b, RGB8 24-bit RGB image
33ef01931fSBen Gras>8	string		DEEP		\b, DEEP TVPaint/XiPaint image
34ef01931fSBen Gras>8	string		DR2D		\b, DR2D 2-D object
35ef01931fSBen Gras>8	string		TDDD		\b, TDDD 3-D rendering
36ef01931fSBen Gras>8	string		LWOB		\b, LWOB 3-D object
37ef01931fSBen Gras>8	string		LWO2		\b, LWO2 3-D object, v2
38ef01931fSBen Gras>8	string		LWLO		\b, LWLO 3-D layered object
39ef01931fSBen Gras>8	string		REAL		\b, REAL Real3D rendering
40ef01931fSBen Gras>8	string		MC4D		\b, MC4D MaxonCinema4D rendering
41ef01931fSBen Gras>8	string		ANIM		\b, ANIM animation
42ef01931fSBen Gras>8	string		YAFA		\b, YAFA animation
43ef01931fSBen Gras>8	string		SSA\ 		\b, SSA super smooth animation
44ef01931fSBen Gras>8	string		ACBM		\b, ACBM continuous image
45ef01931fSBen Gras>8	string		FAXX		\b, FAXX fax image
46ef01931fSBen Gras# other formats
47ef01931fSBen Gras>8	string		FTXT		\b, FTXT formatted text
48ef01931fSBen Gras>8	string		CTLG		\b, CTLG message catalog
49ef01931fSBen Gras>8	string		PREF		\b, PREF preferences
50ef01931fSBen Gras>8	string		DTYP		\b, DTYP datatype description
51ef01931fSBen Gras>8	string		PTCH		\b, PTCH binary patch
52ef01931fSBen Gras>8	string		AMFF		\b, AMFF AmigaMetaFile format
53ef01931fSBen Gras>8	string		WZRD		\b, WZRD StormWIZARD resource
54ef01931fSBen Gras>8	string		DOC\ 		\b, DOC desktop publishing document
55*835f6802SDirk Vogt>8	string		WVQA 		\b, Westwood Studios VQA Multimedia,
56*835f6802SDirk Vogt>>24	leshort		x		%d video frames,
57*835f6802SDirk Vogt>>26	leshort		x		%d x
58*835f6802SDirk Vogt>>28	leshort		x		%d
59*835f6802SDirk Vogt>8	string		MOVE		\b, Wing Commander III Video
60*835f6802SDirk Vogt>>12	string		_PC_		\b, PC version
61*835f6802SDirk Vogt>>12	string		3DO_		\b, 3DO version
62ef01931fSBen Gras
63ef01931fSBen Gras# These go at the end of the iff rules
64ef01931fSBen Gras#
65ef01931fSBen Gras# I don't see why these might collide with anything else.
66ef01931fSBen Gras#
67ef01931fSBen Gras# Interactive Fiction related formats
68ef01931fSBen Gras#
69ef01931fSBen Gras>8	string		IFRS		\b, Blorb Interactive Fiction
70ef01931fSBen Gras>>24	string		Exec		with executable chunk
71ef01931fSBen Gras>8	string          IFZS		\b, Z-machine or Glulx saved game file (Quetzal)
72