1327e51cbSPeter Avalos 2327e51cbSPeter Avalos#------------------------------------------------------------------------------ 3*3b9cdfa3SAntonio Huete Jimenez# $File: iff,v 1.18 2022/03/21 19:57:18 christos Exp $ 4327e51cbSPeter Avalos# iff: file(1) magic for Interchange File Format (see also "audio" & "images") 5327e51cbSPeter Avalos# 6327e51cbSPeter Avalos# Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic 7327e51cbSPeter Avalos# Arts for file interchange. It has also been used by Apple, SGI, and 8327e51cbSPeter Avalos# especially Commodore-Amiga. 9327e51cbSPeter Avalos# 10327e51cbSPeter Avalos# IFF files begin with an 8 byte FORM header, followed by a 4 character 11327e51cbSPeter Avalos# FORM type, which is followed by the first chunk in the FORM. 12327e51cbSPeter Avalos 13327e51cbSPeter Avalos0 string FORM IFF data 14327e51cbSPeter Avalos#>4 belong x \b, FORM is %d bytes long 15327e51cbSPeter Avalos# audio formats 16327e51cbSPeter Avalos>8 string AIFF \b, AIFF audio 1779343712SPeter Avalos!:mime audio/x-aiff 18327e51cbSPeter Avalos>8 string AIFC \b, AIFF-C compressed audio 1979343712SPeter Avalos!:mime audio/x-aiff 20327e51cbSPeter Avalos>8 string 8SVX \b, 8SVX 8-bit sampled sound voice 2179343712SPeter Avalos!:mime audio/x-aiff 22327e51cbSPeter Avalos>8 string 16SV \b, 16SV 16-bit sampled sound voice 23327e51cbSPeter Avalos>8 string SAMP \b, SAMP sampled audio 24327e51cbSPeter Avalos>8 string MAUD \b, MAUD MacroSystem audio 25327e51cbSPeter Avalos>8 string SMUS \b, SMUS simple music 26327e51cbSPeter Avalos>8 string CMUS \b, CMUS complex music 27327e51cbSPeter Avalos# image formats 28327e51cbSPeter Avalos>8 string ILBMBMHD \b, ILBM interleaved image 29327e51cbSPeter Avalos>>20 beshort x \b, %d x 30327e51cbSPeter Avalos>>22 beshort x %d 31327e51cbSPeter Avalos>8 string RGBN \b, RGBN 12-bit RGB image 32327e51cbSPeter Avalos>8 string RGB8 \b, RGB8 24-bit RGB image 33327e51cbSPeter Avalos>8 string DEEP \b, DEEP TVPaint/XiPaint image 34327e51cbSPeter Avalos>8 string DR2D \b, DR2D 2-D object 35327e51cbSPeter Avalos>8 string TDDD \b, TDDD 3-D rendering 36327e51cbSPeter Avalos>8 string LWOB \b, LWOB 3-D object 37327e51cbSPeter Avalos>8 string LWO2 \b, LWO2 3-D object, v2 38327e51cbSPeter Avalos>8 string LWLO \b, LWLO 3-D layered object 39327e51cbSPeter Avalos>8 string REAL \b, REAL Real3D rendering 40327e51cbSPeter Avalos>8 string MC4D \b, MC4D MaxonCinema4D rendering 41327e51cbSPeter Avalos>8 string ANIM \b, ANIM animation 42327e51cbSPeter Avalos>8 string YAFA \b, YAFA animation 43327e51cbSPeter Avalos>8 string SSA\ \b, SSA super smooth animation 44970935fdSSascha Wildner>8 string FANT \b, Fantavision animation 45327e51cbSPeter Avalos>8 string ACBM \b, ACBM continuous image 46327e51cbSPeter Avalos>8 string FAXX \b, FAXX fax image 47970935fdSSascha Wildner>8 string STFX \b, ST-Fax image 48*3b9cdfa3SAntonio Huete Jimenez>8 string IMAGIHDR \b, CD-i image 49327e51cbSPeter Avalos# other formats 50327e51cbSPeter Avalos>8 string FTXT \b, FTXT formatted text 51327e51cbSPeter Avalos>8 string CTLG \b, CTLG message catalog 52327e51cbSPeter Avalos>8 string PREF \b, PREF preferences 53327e51cbSPeter Avalos>8 string DTYP \b, DTYP datatype description 54327e51cbSPeter Avalos>8 string PTCH \b, PTCH binary patch 55327e51cbSPeter Avalos>8 string AMFF \b, AMFF AmigaMetaFile format 56327e51cbSPeter Avalos>8 string WZRD \b, WZRD StormWIZARD resource 57970935fdSSascha Wildner>8 string DOC\040 \b, DOC desktop publishing document 58970935fdSSascha Wildner>8 string SWRT \b, SWRT Final Copy/Writer document 59970935fdSSascha Wildner>8 string WORD \b, ProWrite document 60970935fdSSascha Wildner>8 string WTXT \b, WTXT Wordworth document 61970935fdSSascha Wildner>8 string WOWO \b, WOWO Wordworth document 62a96e001bSPeter Avalos>8 string WVQA \b, Westwood Studios VQA Multimedia, 63a96e001bSPeter Avalos>>24 leshort x %d video frames, 64a96e001bSPeter Avalos>>26 leshort x %d x 65a96e001bSPeter Avalos>>28 leshort x %d 66a96e001bSPeter Avalos>8 string MOVE \b, Wing Commander III Video 67a96e001bSPeter Avalos>>12 string _PC_ \b, PC version 68a96e001bSPeter Avalos>>12 string 3DO_ \b, 3DO version 69327e51cbSPeter Avalos 70327e51cbSPeter Avalos# These go at the end of the iff rules 71327e51cbSPeter Avalos# 72c30bd091SSascha Wildner# David Griffith <dave@661.org> 73327e51cbSPeter Avalos# I don't see why these might collide with anything else. 74327e51cbSPeter Avalos# 75327e51cbSPeter Avalos# Interactive Fiction related formats 76327e51cbSPeter Avalos# 77327e51cbSPeter Avalos>8 string IFRS \b, Blorb Interactive Fiction 78327e51cbSPeter Avalos>>24 string Exec with executable chunk 79327e51cbSPeter Avalos>8 string IFZS \b, Z-machine or Glulx saved game file (Quetzal) 80c30bd091SSascha Wildner!:mime application/x-blorb 81