Import file-4.23.
[dragonfly.git] / contrib / file-4.12 / magic / Magdir / iff
1
2 #------------------------------------------------------------------------------
3 # iff:  file(1) magic for Interchange File Format (see also "audio" & "images")
4 #
5 # Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic
6 # Arts for file interchange.  It has also been used by Apple, SGI, and
7 # especially Commodore-Amiga.
8 #
9 # IFF files begin with an 8 byte FORM header, followed by a 4 character
10 # FORM type, which is followed by the first chunk in the FORM.
11
12 0       string          FORM            IFF data
13 #>4     belong          x               \b, FORM is %d bytes long
14 # audio formats
15 >8      string          AIFF            \b, AIFF audio
16 >8      string          AIFC            \b, AIFF-C compressed audio
17 >8      string          8SVX            \b, 8SVX 8-bit sampled sound voice
18 >8      string          SAMP            \b, SAMP sampled audio
19 >8      string          DTYP            \b, DTYP datatype description
20 >8      string          PTCH            \b, PTCH binary patch
21 # image formats
22 >8      string          ILBMBMHD        \b, ILBM interleaved image
23 >>20    beshort         x               \b, %d x
24 >>22    beshort         x               %d
25 >8      string          RGBN            \b, RGBN 12-bit RGB image
26 >8      string          RGB8            \b, RGB8 24-bit RGB image
27 >8      string          DR2D            \b, DR2D 2-D object
28 >8      string          TDDD            \b, TDDD 3-D rendering
29 # other formats
30 >8      string          FTXT            \b, FTXT formatted text
31 >8      string          CTLG            \b, CTLG message catalog
32 >8      string          PREF            \b, PREF preferences