xref: /freebsd/contrib/file/magic/Magdir/iff (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1
2#------------------------------------------------------------------------------
3# $File: iff,v 1.20 2024/02/09 00:44:31 christos Exp $
4# iff:	file(1) magic for Interchange File Format (see also "audio" & "images")
5#
6# Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic
7# Arts for file interchange.  It has also been used by Apple, SGI, and
8# especially Commodore-Amiga.
9#
10# IFF files begin with an 8 byte FORM header, followed by a 4 character
11# FORM type, which is followed by the first chunk in the FORM.
12
13# URL:		http://fileformats.archiveteam.org/wiki/IFF
14#		https://en.wikipedia.org/wiki/Interchange_File_Format
15# Reference:	https://wiki.amigaos.net/wiki/IFF_FORM_and_Chunk_Registry
16# Note:		called "Interchange File" by DROID via PUID x-fmt/157 and
17#		"IFF file" or as alias expanded "Interchange File Format" by shared MIME-info database from freedesktop.org
180	string		FORM		IFF data
19#>4	belong		x		\b, FORM is %d bytes long
20# audio formats
21# Update:	Joerg Jenderek
22# URL:		http://fileformats.archiveteam.org/wiki/AIFF
23#		https://en.wikipedia.org/wiki/Audio_Interchange_File_Format
24# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/a/audio-aiff.trid.xml
25# Note:		called "AIFF Audio Interchange File Format" by TrID and
26#		"Audio Interchange File Format" by DROID via PUID fmt/414
27>8	string		AIFF		\b, AIFF audio
28!:mime	audio/x-aiff
29# not officially registered
30#!:mime	audio/aiff
31!:ext	aiff/aif/aff
32>8	string		AIFC		\b, AIFF-C compressed audio
33!:mime	audio/x-aiff
34>8	string		8SVX		\b, 8SVX 8-bit sampled sound voice
35!:mime	audio/x-aiff
36>8	string		16SV		\b, 16SV 16-bit sampled sound voice
37>8	string		SAMP		\b, SAMP sampled audio
38>8	string		MAUD		\b, MAUD MacroSystem audio
39>8	string		SMUS		\b, SMUS simple music
40>8	string		CMUS		\b, CMUS complex music
41# image formats
42>8	string		ILBMBMHD	\b, ILBM interleaved image
43>>20	beshort		x		\b, %d x
44>>22	beshort		x		%d
45>8	string		RGBN		\b, RGBN 12-bit RGB image
46>8	string		RGB8		\b, RGB8 24-bit RGB image
47>8	string		DEEP		\b, DEEP TVPaint/XiPaint image
48>8	string		DR2D		\b, DR2D 2-D object
49>8	string		TDDD		\b, TDDD 3-D rendering
50>8	string		LWOB		\b, LWOB 3-D object
51>8	string		LWO2		\b, LWO2 3-D object, v2
52>8	string		LWLO		\b, LWLO 3-D layered object
53>8	string		REAL		\b, REAL Real3D rendering
54>8	string		MC4D		\b, MC4D MaxonCinema4D rendering
55>8	string		ANIM		\b, ANIM animation
56>8	string		YAFA		\b, YAFA animation
57>8	string		SSA\ 		\b, SSA super smooth animation
58>8	string		FANT		\b, Fantavision animation
59>8	string		ACBM		\b, ACBM continuous image
60>8	string		FAXX		\b, FAXX fax image
61>8	string		STFX		\b, ST-Fax image
62>8	string		IMAGIHDR	\b, CD-i image
63# other formats
64>8	string		FTXT		\b, FTXT formatted text
65>8	string		CTLG		\b, CTLG message catalog
66>8	string		PREF		\b, PREF preferences
67>8	string		DTYP		\b, DTYP datatype description
68# Update:	Joerg Jenderek
69# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/i/iff-pch.trid.xml
70# Note:		called "IFF binary Patch" by TrID
71>8	string		PTCH		\b, PTCH binary patch
72#!:mime		application/octet-stream
73#!:mime		application/x-iff
74#!:mime		application/x-amiga-patch
75!:ext		patch/pch
76>8	string		AMFF		\b, AMFF AmigaMetaFile format
77>8	string		WZRD		\b, WZRD StormWIZARD resource
78>8	string		DOC\040		\b, DOC desktop publishing document
79>8	string		SWRT		\b, SWRT Final Copy/Writer document
80>8	string		WORD		\b, ProWrite document
81>8	string 		WTXT		\b, WTXT Wordworth document
82>8	string 		WOWO		\b, WOWO Wordworth document
83>8	string		WVQA 		\b, Westwood Studios VQA Multimedia,
84>>24	leshort		x		%d video frames,
85>>26	leshort		x		%d x
86>>28	leshort		x		%d
87>8	string		MOVE		\b, Wing Commander III Video
88>>12	string		_PC_		\b, PC version
89>>12	string		3DO_		\b, 3DO version
90
91# These go at the end of the iff rules
92#
93# David Griffith <dave@661.org>
94# I don't see why these might collide with anything else.
95#
96# Interactive Fiction related formats
97#
98>8	string		IFRS		\b, Blorb Interactive Fiction
99>>24	string		Exec		with executable chunk
100>8	string          IFZS		\b, Z-machine or Glulx saved game file (Quetzal)
101!:mime	application/x-blorb
102