1284194Sdelphij 2284194Sdelphij#------------------------------------------------------------------------------ 3284194Sdelphij# $File: iff,v 1.13 2011/09/06 11:00:06 christos Exp $ 4284194Sdelphij# iff: file(1) magic for Interchange File Format (see also "audio" & "images") 5284194Sdelphij# 6284194Sdelphij# Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic 7284194Sdelphij# Arts for file interchange. It has also been used by Apple, SGI, and 8284194Sdelphij# especially Commodore-Amiga. 9284194Sdelphij# 10284194Sdelphij# IFF files begin with an 8 byte FORM header, followed by a 4 character 11284194Sdelphij# FORM type, which is followed by the first chunk in the FORM. 12284194Sdelphij 13284194Sdelphij0 string FORM IFF data 14284194Sdelphij#>4 belong x \b, FORM is %d bytes long 15284194Sdelphij# audio formats 16284194Sdelphij>8 string AIFF \b, AIFF audio 17284194Sdelphij!:mime audio/x-aiff 18284194Sdelphij>8 string AIFC \b, AIFF-C compressed audio 19284194Sdelphij!:mime audio/x-aiff 20284194Sdelphij>8 string 8SVX \b, 8SVX 8-bit sampled sound voice 21284194Sdelphij!:mime audio/x-aiff 22284194Sdelphij>8 string 16SV \b, 16SV 16-bit sampled sound voice 23284194Sdelphij>8 string SAMP \b, SAMP sampled audio 24284194Sdelphij>8 string MAUD \b, MAUD MacroSystem audio 25284194Sdelphij>8 string SMUS \b, SMUS simple music 26284194Sdelphij>8 string CMUS \b, CMUS complex music 27284194Sdelphij# image formats 28284194Sdelphij>8 string ILBMBMHD \b, ILBM interleaved image 29284194Sdelphij>>20 beshort x \b, %d x 30284194Sdelphij>>22 beshort x %d 31284194Sdelphij>8 string RGBN \b, RGBN 12-bit RGB image 32284194Sdelphij>8 string RGB8 \b, RGB8 24-bit RGB image 33284194Sdelphij>8 string DEEP \b, DEEP TVPaint/XiPaint image 34284194Sdelphij>8 string DR2D \b, DR2D 2-D object 35284194Sdelphij>8 string TDDD \b, TDDD 3-D rendering 36284194Sdelphij>8 string LWOB \b, LWOB 3-D object 37284194Sdelphij>8 string LWO2 \b, LWO2 3-D object, v2 38284194Sdelphij>8 string LWLO \b, LWLO 3-D layered object 39284194Sdelphij>8 string REAL \b, REAL Real3D rendering 40284194Sdelphij>8 string MC4D \b, MC4D MaxonCinema4D rendering 41284194Sdelphij>8 string ANIM \b, ANIM animation 42284194Sdelphij>8 string YAFA \b, YAFA animation 43284194Sdelphij>8 string SSA\ \b, SSA super smooth animation 44284194Sdelphij>8 string ACBM \b, ACBM continuous image 45284194Sdelphij>8 string FAXX \b, FAXX fax image 46284194Sdelphij# other formats 47284194Sdelphij>8 string FTXT \b, FTXT formatted text 48284194Sdelphij>8 string CTLG \b, CTLG message catalog 49284194Sdelphij>8 string PREF \b, PREF preferences 50284194Sdelphij>8 string DTYP \b, DTYP datatype description 51284194Sdelphij>8 string PTCH \b, PTCH binary patch 52284194Sdelphij>8 string AMFF \b, AMFF AmigaMetaFile format 53284194Sdelphij>8 string WZRD \b, WZRD StormWIZARD resource 54284194Sdelphij>8 string DOC\ \b, DOC desktop publishing document 55284194Sdelphij>8 string WVQA \b, Westwood Studios VQA Multimedia, 56284194Sdelphij>>24 leshort x %d video frames, 57284194Sdelphij>>26 leshort x %d x 58284194Sdelphij>>28 leshort x %d 59284194Sdelphij>8 string MOVE \b, Wing Commander III Video 60284194Sdelphij>>12 string _PC_ \b, PC version 61284194Sdelphij>>12 string 3DO_ \b, 3DO version 62284194Sdelphij 63284194Sdelphij# These go at the end of the iff rules 64284194Sdelphij# 65284194Sdelphij# I don't see why these might collide with anything else. 66284194Sdelphij# 67284194Sdelphij# Interactive Fiction related formats 68284194Sdelphij# 69284194Sdelphij>8 string IFRS \b, Blorb Interactive Fiction 70284194Sdelphij>>24 string Exec with executable chunk 71284194Sdelphij>8 string IFZS \b, Z-machine or Glulx saved game file (Quetzal) 72