riff (267897) | riff (275698) |
---|---|
1 2#------------------------------------------------------------------------------ | 1 2#------------------------------------------------------------------------------ |
3# $File: riff,v 1.27 2014/04/30 21:41:02 christos Exp $ | 3# $File: riff,v 1.30 2014/09/23 17:02:12 christos Exp $ |
4# riff: file(1) magic for RIFF format 5# See 6# 7# http://www.seanet.com/users/matts/riffmci/riffmci.htm 8# 9 10# audio format tag. Assume limits: max 1024 bit, 128 channels, 1 MHz 110 name riff-wave --- 28 unchanged lines hidden (view full) --- 40>0 string DISP 41>>&(4.l+4) use riff-walk 42>0 string bext 43>>&(4.l+4) use riff-walk 44>0 string Fake 45>>&(4.l+4) use riff-walk 46>0 string fact 47>>&(4.l+4) use riff-walk | 4# riff: file(1) magic for RIFF format 5# See 6# 7# http://www.seanet.com/users/matts/riffmci/riffmci.htm 8# 9 10# audio format tag. Assume limits: max 1024 bit, 128 channels, 1 MHz 110 name riff-wave --- 28 unchanged lines hidden (view full) --- 40>0 string DISP 41>>&(4.l+4) use riff-walk 42>0 string bext 43>>&(4.l+4) use riff-walk 44>0 string Fake 45>>&(4.l+4) use riff-walk 46>0 string fact 47>>&(4.l+4) use riff-walk |
48>0 string VP8 49>>11 byte 0x9d 50>>>12 byte 0x01 51>>>>13 byte 0x2a \b, VP8 encoding 52>>>>>14 leshort&0x3fff x \b, %d 53>>>>>16 leshort&0x3fff x \bx%d, Scaling: 54>>>>>14 leshort&0xc000 0x0000 \b [none] 55>>>>>14 leshort&0xc000 0x1000 \b [5/4] 56>>>>>14 leshort&0xc000 0x2000 \b [5/3] 57>>>>>14 leshort&0xc000 0x3000 \b [2] 58>>>>>14 leshort&0xc000 0x0000 \bx[none] 59>>>>>14 leshort&0xc000 0x1000 \bx[5/4] 60>>>>>14 leshort&0xc000 0x2000 \bx[5/3] 61>>>>>14 leshort&0xc000 0x3000 \bx[2] 62>>>>>15 byte&0x80 =0x00 \b, YUV color 63>>>>>15 byte&0x80 =0x80 \b, bad color specification 64>>>>>15 byte&0x40 =0x40 \b, no clamping required 65>>>>>15 byte&0x40 =0x00 \b, decoders should clamp 66#>0 string x we got %s 67#>>&(4.l+4) use riff-walk |
|
48 49# AVI section extended by Patrik Radman <patrik+file-magic@iki.fi> 50# 510 string RIFF RIFF (little-endian) data 52# RIFF Palette format 53>8 string PAL \b, palette 54>>16 leshort x \b, version %d 55>>18 leshort x \b, %d entries --- 148 unchanged lines hidden (view full) --- 204>8 string ACON \b, animated cursor 205# SoundFont 2 <mpruett@sgi.com> 206>8 string sfbk SoundFont/Bank 207# MPEG-1 wrapped in a RIFF, apparently 208>8 string CDXA \b, wrapped MPEG-1 (CDXA) 209>8 string 4XMV \b, 4X Movie file 210# AMV-type AVI file: http://wiki.multimedia.cx/index.php?title=AMV 211>8 string AMV\040 \b, AMV | 68 69# AVI section extended by Patrik Radman <patrik+file-magic@iki.fi> 70# 710 string RIFF RIFF (little-endian) data 72# RIFF Palette format 73>8 string PAL \b, palette 74>>16 leshort x \b, version %d 75>>18 leshort x \b, %d entries --- 148 unchanged lines hidden (view full) --- 224>8 string ACON \b, animated cursor 225# SoundFont 2 <mpruett@sgi.com> 226>8 string sfbk SoundFont/Bank 227# MPEG-1 wrapped in a RIFF, apparently 228>8 string CDXA \b, wrapped MPEG-1 (CDXA) 229>8 string 4XMV \b, 4X Movie file 230# AMV-type AVI file: http://wiki.multimedia.cx/index.php?title=AMV 231>8 string AMV\040 \b, AMV |
232>8 string WEBP \b, Web/P image 233>>12 use riff-walk |
|
212 213# 214# XXX - some of the below may only appear in little-endian form. 215# 216# Also "MV93" appears to be for one form of Macromedia Director 217# files, and "GDMF" appears to be another multimedia format. 218# 2190 string RIFX RIFF (big-endian) data --- 59 unchanged lines hidden (view full) --- 279# see EBU TECH 3306 http://tech.ebu.ch/docs/tech/tech3306-2009.pdf 2800 string RF64\xff\xff\xff\xffWAVEds64 MBWF/RF64 audio 281!:mime audio/x-wav 282>40 search/256 fmt\x20 \b 283>>&6 leshort =1 \b, mono 284>>&6 leshort =2 \b, stereo 285>>&6 leshort >2 \b, %d channels 286>>&8 lelong >0 %d Hz | 234 235# 236# XXX - some of the below may only appear in little-endian form. 237# 238# Also "MV93" appears to be for one form of Macromedia Director 239# files, and "GDMF" appears to be another multimedia format. 240# 2410 string RIFX RIFF (big-endian) data --- 59 unchanged lines hidden (view full) --- 301# see EBU TECH 3306 http://tech.ebu.ch/docs/tech/tech3306-2009.pdf 3020 string RF64\xff\xff\xff\xffWAVEds64 MBWF/RF64 audio 303!:mime audio/x-wav 304>40 search/256 fmt\x20 \b 305>>&6 leshort =1 \b, mono 306>>&6 leshort =2 \b, stereo 307>>&6 leshort >2 \b, %d channels 308>>&8 lelong >0 %d Hz |
287 | |