]> git.saurik.com Git - apple/file_cmds.git/blob - file/magdir/riff
6bf127d41f0b4c3e9453ef0e15679adf8ebc1487
[apple/file_cmds.git] / file / magdir / riff
1
2 #------------------------------------------------------------------------------
3 # riff: file(1) magic for RIFF format
4 # See
5 #
6 # http://www.seanet.com/users/matts/riffmci/riffmci.htm
7 #
8 # and
9 #
10 # http://www.ora.com/centers/gff/formats/micriff/index.htm
11 #
12 # and
13 #
14 # http://www.jtauber.com/music/encoding/niff/spec/
15 #
16 0 string RIFF RIFF (little-endian) data
17 # RIFF Palette format
18 >8 string PAL \b, palette
19 >>16 leshort x \b, version %d
20 >>18 leshort x \b, %d entries
21 # RIFF Device Independent Bitmap format
22 >8 string RDIB \b, device-independent bitmap
23 >>16 string BM
24 >>>30 leshort 12 \b, OS/2 1.x format
25 >>>>34 leshort x \b, %d x
26 >>>>36 leshort x %d
27 >>>30 leshort 64 \b, OS/2 2.x format
28 >>>>34 leshort x \b, %d x
29 >>>>36 leshort x %d
30 >>>30 leshort 40 \b, Windows 3.x format
31 >>>>34 lelong x \b, %d x
32 >>>>38 lelong x %d x
33 >>>>44 leshort x %d
34 # RIFF MIDI format
35 >8 string RMID \b, MIDI
36 # RIFF Multimedia Movie File format
37 >8 string RMMP \b, multimedia movie
38 # Microsoft WAVE format (*.wav)
39 >8 string WAVE \b, WAVE audio
40 >>20 leshort 1 \b, Microsoft PCM
41 >>>34 leshort >0 \b, %d bit
42 >>22 leshort =1 \b, mono
43 >>22 leshort =2 \b, stereo
44 >>22 leshort >2 \b, %d channels
45 >>24 lelong >0 %d Hz
46 # AVI == Audio Video Interleave
47 >8 string AVI\ \b, AVI
48 # Animated Cursor format
49 >8 string ACON \b, animated cursor
50
51 #
52 # XXX - some of the below may only appear in little-endian form.
53 #
54 # Also "MV93" appears to be for one form of Macromedia Director
55 # files, and "GDMF" appears to be another multimedia format.
56 #
57 0 string RIFX RIFF (big-endian) data
58 # RIFF Palette format
59 >8 string PAL \b, palette
60 >>16 beshort x \b, version %d
61 >>18 beshort x \b, %d entries
62 # RIFF Device Independent Bitmap format
63 >8 string RDIB \b, device-independent bitmap
64 >>16 string BM
65 >>>30 beshort 12 \b, OS/2 1.x format
66 >>>>34 beshort x \b, %d x
67 >>>>36 beshort x %d
68 >>>30 beshort 64 \b, OS/2 2.x format
69 >>>>34 beshort x \b, %d x
70 >>>>36 beshort x %d
71 >>>30 beshort 40 \b, Windows 3.x format
72 >>>>34 belong x \b, %d x
73 >>>>38 belong x %d x
74 >>>>44 beshort x %d
75 # RIFF MIDI format
76 >8 string RMID \b, MIDI
77 # RIFF Multimedia Movie File format
78 >8 string RMMP \b, multimedia movie
79 # Microsoft WAVE format (*.wav)
80 >8 string WAVE \b, WAVE audio
81 >>20 leshort 1 \b, Microsoft PCM
82 >>>34 leshort >0 \b, %d bit
83 >>22 beshort =1 \b, mono
84 >>22 beshort =2 \b, stereo
85 >>22 beshort >2 \b, %d channels
86 >>24 belong >0 %d Hz
87 # AVI == Audio Video Interleave
88 >8 string AVI\ \b, AVI
89 # Animated Cursor format
90 >8 string ACON \b, animated cursor
91 # Notation Interchange File Format (big-endian only)
92 >8 string NIFF \b, Notation Interchange File Format
93