1*0ee74395Schl# $OpenBSD: iff,v 1.4 2009/04/24 18:54:34 chl Exp $ 2e2a32a0eSderaadt 3e2a32a0eSderaadt#------------------------------------------------------------------------------ 4e2a32a0eSderaadt# iff: file(1) magic for Interchange File Format (see also "audio" & "images") 5e2a32a0eSderaadt# 6e2a32a0eSderaadt# Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic 7e2a32a0eSderaadt# Arts for file interchange. It has also been used by Apple, SGI, and 8e2a32a0eSderaadt# especially Commodore-Amiga. 9e2a32a0eSderaadt# 10e2a32a0eSderaadt# IFF files begin with an 8 byte FORM header, followed by a 4 character 11e2a32a0eSderaadt# FORM type, which is followed by the first chunk in the FORM. 12e2a32a0eSderaadt 13e2a32a0eSderaadt0 string FORM IFF data 14e2a32a0eSderaadt#>4 belong x \b, FORM is %d bytes long 15e2a32a0eSderaadt# audio formats 16e2a32a0eSderaadt>8 string AIFF \b, AIFF audio 17*0ee74395Schl!:mime audio/x-aiff 18e2a32a0eSderaadt>8 string AIFC \b, AIFF-C compressed audio 19*0ee74395Schl!:mime audio/x-aiff 20e2a32a0eSderaadt>8 string 8SVX \b, 8SVX 8-bit sampled sound voice 21*0ee74395Schl!:mime audio/x-aiff 22380b5c7dSchl>8 string 16SV \b, 16SV 16-bit sampled sound voice 23e2a32a0eSderaadt>8 string SAMP \b, SAMP sampled audio 24380b5c7dSchl>8 string MAUD \b, MAUD MacroSystem audio 25380b5c7dSchl>8 string SMUS \b, SMUS simple music 26380b5c7dSchl>8 string CMUS \b, CMUS complex music 27e2a32a0eSderaadt# image formats 28e2a32a0eSderaadt>8 string ILBMBMHD \b, ILBM interleaved image 29e2a32a0eSderaadt>>20 beshort x \b, %d x 30e2a32a0eSderaadt>>22 beshort x %d 31e2a32a0eSderaadt>8 string RGBN \b, RGBN 12-bit RGB image 32e2a32a0eSderaadt>8 string RGB8 \b, RGB8 24-bit RGB image 33380b5c7dSchl>8 string DEEP \b, DEEP TVPaint/XiPaint image 34e2a32a0eSderaadt>8 string DR2D \b, DR2D 2-D object 35e2a32a0eSderaadt>8 string TDDD \b, TDDD 3-D rendering 36380b5c7dSchl>8 string LWOB \b, LWOB 3-D object 37380b5c7dSchl>8 string LWO2 \b, LWO2 3-D object, v2 38380b5c7dSchl>8 string LWLO \b, LWLO 3-D layered object 39380b5c7dSchl>8 string REAL \b, REAL Real3D rendering 40380b5c7dSchl>8 string MC4D \b, MC4D MaxonCinema4D rendering 41380b5c7dSchl>8 string ANIM \b, ANIM animation 42380b5c7dSchl>8 string YAFA \b, YAFA animation 43380b5c7dSchl>8 string SSA\ \b, SSA super smooth animation 44380b5c7dSchl>8 string ACBM \b, ACBM continuous image 45380b5c7dSchl>8 string FAXX \b, FAXX fax image 46e2a32a0eSderaadt# other formats 47e2a32a0eSderaadt>8 string FTXT \b, FTXT formatted text 48380b5c7dSchl>8 string CTLG \b, CTLG message catalog 49380b5c7dSchl>8 string PREF \b, PREF preferences 50380b5c7dSchl>8 string DTYP \b, DTYP datatype description 51380b5c7dSchl>8 string PTCH \b, PTCH binary patch 52380b5c7dSchl>8 string AMFF \b, AMFF AmigaMetaFile format 53380b5c7dSchl>8 string WZRD \b, WZRD StormWIZARD resource 54380b5c7dSchl>8 string DOC\ \b, DOC desktop publishing document 55380b5c7dSchl 56380b5c7dSchl# These go at the end of the iff rules 57380b5c7dSchl# 58380b5c7dSchl# I don't see why these might collide with anything else. 59380b5c7dSchl# 60380b5c7dSchl# Interactive Fiction related formats 61380b5c7dSchl# 62380b5c7dSchl>8 string IFRS \b, Blorb Interactive Fiction 63380b5c7dSchl>>24 string Exec with executable chunk 64380b5c7dSchl>8 string IFZS \b, Z-machine or Glulx saved game file (Quetzal) 65