003 File Manager
Current Path:
/usr/src/contrib/file/magic/Magdir
usr
/
src
/
contrib
/
file
/
magic
/
Magdir
/
📁
..
📄
acorn
(3.65 KB)
📄
adi
(425 B)
📄
adventure
(4.38 KB)
📄
algol68
(678 B)
📄
allegro
(402 B)
📄
alliant
(760 B)
📄
amanda
(385 B)
📄
amigaos
(2.95 KB)
📄
android
(6.73 KB)
📄
animation
(45.47 KB)
📄
aout
(1.69 KB)
📄
apache
(822 B)
📄
apl
(276 B)
📄
apple
(19.05 KB)
📄
application
(273 B)
📄
applix
(428 B)
📄
apt
(1.57 KB)
📄
archive
(55.73 KB)
📄
asf
(6.39 KB)
📄
assembler
(700 B)
📄
asterix
(584 B)
📄
att3b
(1.23 KB)
📄
audio
(34.93 KB)
📄
basis
(571 B)
📄
beetle
(289 B)
📄
ber
(2.34 KB)
📄
bflt
(414 B)
📄
bhl
(341 B)
📄
bioinformatics
(7.5 KB)
📄
biosig
(4.73 KB)
📄
blackberry
(282 B)
📄
blcr
(746 B)
📄
blender
(1.17 KB)
📄
blit
(884 B)
📄
bout
(349 B)
📄
bsdi
(1.13 KB)
📄
bsi
(263 B)
📄
btsnoop
(429 B)
📄
c-lang
(3.39 KB)
📄
c64
(1.67 KB)
📄
cad
(12.21 KB)
📄
cafebabe
(2.16 KB)
📄
cbor
(610 B)
📄
cddb
(386 B)
📄
chord
(577 B)
📄
cisco
(495 B)
📄
citrus
(227 B)
📄
clarion
(769 B)
📄
claris
(1.68 KB)
📄
clipper
(2.09 KB)
📄
clojure
(1.11 KB)
📄
coff
(2.86 KB)
📄
commands
(5.2 KB)
📄
communications
(853 B)
📄
compress
(13.44 KB)
📄
console
(36.72 KB)
📄
convex
(2.58 KB)
📄
coverage
(2.98 KB)
📄
cracklib
(531 B)
📄
ctags
(297 B)
📄
ctf
(823 B)
📄
cubemap
(403 B)
📄
cups
(1.75 KB)
📄
dact
(379 B)
📄
database
(22.4 KB)
📄
dataone
(1.72 KB)
📄
dbpf
(630 B)
📄
der
(3.31 KB)
📄
diamond
(509 B)
📄
dif
(1.4 KB)
📄
diff
(1.05 KB)
📄
digital
(1.8 KB)
📄
dolby
(2.32 KB)
📄
dump
(2.84 KB)
📄
dyadic
(2.49 KB)
📄
ebml
(350 B)
📄
edid
(377 B)
📄
editors
(1.01 KB)
📄
efi
(547 B)
📄
elf
(11 KB)
📄
encore
(725 B)
📄
epoc
(2.27 KB)
📄
erlang
(709 B)
📄
espressif
(1.92 KB)
📄
esri
(826 B)
📄
fcs
(516 B)
📄
filesystems
(91.93 KB)
📄
finger
(488 B)
📄
flash
(1.73 KB)
📄
flif
(1.08 KB)
📄
fonts
(13.77 KB)
📄
forth
(2.84 KB)
📄
fortran
(349 B)
📄
frame
(2.18 KB)
📄
freebsd
(4.79 KB)
📄
fsav
(4.13 KB)
📄
fusecompress
(430 B)
📄
games
(12.77 KB)
📄
gcc
(505 B)
📄
gconv
(344 B)
📄
geo
(4.04 KB)
📄
geos
(584 B)
📄
gimp
(2.7 KB)
📄
git
(321 B)
📄
glibc
(879 B)
📄
gnome
(2.44 KB)
📄
gnu
(5.98 KB)
📄
gnumeric
(411 B)
📄
gpt
(9.74 KB)
📄
gpu
(929 B)
📄
grace
(892 B)
📄
graphviz
(580 B)
📄
gringotts
(1.54 KB)
📄
guile
(471 B)
📄
hardware
(385 B)
📄
hitachi-sh
(1.09 KB)
📄
hp
(13.74 KB)
📄
human68k
(1004 B)
📄
ibm370
(1.59 KB)
📄
ibm6000
(1.22 KB)
📄
icc
(7.67 KB)
📄
iff
(2.67 KB)
📄
images
(80.45 KB)
📄
inform
(333 B)
📄
intel
(4.63 KB)
📄
interleaf
(333 B)
📄
island
(345 B)
📄
ispell
(2.8 KB)
📄
isz
(514 B)
📄
java
(1.54 KB)
📄
javascript
(984 B)
📄
jpeg
(3.42 KB)
📄
karma
(291 B)
📄
kde
(390 B)
📄
keepass
(692 B)
📄
kerberos
(1.43 KB)
📄
kicad
(2.21 KB)
📄
kml
(1.43 KB)
📄
lecter
(269 B)
📄
lex
(528 B)
📄
lif
(240 B)
📄
linux
(17.84 KB)
📄
lisp
(2.77 KB)
📄
llvm
(723 B)
📄
lua
(754 B)
📄
luks
(419 B)
📄
m4
(370 B)
📄
mach
(8.48 KB)
📄
macintosh
(16.58 KB)
📄
macos
(206 B)
📄
magic
(426 B)
📄
mail.news
(2.64 KB)
📄
make
(1.25 KB)
📄
map
(13.47 KB)
📄
maple
(1.86 KB)
📄
marc21
(1019 B)
📄
mathcad
(300 B)
📄
mathematica
(2.69 KB)
📄
matroska
(422 B)
📄
mcrypt
(1.21 KB)
📄
measure
(1013 B)
📄
mercurial
(424 B)
📄
metastore
(337 B)
📄
meteorological
(1.77 KB)
📄
microfocus
(741 B)
📄
mime
(280 B)
📄
mips
(2.97 KB)
📄
mirage
(258 B)
📄
misctools
(2.45 KB)
📄
mkid
(318 B)
📄
mlssa
(277 B)
📄
mmdf
(220 B)
📄
modem
(2.94 KB)
📄
modulefile
(421 B)
📄
motorola
(2.63 KB)
📄
mozilla
(1.41 KB)
📄
msdos
(57.99 KB)
📄
msooxml
(2.09 KB)
📄
msvc
(2.35 KB)
📄
msx
(9.34 KB)
📄
mup
(781 B)
📄
music
(546 B)
📄
nasa
(272 B)
📄
natinst
(1.05 KB)
📄
ncr
(1.69 KB)
📄
neko
(373 B)
📄
netbsd
(7.36 KB)
📄
netscape
(902 B)
📄
netware
(306 B)
📄
news
(555 B)
📄
nitpicker
(460 B)
📄
numpy
(401 B)
📄
oasis
(471 B)
📄
ocaml
(542 B)
📄
octave
(323 B)
📄
ole2compounddocs
(18.67 KB)
📄
olf
(3.14 KB)
📄
openfst
(616 B)
📄
opentimestamps
(704 B)
📄
os2
(1.83 KB)
📄
os400
(1.88 KB)
📄
os9
(2.55 KB)
📄
osf1
(254 B)
📄
palm
(5.16 KB)
📄
parix
(384 B)
📄
parrot
(764 B)
📄
pascal
(444 B)
📄
pbf
(444 B)
📄
pbm
(258 B)
📄
pc88
(726 B)
📄
pc98
(2.72 KB)
📄
pdf
(1.03 KB)
📄
pdp
(1.3 KB)
📄
perl
(3.52 KB)
📄
pgf
(1.38 KB)
📄
pgp
(15.43 KB)
📄
pkgadd
(297 B)
📄
plan9
(866 B)
📄
plus5
(550 B)
📄
pmem
(1.23 KB)
📄
polyml
(744 B)
📄
printer
(5.83 KB)
📄
project
(389 B)
📄
psdbms
(483 B)
📄
psl
(559 B)
📄
pulsar
(370 B)
📄
pwsafe
(669 B)
📄
pyramid
(426 B)
📄
python
(10.29 KB)
📄
qt
(745 B)
📄
revision
(2.36 KB)
📄
riff
(15.77 KB)
📄
rpi
(674 B)
📄
rpm
(1.09 KB)
📄
rpmsg
(349 B)
📄
rst
(385 B)
📄
rtf
(3.71 KB)
📄
ruby
(1.86 KB)
📄
sc
(245 B)
📄
sccs
(835 B)
📄
scientific
(3.56 KB)
📄
securitycerts
(366 B)
📄
selinux
(806 B)
📄
sendmail
(1.46 KB)
📄
sequent
(1.67 KB)
📄
sereal
(1.24 KB)
📄
sgi
(3.89 KB)
📄
sgml
(4.43 KB)
📄
sharc
(816 B)
📄
sinclair
(1007 B)
📄
sisu
(471 B)
📄
sketch
(258 B)
📄
smalltalk
(593 B)
📄
smile
(1.23 KB)
📄
sniffer
(13.39 KB)
📄
softquad
(1.45 KB)
📄
sosi
(1.65 KB)
📄
spec
(600 B)
📄
spectrum
(3.17 KB)
📄
sql
(5.15 KB)
📄
ssh
(1.4 KB)
📄
ssl
(929 B)
📄
sun
(4.69 KB)
📄
sylk
(1.23 KB)
📄
symbos
(915 B)
📄
sysex
(11.53 KB)
📄
tcl
(1005 B)
📄
teapot
(266 B)
📄
terminfo
(2.46 KB)
📄
tex
(4.55 KB)
📄
tgif
(262 B)
📄
ti-8x
(7.55 KB)
📄
timezone
(1.46 KB)
📄
tplink
(2.89 KB)
📄
troff
(1.22 KB)
📄
tuxedo
(306 B)
📄
typeset
(286 B)
📄
unicode
(771 B)
📄
unisig
(402 B)
📄
unknown
(1.34 KB)
📄
usd
(568 B)
📄
uterus
(468 B)
📄
uuencode
(1.09 KB)
📄
vacuum-cleaner
(2.06 KB)
📄
varied.out
(1.63 KB)
📄
varied.script
(1.49 KB)
📄
vax
(1001 B)
📄
vicar
(759 B)
📄
virtual
(11.69 KB)
📄
virtutech
(524 B)
📄
visx
(972 B)
📄
vms
(1.41 KB)
📄
vmware
(283 B)
📄
vorbis
(5.97 KB)
📄
vxl
(489 B)
📄
warc
(596 B)
📄
weak
(629 B)
📄
web
(371 B)
📄
webassembly
(633 B)
📄
windows
(37.27 KB)
📄
wireless
(295 B)
📄
wordprocessors
(10.51 KB)
📄
wsdl
(761 B)
📄
x68000
(743 B)
📄
xdelta
(548 B)
📄
xenix
(2.98 KB)
📄
xilinx
(1.26 KB)
📄
xo65
(987 B)
📄
xwindows
(1.04 KB)
📄
yara
(461 B)
📄
zfs
(2.37 KB)
📄
zilog
(451 B)
📄
zip
(3.23 KB)
📄
zyxel
(613 B)
Editing: riff
#------------------------------------------------------------------------------ # $File: riff,v 1.35 2020/06/05 17:15:03 christos Exp $ # riff: file(1) magic for RIFF format # See # # https://www.seanet.com/users/matts/riffmci/riffmci.htm # http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/Docs/riffmci.pdf # # audio format tag. Assume limits: max 1024 bit, 128 channels, 1 MHz 0 name riff-wave >0 leshort 1 \b, Microsoft PCM >>14 leshort >0 >>>14 leshort <1024 \b, %d bit >0 leshort 2 \b, Microsoft ADPCM >0 leshort 6 \b, ITU G.711 A-law >0 leshort 7 \b, ITU G.711 mu-law >0 leshort 8 \b, Microsoft DTS >0 leshort 17 \b, IMA ADPCM >0 leshort 20 \b, ITU G.723 ADPCM (Yamaha) >0 leshort 49 \b, GSM 6.10 >0 leshort 64 \b, ITU G.721 ADPCM >0 leshort 80 \b, MPEG >0 leshort 85 \b, MPEG Layer 3 >0 leshort 0x2001 \b, DTS >2 leshort =1 \b, mono >2 leshort =2 \b, stereo >2 leshort >2 >>2 leshort <128 \b, %d channels >4 lelong >0 >>4 lelong <1000000 %d Hz # try to find "fmt " 0 name riff-walk >0 string fmt\x20 >>4 lelong <0x80 >>>8 use riff-wave >0 string LIST >>&(4.l+4) use riff-walk >0 string DISP >>&(4.l+4) use riff-walk >0 string bext >>&(4.l+4) use riff-walk >0 string Fake >>&(4.l+4) use riff-walk >0 string fact >>&(4.l+4) use riff-walk >0 string VP8 >>11 byte 0x9d >>>12 byte 0x01 >>>>13 byte 0x2a \b, VP8 encoding >>>>>14 leshort&0x3fff x \b, %d >>>>>16 leshort&0x3fff x \bx%d, Scaling: >>>>>14 leshort&0xc000 0x0000 \b [none] >>>>>14 leshort&0xc000 0x1000 \b [5/4] >>>>>14 leshort&0xc000 0x2000 \b [5/3] >>>>>14 leshort&0xc000 0x3000 \b [2] >>>>>14 leshort&0xc000 0x0000 \bx[none] >>>>>14 leshort&0xc000 0x1000 \bx[5/4] >>>>>14 leshort&0xc000 0x2000 \bx[5/3] >>>>>14 leshort&0xc000 0x3000 \bx[2] >>>>>15 byte&0x80 =0x00 \b, YUV color >>>>>15 byte&0x80 =0x80 \b, bad color specification >>>>>15 byte&0x40 =0x40 \b, no clamping required >>>>>15 byte&0x40 =0x00 \b, decoders should clamp #>0 string x we got %s #>>&(4.l+4) use riff-walk # AVI section extended by Patrik Radman <patrik+file-magic@iki.fi> # 0 string RIFF RIFF (little-endian) data # RIFF Palette format # Update: Joerg Jenderek # URL: https://en.wikipedia.org/wiki/Resource_Interchange_File_Format # Reference: https://worms2d.info/Palette_file >8 string PAL\ \b, palette !:mime application/x-riff # color palette by Microsoft Corporation !:ext pal # file size = chunk size + 8 in most cases >>4 ulelong+8 x \b, %u bytes # Extended PAL Format >>12 string plth \b, extended # Simple PAL Format >>12 string data # data chunk size = color entries * 4 + 4 + sometimes extra (4) appended bytes >>>16 ulelong x \b, data size %u # palVersion is always 0x0300 #>>>20 leshort x \b, version 0x%4.4x # palNumEntries specifies the number of palette color entries >>>22 uleshort x \b, %u entries # after palPalEntry sized (number of color entries * 4 ) vector >>>(22.s*4) ubequad x # jump relative 22 ( 8 + 16) bytes forward points after end of file or to # appended extra bytes like in http://safecolours.rigdenage.com/set(ms).zip/Protan(MS).pal >>>>&16 ubelong x \b, extra bytes >>>>>&-4 ubelong >0 0x%8.8x # RIFF Device Independent Bitmap format >8 string RDIB \b, device-independent bitmap >>16 string BM >>>30 leshort 12 \b, OS/2 1.x format >>>>34 leshort x \b, %d x >>>>36 leshort x %d >>>30 leshort 64 \b, OS/2 2.x format >>>>34 leshort x \b, %d x >>>>36 leshort x %d >>>30 leshort 40 \b, Windows 3.x format >>>>34 lelong x \b, %d x >>>>38 lelong x %d x >>>>44 leshort x %d # RIFF MIDI format >8 string RMID \b, MIDI # RIFF Multimedia Movie File format >8 string RMMP \b, multimedia movie # RIFF wrapper for MP3 >8 string RMP3 \b, MPEG Layer 3 audio # Microsoft WAVE format (*.wav) >8 string WAVE \b, WAVE audio !:mime audio/x-wav >>12 string >\0 >>>12 use riff-walk # Update: Joerg Jenderek # lower case for Corel Draw version 8 Bidi >8 string/c cdr # skip Corel CCX Clipart >>8 string !CDRXcont # Corel Draw Picture >>>0 use corel-draw # URL: http://fileformats.archiveteam.org/wiki/CCX_(Corel) # Reference: http://mark0.net/download/triddefs_xml.7z/defs/c/ccx-corel.trid.xml >>8 string =CDRXcont \b, Corel Clipart !:mime application/x-corel-ccx !:ext ccx # 3rd chunk data {Corel\040Binary\040Meta\040File} #>>>20 string x \b, 3rd '%-s' >>>4 ulelong+8 x \b, %u bytes # From: Joerg Jenderek # URL: https://en.wikipedia.org/wiki/CorelDRAW # Reference: http://fileformats.archiveteam.org/wiki/CorelDRAW # Picture templates created by newer software start with RIFF type CDT >8 string CDT >>0 use corel-draw # Picture templates with version 4.4 >8 string CDST >>0 use corel-draw # pattern created by newer software start with RIFF type PAT >8 string PAT >>0 use corel-draw >8 string NUNDROOT \b, Steinberg CuBase # AVI == Audio Video Interleave >8 string AVI\040 \b, AVI !:mime video/x-msvideo >>12 string LIST >>>20 string hdrlavih >>>>&36 lelong x \b, %u x >>>>&40 lelong x %u, >>>>&4 lelong >1000000 <1 fps, >>>>&4 lelong 1000000 1.00 fps, >>>>&4 lelong 500000 2.00 fps, >>>>&4 lelong 333333 3.00 fps, >>>>&4 lelong 250000 4.00 fps, >>>>&4 lelong 200000 5.00 fps, >>>>&4 lelong 166667 6.00 fps, >>>>&4 lelong 142857 7.00 fps, >>>>&4 lelong 125000 8.00 fps, >>>>&4 lelong 111111 9.00 fps, >>>>&4 lelong 100000 10.00 fps, # ]9.9,10.1[ >>>>&4 lelong <101010 >>>>>&-4 lelong >99010 >>>>>>&-4 lelong !100000 ~10 fps, >>>>&4 lelong 83333 12.00 fps, # ]11.9,12.1[ >>>>&4 lelong <84034 >>>>>&-4 lelong >82645 >>>>>>&-4 lelong !83333 ~12 fps, >>>>&4 lelong 66667 15.00 fps, # ]14.9,15.1[ >>>>&4 lelong <67114 >>>>>&-4 lelong >66225 >>>>>>&-4 lelong !66667 ~15 fps, >>>>&4 lelong 50000 20.00 fps, >>>>&4 lelong 41708 23.98 fps, >>>>&4 lelong 41667 24.00 fps, # ]23.9,24.1[ >>>>&4 lelong <41841 >>>>>&-4 lelong >41494 >>>>>>&-4 lelong !41708 >>>>>>>&-4 lelong !41667 ~24 fps, >>>>&4 lelong 40000 25.00 fps, # ]24.9,25.1[ >>>>&4 lelong <40161 >>>>>&-4 lelong >39841 >>>>>>&-4 lelong !40000 ~25 fps, >>>>&4 lelong 33367 29.97 fps, >>>>&4 lelong 33333 30.00 fps, # ]29.9,30.1[ >>>>&4 lelong <33445 >>>>>&-4 lelong >33223 >>>>>>&-4 lelong !33367 >>>>>>>&-4 lelong !33333 ~30 fps, >>>>&4 lelong <32224 >30 fps, ##>>>>&4 lelong x (%lu) ##>>>>&20 lelong x %lu frames, # Note: The tests below assume that the AVI has 1 or 2 streams, # "vids" optionally followed by "auds". # (Should cover 99.9% of all AVIs.) # assuming avih length = 56 >>>88 string LIST >>>>96 string strlstrh >>>>>108 string vids video: >>>>>>&0 lelong 0 uncompressed # skip past vids strh >>>>>>(104.l+108) string strf >>>>>>>(104.l+132) lelong 1 RLE 8bpp >>>>>>>(104.l+132) string/c cvid Cinepak >>>>>>>(104.l+132) string/c i263 Intel I.263 >>>>>>>(104.l+132) string/c iv32 Indeo 3.2 >>>>>>>(104.l+132) string/c iv41 Indeo 4.1 >>>>>>>(104.l+132) string/c iv50 Indeo 5.0 >>>>>>>(104.l+132) string/c mp42 Microsoft MPEG-4 v2 >>>>>>>(104.l+132) string/c mp43 Microsoft MPEG-4 v3 >>>>>>>(104.l+132) string/c fmp4 FFMpeg MPEG-4 >>>>>>>(104.l+132) string/c mjpg Motion JPEG >>>>>>>(104.l+132) string/c div3 DivX 3 >>>>>>>>112 string/c div3 Low-Motion >>>>>>>>112 string/c div4 Fast-Motion >>>>>>>(104.l+132) string/c divx DivX 4 >>>>>>>(104.l+132) string/c dx50 DivX 5 >>>>>>>(104.l+132) string/c xvid XviD >>>>>>>(104.l+132) string/c h264 H.264 >>>>>>>(104.l+132) string/c wmv3 Windows Media Video 9 >>>>>>>(104.l+132) string/c h264 X.264 or H.264 >>>>>>>(104.l+132) lelong 0 ##>>>>>>>(104.l+132) string x (%.4s) # skip past first (video) LIST >>>>(92.l+96) string LIST >>>>>(92.l+104) string strlstrh >>>>>>(92.l+116) string auds \b, audio: # auds strh length = 56: >>>>>>>(92.l+172) string strf >>>>>>>>(92.l+180) leshort 0x0001 uncompressed PCM >>>>>>>>(92.l+180) leshort 0x0002 ADPCM >>>>>>>>(92.l+180) leshort 0x0006 aLaw >>>>>>>>(92.l+180) leshort 0x0007 uLaw >>>>>>>>(92.l+180) leshort 0x0050 MPEG-1 Layer 1 or 2 >>>>>>>>(92.l+180) leshort 0x0055 MPEG-1 Layer 3 >>>>>>>>(92.l+180) leshort 0x2000 Dolby AC3 >>>>>>>>(92.l+180) leshort 0x0161 DivX ##>>>>>>>>(92.l+180) leshort x (0x%.4x) >>>>>>>>(92.l+182) leshort 1 (mono, >>>>>>>>(92.l+182) leshort 2 (stereo, >>>>>>>>(92.l+182) leshort >2 (%d channels, >>>>>>>>(92.l+184) lelong x %d Hz) # auds strh length = 64: >>>>>>>(92.l+180) string strf >>>>>>>>(92.l+188) leshort 0x0001 uncompressed PCM >>>>>>>>(92.l+188) leshort 0x0002 ADPCM >>>>>>>>(92.l+188) leshort 0x0055 MPEG-1 Layer 3 >>>>>>>>(92.l+188) leshort 0x2000 Dolby AC3 >>>>>>>>(92.l+188) leshort 0x0161 DivX ##>>>>>>>>(92.l+188) leshort x (0x%.4x) >>>>>>>>(92.l+190) leshort 1 (mono, >>>>>>>>(92.l+190) leshort 2 (stereo, >>>>>>>>(92.l+190) leshort >2 (%d channels, >>>>>>>>(92.l+192) lelong x %d Hz) # Animated Cursor format >8 string ACON \b, animated cursor # SoundFont 2 <mpruett@sgi.com> >8 string sfbk SoundFont/Bank # MPEG-1 wrapped in a RIFF, apparently >8 string CDXA \b, wrapped MPEG-1 (CDXA) >8 string 4XMV \b, 4X Movie file # AMV-type AVI file: https://wiki.multimedia.cx/index.php?title=AMV >8 string AMV\040 \b, AMV >8 string WEBP \b, Web/P image !:mime image/webp >>12 use riff-walk # From: Joerg Jenderek # URL: https://en.wikipedia.org/wiki/CorelDRAW # Reference: http://fileformats.archiveteam.org/wiki/CorelDRAW # Note: Since version 3 CorelDraw Pictures are RIFF based # but data chunks remain proprietary. # Since version 14 til 15 packed as "content/riffData.cdr" and # since 16 "content/root.dat" in ZIP container # TODO: distinguish templates with version 12.5 from Designer illustration 12 # display information of RIFF based Corel Draw pictures, templates and patterns 0 name corel-draw # display second chunk for debugging #>8 string x \b, [8]=%.8s >0 string x \b, Corel Draw #!:mime image/x-coreldraw !:mime application/vnd.corel-draw # used by newer pictures templates >>8 string CDT # used by templates with newer versions since 16 >>>12 string =fver Picture template (root.dat) !:ext dat # used by templates with older versions with vrsn tag >>>12 string !fver # used by templates with older versions 14-15 >>>>11 string >E Picture template (riffData.cdr) !:ext cdr # used by templates with older versions 11-13 >>>>11 string <F Picture template !:ext cdt/cdrt # used by older templates with version 4.4 >>8 string CDST Picture template !:ext cdt # used by templates with version 12.5 >>8 string DESC Picture template !:ext cdt # used by newer patterns with version 22 >>8 string PAT Pattern !:ext dat # remaining older templates, patterns, drawings >>8 default x # pattern with old version 4.y >>>26 ulelong =0x0000206C Pattern !:ext pat # pattern with newer versions >>>26 ulelong =0x00000D2C Pattern !:ext pat # remaining older templates or pictures >>>26 default x # used by older versions 5 - 15 >>>>12 string =vrsn # 4th chunk size unequal 282Ch only found for CDR >>>>>26 ulelong !0x0000282c Picture !:ext cdr >>>>>26 default x Picture or template !:ext cdr/cdt # used by newer versions since 16 >>>>12 string =fver Picture (root.dat) !:ext dat # version marked by 1 ASCII char: space~3, ... , F~15, ... , N~22, ... R~22 template >11 string x \b, version >11 string >\040 '%-.1s' >0 use corel-version >4 ulelong+8 x \b, %u bytes # # display numeric version of RIFF based Corel after 3rd RIFF tag 0 name corel-version # for debugging purpose; vrsn for short content; fver for 16 byte size #>12 string x \b, TAG "%-4.4s" # 1st data chunk length 2 implies short content version >16 ulelong 2 # vrsn chunk short content interpreted by MajorVersion * 100 + MinorVersion >>20 uleshort/100 x %u >>20 uleshort%100 >0 \b.%u # for debugging purpose display next chunk like: DISP LIST #>>22 string x \b, 4th "%-4.4s" #>>26 ulelong x \b, 4th SIZE 0x%x # for debugging purpose display 5th chunk like: LIST DISP ccmm osfp #>>(26.l+30) string x \b, 5th "%-4.4s" # 1st data chunk length 10h implies 16 byte content with version info >16 ulelong 0x10 >>34 ubyte x %u >>>33 ubyte >0 \b.%u # # XXX - some of the below may only appear in little-endian form. # # Also "MV93" appears to be for one form of Macromedia Director # files, and "GDMF" appears to be another multimedia format. # 0 string RIFX RIFF (big-endian) data # RIFF Palette format >8 string PAL \b, palette >>16 beshort x \b, version %d >>18 beshort x \b, %d entries # RIFF Device Independent Bitmap format >8 string RDIB \b, device-independent bitmap >>16 string BM >>>30 beshort 12 \b, OS/2 1.x format >>>>34 beshort x \b, %d x >>>>36 beshort x %d >>>30 beshort 64 \b, OS/2 2.x format >>>>34 beshort x \b, %d x >>>>36 beshort x %d >>>30 beshort 40 \b, Windows 3.x format >>>>34 belong x \b, %d x >>>>38 belong x %d x >>>>44 beshort x %d # RIFF MIDI format >8 string RMID \b, MIDI # RIFF Multimedia Movie File format >8 string RMMP \b, multimedia movie # Microsoft WAVE format (*.wav) >8 string WAVE \b, WAVE audio >>20 leshort 1 \b, Microsoft PCM >>>34 leshort >0 \b, %d bit >>22 beshort =1 \b, mono >>22 beshort =2 \b, stereo >>22 beshort >2 \b, %d channels >>24 belong >0 %d Hz # Corel Draw Picture big endian not tested by real examples #>8 string CDRA \b, Corel Draw Picture #>8 string CDR6 \b, Corel Draw Picture, version 6 >8 string CDR >>0 use \^corel-draw # AVI == Audio Video Interleave >8 string AVI\040 \b, AVI # Animated Cursor format >8 string ACON \b, animated cursor # Notation Interchange File Format (big-endian only) >8 string NIFF \b, Notation Interchange File Format # SoundFont 2 <mpruett@sgi.com> >8 string sfbk SoundFont/Bank #------------------------------------------------------------------------------ # Sony Wave64 # see http://www.vcs.de/fileadmin/user_upload/MBS/PDF/Whitepaper/Informations_about_Sony_Wave64.pdf # 128 bit RIFF-GUID { 66666972-912E-11CF-A5D6-28DB04C10000 } in little-endian 0 string riff\x2E\x91\xCF\x11\xA5\xD6\x28\xDB\x04\xC1\x00\x00 Sony Wave64 RIFF data # 128 bit + total file size (64 bits) so 24 bytes # then WAVE-GUID { 65766177-ACF3-11D3-8CD1-00C04F8EDB8A } >24 string wave\xF3\xAC\xD3\x11\x8C\xD1\x00\xC0\x4F\x8E\xDB\x8A \b, WAVE 64 audio !:mime audio/x-w64 # FMT-GUID { 20746D66-ACF3-11D3-8CD1-00C04F8EDB8A } >>40 search/256 fmt\x20\xF3\xAC\xD3\x11\x8C\xD1\x00\xC0\x4F\x8E\xDB\x8A \b >>>&10 leshort =1 \b, mono >>>&10 leshort =2 \b, stereo >>>&10 leshort >2 \b, %d channels >>>&12 lelong >0 %d Hz #------------------------------------------------------------------------------ # MBWF/RF64 # see EBU TECH 3306 https://tech.ebu.ch/docs/tech/tech3306-2009.pdf 0 string RF64\xff\xff\xff\xffWAVEds64 MBWF/RF64 audio !:mime audio/x-wav >40 search/256 fmt\x20 \b >>&6 leshort =1 \b, mono >>&6 leshort =2 \b, stereo >>&6 leshort >2 \b, %d channels >>&8 lelong >0 %d Hz
Upload File
Create Folder