images 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513
  1. #------------------------------------------------------------------------------
  2. # $File: images,v 1.131 2018/02/16 15:44:28 christos Exp $
  3. # images: file(1) magic for image formats (see also "iff", and "c-lang" for
  4. # XPM bitmaps)
  5. #
  6. # originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
  7. # additions by janl@ifi.uio.no as well as others. Jan also suggested
  8. # merging several one- and two-line files into here.
  9. #
  10. # little magic: PCX (first byte is 0x0a)
  11. # Targa - matches `povray', `ppmtotga' and `xv' outputs
  12. # by Philippe De Muyter <phdm@macqel.be>
  13. # URL: http://justsolve.archiveteam.org/wiki/TGA
  14. # Reference: http://www.dca.fee.unicamp.br/~martino/disciplinas/ea978/tgaffs.pdf
  15. # Update: Joerg Jenderek
  16. # at 2, byte ImgType must be 1, 2, 3, 9, 10 or 11
  17. # ,32 or 33 (both not observed)
  18. # at 1, byte CoMapType must be 1 if ImgType is 1 or 9, 0 otherwise
  19. # or theoretically 2-128 reserved for use by Truevision or 128-255 may be used for developer applications
  20. # at 3, leshort Index is 0 for povray, ppmtotga and xv outputs
  21. # `xv' recognizes only a subset of the following (RGB with pixelsize = 24)
  22. # `tgatoppm' recognizes a superset (Index may be anything)
  23. #
  24. # test of Color Map Type 0~no 1~color map
  25. # and Image Type 1 2 3 9 10 11 32 33
  26. # and Color Map Entry Size 0 15 16 24 32
  27. 0 ubequad&0x00FeC400000000C0 0
  28. # skip more garbage like *.iso by looking for positive image type
  29. >2 ubyte >0
  30. # skip some compiled terminfo like xterm+tmux by looking for image type less equal 33
  31. >>2 ubyte <34
  32. # skip arches.3200 , Finder.Root , Slp.1 by looking for low pixel depth 1 8 15 16 24 32
  33. >>>16 ubyte 1
  34. >>>>0 use tga-image
  35. >>>16 ubyte 8
  36. >>>>0 use tga-image
  37. >>>16 ubyte 15
  38. >>>>0 use tga-image
  39. >>>16 ubyte 16
  40. >>>>0 use tga-image
  41. >>>16 ubyte 24
  42. >>>>0 use tga-image
  43. >>>16 ubyte 32
  44. >>>>0 use tga-image
  45. # display tga bitmap image information
  46. 0 name tga-image
  47. >2 ubyte <34 Targa image data
  48. !:mime image/x-tga
  49. !:apple ????TPIC
  50. # normal extension .tga but some Truevision products used others:
  51. # tpic (Apple),icb (Image Capture Board),vda (Video Display Adapter),vst (NuVista),win (UNSURE about that)
  52. !:ext tga/tpic/icb/vda/vst
  53. # image type 1 2 3 9 10 11 32 33
  54. >2 ubyte&0xF7 1 - Map
  55. >2 ubyte&0xF7 2 - RGB
  56. # alpha channel
  57. >>17 ubyte&0x0F >0 \bA
  58. >2 ubyte&0xF7 3 - Mono
  59. # type not found, but by http://www.fileformat.info/format/tga/corion.htm
  60. # Compressed color-mapped data, using Huffman, Delta, and runlength encoding
  61. >2 ubyte 32 - Color
  62. # Compressed color-mapped data, using Huffman, Delta, and RLE. 4-pass quadtree- type process
  63. >2 ubyte 33 - Color
  64. # Color Map Type 0~no 1~color map
  65. >1 ubyte 1 (
  66. # first color map entry, 0 normal
  67. >>3 uleshort >0 \b%d-
  68. # color map length 0 2 1dh 3bh d9h 100h
  69. >>5 uleshort x \b%d)
  70. # 8~run length encoding bit
  71. >2 ubyte&0x08 8 - RLE
  72. # gimp can create big pictures!
  73. >12 uleshort >0 %d x
  74. >12 uleshort =0 65536 x
  75. # image height. 0 interpreted as 65536
  76. >14 uleshort >0 %d
  77. >14 uleshort =0 65536
  78. # Image Pixel depth 1 8 15 16 24 32
  79. >16 ubyte x x %d
  80. # X origin of image. 0 normal
  81. >8 uleshort >0 +%d
  82. # Y origin of image. 0 normal; positive for top
  83. >10 uleshort >0 +%d
  84. # Image descriptor: bits 3-0 give the alpha channel depth, bits 5-4 give direction
  85. >17 ubyte&0x0F >0 - %d-bit alpha
  86. # bits 5-4 give direction. normal bottom left
  87. >17 ubyte &0x20 - top
  88. #>17 ubyte ^0x20 - bottom
  89. >17 ubyte &0x10 - right
  90. #>17 ubyte ^0x10 - left
  91. # some info say other bits 6-7 should be zero
  92. # but data storage interleave by http://www.fileformat.info/format/tga/corion.htm
  93. # 00 - no interleave;01 - even/odd interleave; 10 - four way interleave; 11 - reserved
  94. #>17 ubyte&0xC0 0x00 - no interleave
  95. >17 ubyte&0xC0 0x40 - interleave
  96. >17 ubyte&0xC0 0x80 - four way interleave
  97. >17 ubyte&0xC0 0xC0 - reserved
  98. # positive length implies identification field
  99. >0 ubyte >0
  100. >>18 string x "%s"
  101. # last 18 bytes of newer tga file footer signature
  102. >18 search/4261301/s TRUEVISION-XFILE.\0
  103. # extension area offset if not 0
  104. >>&-8 ulelong >0
  105. # length of the extension area. normal 495 for version 2.0
  106. >>>(&-4.l) uleshort 0x01EF
  107. # AuthorName[41]
  108. >>>>&0 string >\0 - author "%-.40s"
  109. # Comment[324]=4 * 80 null terminated
  110. >>>>&41 string >\0 - comment "%-.80s"
  111. # date
  112. >>>>&365 ubequad&0xffffFFFFffff0000 !0
  113. # Day
  114. >>>>>&-6 uleshort x %d
  115. # Month
  116. >>>>>&-8 uleshort x \b-%d
  117. # Year
  118. >>>>>&-4 uleshort x \b-%d
  119. # time
  120. >>>>&371 ubequad&0xffffFFFFffff0000 !0
  121. # hour
  122. >>>>>&-8 uleshort x %d
  123. # minutes
  124. >>>>>&-6 uleshort x \b:%.2d
  125. # second
  126. >>>>>&-4 uleshort x \b:%.2d
  127. # JobName[41]
  128. >>>>&377 string >\0 - job "%-.40s"
  129. # JobHour Jobminute Jobsecond
  130. >>>>&418 ubequad&0xffffFFFFffff0000 !0
  131. >>>>>&-8 uleshort x %d
  132. >>>>>&-6 uleshort x \b:%.2d
  133. >>>>>&-4 uleshort x \b:%.2d
  134. # SoftwareId[41]
  135. >>>>&424 string >\0 - %-.40s
  136. # SoftwareVersionNumber
  137. >>>>&424 ubyte >0
  138. >>>>>&40 uleshort/100 x %d
  139. >>>>>&40 uleshort%100 x \b.%d
  140. # VersionLetter
  141. >>>>>&42 ubyte >0x20 \b%c
  142. # KeyColor
  143. >>>>&468 ulelong >0 - keycolor 0x%8.8x
  144. # Denominator of Pixel ratio. 0~no pixel aspect
  145. >>>>&474 uleshort >0
  146. # Numerator
  147. >>>>>&-4 uleshort >0 - aspect %d
  148. >>>>>&-2 uleshort x \b/%d
  149. # Denominator of Gamma ratio. 0~no Gamma value
  150. >>>>&478 uleshort >0
  151. # Numerator
  152. >>>>>&-4 uleshort >0 - gamma %d
  153. >>>>>&-2 uleshort x \b/%d
  154. # ColorOffset
  155. #>>>>&480 ulelong x - col offset 0x%8.8x
  156. # StampOffset
  157. #>>>>&484 ulelong x - stamp offset 0x%8.8x
  158. # ScanOffset
  159. #>>>>&488 ulelong x - scan offset 0x%8.8x
  160. # AttributesType
  161. #>>>>&492 ubyte x - Attributes 0x%x
  162. ## EndOfTGA
  163. # PBMPLUS images
  164. # The next byte following the magic is always whitespace.
  165. # strength is changed to try these patterns before "x86 boot sector"
  166. 0 name netpbm
  167. >3 regex/s =[0-9]{1,50}\ [0-9]{1,50} Netpbm image data
  168. >>&0 regex =[0-9]{1,50} \b, size = %s x
  169. >>>&0 regex =[0-9]{1,50} \b %s
  170. 0 search/1 P1
  171. >0 regex/4 P1[\040\t\f\r\n]
  172. >>0 use netpbm
  173. >>>0 string x \b, bitmap
  174. !:strength + 45
  175. !:mime image/x-portable-bitmap
  176. 0 search/1 P2
  177. >0 regex/4 P2[\040\t\f\r\n]
  178. >>0 use netpbm
  179. >>>0 string x \b, greymap
  180. !:strength + 45
  181. !:mime image/x-portable-greymap
  182. 0 search/1 P3
  183. >0 regex/4 P3[\040\t\f\r\n]
  184. >>0 use netpbm
  185. >>>0 string x \b, pixmap
  186. !:strength + 45
  187. !:mime image/x-portable-pixmap
  188. 0 string P4
  189. >0 regex/4 P4[\040\t\f\r\n]
  190. >>0 use netpbm
  191. >>>0 string x \b, rawbits, bitmap
  192. !:strength + 45
  193. !:mime image/x-portable-bitmap
  194. 0 string P5
  195. >0 regex/4 P5[\040\t\f\r\n]
  196. >>0 use netpbm
  197. >>>0 string x \b, rawbits, greymap
  198. !:strength + 45
  199. !:mime image/x-portable-greymap
  200. 0 string P6
  201. >0 regex/4 P6[\040\t\f\r\n]
  202. >>0 use netpbm
  203. >>>0 string x \b, rawbits, pixmap
  204. !:strength + 45
  205. !:mime image/x-portable-pixmap
  206. 0 string P7 Netpbm PAM image file
  207. !:mime image/x-portable-pixmap
  208. # From: bryanh@giraffe-data.com (Bryan Henderson)
  209. 0 string \117\072 Solitaire Image Recorder format
  210. >4 string \013 MGI Type 11
  211. >4 string \021 MGI Type 17
  212. 0 string .MDA MicroDesign data
  213. >21 byte 48 version 2
  214. >21 byte 51 version 3
  215. 0 string .MDP MicroDesign page data
  216. >21 byte 48 version 2
  217. >21 byte 51 version 3
  218. # NIFF (Navy Interchange File Format, a modification of TIFF) images
  219. # [GRR: this *must* go before TIFF]
  220. 0 string IIN1 NIFF image data
  221. !:mime image/x-niff
  222. # Canon RAW version 1 (CRW) files are a type of Canon Image File Format
  223. # (CIFF) file. These are apparently all little-endian.
  224. # From: Adam Buchbinder <adam.buchbinder@gmail.com>
  225. # URL: http://www.sno.phy.queensu.ca/~phil/exiftool/canon_raw.html
  226. 0 string II\x1a\0\0\0HEAPCCDR Canon CIFF raw image data
  227. !:mime image/x-canon-crw
  228. >16 leshort x \b, version %d.
  229. >14 leshort x \b%d
  230. # Canon RAW version 2 (CR2) files are a kind of TIFF with an extra magic
  231. # number. Put this above the TIFF test to make sure we detect them.
  232. # These are apparently all little-endian.
  233. # From: Adam Buchbinder <adam.buchbinder@gmail.com>
  234. # URL: http://libopenraw.freedesktop.org/wiki/Canon_CR2
  235. 0 string II\x2a\0\x10\0\0\0CR Canon CR2 raw image data
  236. !:mime image/x-canon-cr2
  237. >10 byte x \b, version %d.
  238. >11 byte x \b%d
  239. # Tag Image File Format, from Daniel Quinlan (quinlan@yggdrasil.com)
  240. # The second word of TIFF files is the TIFF version number, 42, which has
  241. # never changed. The TIFF specification recommends testing for it.
  242. 0 string MM\x00\x2a TIFF image data, big-endian
  243. !:mime image/tiff
  244. >(4.L) use \^tiff_ifd
  245. 0 string II\x2a\x00 TIFF image data, little-endian
  246. !:mime image/tiff
  247. >(4.l) use tiff_ifd
  248. 0 name tiff_ifd
  249. >0 leshort x \b, direntries=%d
  250. >2 use tiff_entry
  251. 0 name tiff_entry
  252. # NewSubFileType
  253. >0 leshort 0xfe
  254. >>12 use tiff_entry
  255. >0 leshort 0x100
  256. >>4 lelong 1
  257. >>>12 use tiff_entry
  258. >>>8 leshort x \b, width=%d
  259. >0 leshort 0x101
  260. >>4 lelong 1
  261. >>>8 leshort x \b, height=%d
  262. >>>12 use tiff_entry
  263. >0 leshort 0x102
  264. >>8 leshort x \b, bps=%d
  265. >>12 use tiff_entry
  266. >0 leshort 0x103
  267. >>4 lelong 1 \b, compression=
  268. >>>8 leshort 1 \bnone
  269. >>>8 leshort 2 \bhuffman
  270. >>>8 leshort 3 \bbi-level group 3
  271. >>>8 leshort 4 \bbi-level group 4
  272. >>>8 leshort 5 \bLZW
  273. >>>8 leshort 6 \bJPEG (old)
  274. >>>8 leshort 7 \bJPEG
  275. >>>8 leshort 8 \bdeflate
  276. >>>8 leshort 9 \bJBIG, ITU-T T.85
  277. >>>8 leshort 0xa \bJBIG, ITU-T T.43
  278. >>>8 leshort 0x7ffe \bNeXT RLE 2-bit
  279. >>>8 leshort 0x8005 \bPackBits (Macintosh RLE)
  280. >>>8 leshort 0x8029 \bThunderscan RLE
  281. >>>8 leshort 0x807f \bRasterPadding (CT or MP)
  282. >>>8 leshort 0x8080 \bRLE (Line Work)
  283. >>>8 leshort 0x8081 \bRLE (High-Res Cont-Tone)
  284. >>>8 leshort 0x8082 \bRLE (Binary Line Work)
  285. >>>8 leshort 0x80b2 \bDeflate (PKZIP)
  286. >>>8 leshort 0x80b3 \bKodak DCS
  287. >>>8 leshort 0x8765 \bJBIG
  288. >>>8 leshort 0x8798 \bJPEG2000
  289. >>>8 leshort 0x8799 \bNikon NEF Compressed
  290. >>>8 default x
  291. >>>>8 leshort x \b(unknown 0x%x)
  292. >>>12 use tiff_entry
  293. >0 leshort 0x106 \b, PhotometricIntepretation=
  294. >>8 clear x
  295. >>8 leshort 0 \bWhiteIsZero
  296. >>8 leshort 1 \bBlackIsZero
  297. >>8 leshort 2 \bRGB
  298. >>8 leshort 3 \bRGB Palette
  299. >>8 leshort 4 \bTransparency Mask
  300. >>8 leshort 5 \bCMYK
  301. >>8 leshort 6 \bYCbCr
  302. >>8 leshort 8 \bCIELab
  303. >>8 default x
  304. >>>8 leshort x \b(unknown=0x%x)
  305. >>12 use tiff_entry
  306. # FillOrder
  307. >0 leshort 0x10a
  308. >>4 lelong 1
  309. >>>12 use tiff_entry
  310. # DocumentName
  311. >0 leshort 0x10d
  312. >>(8.l) string x \b, name=%s
  313. >>>12 use tiff_entry
  314. # ImageDescription
  315. >0 leshort 0x10e
  316. >>(8.l) string x \b, description=%s
  317. >>>12 use tiff_entry
  318. # Make
  319. >0 leshort 0x10f
  320. >>(8.l) string x \b, manufacturer=%s
  321. >>>12 use tiff_entry
  322. # Model
  323. >0 leshort 0x110
  324. >>(8.l) string x \b, model=%s
  325. >>>12 use tiff_entry
  326. # StripOffsets
  327. >0 leshort 0x111
  328. >>12 use tiff_entry
  329. # Orientation
  330. >0 leshort 0x112 \b, orientation=
  331. >>8 leshort 1 \bupper-left
  332. >>8 leshort 3 \blower-right
  333. >>8 leshort 6 \bupper-right
  334. >>8 leshort 8 \blower-left
  335. >>8 leshort 9 \bundefined
  336. >>8 default x
  337. >>>8 leshort x \b[*%d*]
  338. >>12 use tiff_entry
  339. # XResolution
  340. >0 leshort 0x11a
  341. >>8 lelong x \b, xresolution=%d
  342. >>12 use tiff_entry
  343. # YResolution
  344. >0 leshort 0x11b
  345. >>8 lelong x \b, yresolution=%d
  346. >>12 use tiff_entry
  347. # ResolutionUnit
  348. >0 leshort 0x128
  349. >>8 leshort x \b, resolutionunit=%d
  350. >>12 use tiff_entry
  351. # Software
  352. >0 leshort 0x131
  353. >>(8.l) string x \b, software=%s
  354. >>12 use tiff_entry
  355. # Datetime
  356. >0 leshort 0x132
  357. >>(8.l) string x \b, datetime=%s
  358. >>12 use tiff_entry
  359. # HostComputer
  360. >0 leshort 0x13c
  361. >>(8.l) string x \b, hostcomputer=%s
  362. >>12 use tiff_entry
  363. # WhitePoint
  364. >0 leshort 0x13e
  365. >>12 use tiff_entry
  366. # PrimaryChromaticities
  367. >0 leshort 0x13f
  368. >>12 use tiff_entry
  369. # YCbCrCoefficients
  370. >0 leshort 0x211
  371. >>12 use tiff_entry
  372. # YCbCrPositioning
  373. >0 leshort 0x213
  374. >>12 use tiff_entry
  375. # ReferenceBlackWhite
  376. >0 leshort 0x214
  377. >>12 use tiff_entry
  378. # Copyright
  379. >0 leshort 0x8298
  380. >>(8.l) string x \b, copyright=%s
  381. >>12 use tiff_entry
  382. # ExifOffset
  383. >0 leshort 0x8769
  384. >>12 use tiff_entry
  385. # GPS IFD
  386. >0 leshort 0x8825 \b, GPS-Data
  387. >>12 use tiff_entry
  388. #>0 leshort x \b, unknown=0x%x
  389. #>>12 use tiff_entry
  390. 0 string MM\x00\x2b Big TIFF image data, big-endian
  391. !:mime image/tiff
  392. 0 string II\x2b\x00 Big TIFF image data, little-endian
  393. !:mime image/tiff
  394. # PNG [Portable Network Graphics, or "PNG's Not GIF"] images
  395. # (Greg Roelofs, newt@uchicago.edu)
  396. # (Albert Cahalan, acahalan@cs.uml.edu)
  397. #
  398. # 137 P N G \r \n ^Z \n [4-byte length] I H D R [HEAD data] [HEAD crc] ...
  399. #
  400. # IHDR parser
  401. 0 name png-ihdr
  402. >0 belong x \b, %d x
  403. >4 belong x %d,
  404. >8 byte x %d-bit
  405. >9 byte 0 grayscale,
  406. >9 byte 2 \b/color RGB,
  407. >9 byte 3 colormap,
  408. >9 byte 4 gray+alpha,
  409. >9 byte 6 \b/color RGBA,
  410. #>10 byte 0 deflate/32K,
  411. >12 byte 0 non-interlaced
  412. >12 byte 1 interlaced
  413. # Standard PNG image.
  414. 0 string \x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0DIHDR PNG image data
  415. !:mime image/png
  416. !:strength +10
  417. >16 use png-ihdr
  418. # Apple CgBI PNG image.
  419. 0 string \x89PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x04CgBI
  420. >24 string \x00\x00\x00\x0DIHDR PNG image data (CgBI)
  421. !:mime image/png
  422. !:strength +10
  423. >>32 use png-ihdr
  424. # possible GIF replacements; none yet released!
  425. # (Greg Roelofs, newt@uchicago.edu)
  426. #
  427. # GRR 950115: this was mine ("Zip GIF"):
  428. 0 string GIF94z ZIF image (GIF+deflate alpha)
  429. !:mime image/x-unknown
  430. #
  431. # GRR 950115: this is Jeremy Wohl's Free Graphics Format (better):
  432. #
  433. 0 string FGF95a FGF image (GIF+deflate beta)
  434. !:mime image/x-unknown
  435. #
  436. # GRR 950115: this is Thomas Boutell's Portable Bitmap Format proposal
  437. # (best; not yet implemented):
  438. #
  439. 0 string PBF PBF image (deflate compression)
  440. !:mime image/x-unknown
  441. # GIF
  442. 0 string GIF8 GIF image data
  443. !:mime image/gif
  444. !:apple 8BIMGIFf
  445. >4 string 7a \b, version 8%s,
  446. >4 string 9a \b, version 8%s,
  447. >6 leshort >0 %d x
  448. >8 leshort >0 %d
  449. #>10 byte &0x80 color mapped,
  450. #>10 byte&0x07 =0x00 2 colors
  451. #>10 byte&0x07 =0x01 4 colors
  452. #>10 byte&0x07 =0x02 8 colors
  453. #>10 byte&0x07 =0x03 16 colors
  454. #>10 byte&0x07 =0x04 32 colors
  455. #>10 byte&0x07 =0x05 64 colors
  456. #>10 byte&0x07 =0x06 128 colors
  457. #>10 byte&0x07 =0x07 256 colors
  458. # ITC (CMU WM) raster files. It is essentially a byte-reversed Sun raster,
  459. # 1 plane, no encoding.
  460. 0 string \361\0\100\273 CMU window manager raster image data
  461. >4 lelong >0 %d x
  462. >8 lelong >0 %d,
  463. >12 lelong >0 %d-bit
  464. # Magick Image File Format
  465. 0 string id=ImageMagick MIFF image data
  466. # Artisan
  467. 0 long 1123028772 Artisan image data
  468. >4 long 1 \b, rectangular 24-bit
  469. >4 long 2 \b, rectangular 8-bit with colormap
  470. >4 long 3 \b, rectangular 32-bit (24-bit with matte)
  471. # FIG (Facility for Interactive Generation of figures), an object-based format
  472. 0 search/1 #FIG FIG image text
  473. >5 string x \b, version %.3s
  474. # PHIGS
  475. 0 string ARF_BEGARF PHIGS clear text archive
  476. 0 string @(#)SunPHIGS SunPHIGS
  477. # version number follows, in the form m.n
  478. >40 string SunBin binary
  479. >32 string archive archive
  480. # GKS (Graphics Kernel System)
  481. 0 string GKSM GKS Metafile
  482. >24 string SunGKS \b, SunGKS
  483. # CGM image files
  484. 0 string BEGMF clear text Computer Graphics Metafile
  485. # MGR bitmaps (Michael Haardt, u31b3hs@pool.informatik.rwth-aachen.de)
  486. 0 string yz MGR bitmap, modern format, 8-bit aligned
  487. 0 string zz MGR bitmap, old format, 1-bit deep, 16-bit aligned
  488. 0 string xz MGR bitmap, old format, 1-bit deep, 32-bit aligned
  489. 0 string yx MGR bitmap, modern format, squeezed
  490. # Fuzzy Bitmap (FBM) images
  491. 0 string %bitmap\0 FBM image data
  492. >30 long 0x31 \b, mono
  493. >30 long 0x33 \b, color
  494. # facsimile data
  495. 1 string PC\ Research,\ Inc group 3 fax data
  496. >29 byte 0 \b, normal resolution (204x98 DPI)
  497. >29 byte 1 \b, fine resolution (204x196 DPI)
  498. # From: Herbert Rosmanith <herp@wildsau.idv.uni.linz.at>
  499. 0 string Sfff structured fax file
  500. # From: Joerg Jenderek <joerg.jen.der.ek@gmx.net>
  501. # most files with the extension .EPA and some with .BMP
  502. 0 string \x11\x06 Award BIOS Logo, 136 x 84
  503. !:mime image/x-award-bioslogo
  504. 0 string \x11\x09 Award BIOS Logo, 136 x 126
  505. !:mime image/x-award-bioslogo
  506. #0 string \x07\x1f BIOS Logo corrupted?
  507. # http://www.blackfiveservices.co.uk/awbmtools.shtml
  508. # http://biosgfx.narod.ru/v3/
  509. # http://biosgfx.narod.ru/abr-2/
  510. 0 string AWBM
  511. >4 leshort <1981 Award BIOS bitmap
  512. !:mime image/x-award-bmp
  513. # image width is a multiple of 4
  514. >>4 leshort&0x0003 0
  515. >>>4 leshort x \b, %d
  516. >>>6 leshort x x %d
  517. >>4 leshort&0x0003 >0 \b,
  518. >>>4 leshort&0x0003 =1
  519. >>>>4 leshort x %d+3
  520. >>>4 leshort&0x0003 =2
  521. >>>>4 leshort x %d+2
  522. >>>4 leshort&0x0003 =3
  523. >>>>4 leshort x %d+1
  524. >>>6 leshort x x %d
  525. # at offset 8 starts imagedata followed by "RGB " marker
  526. # PC bitmaps (OS/2, Windows BMP files) (Greg Roelofs, newt@uchicago.edu)
  527. # http://en.wikipedia.org/wiki/BMP_file_format#DIB_header_.\
  528. # 28bitmap_information_header.29
  529. 0 string BM
  530. >14 leshort 12 PC bitmap, OS/2 1.x format
  531. !:mime image/x-ms-bmp
  532. >>18 leshort x \b, %d x
  533. >>20 leshort x %d
  534. >14 leshort 64 PC bitmap, OS/2 2.x format
  535. !:mime image/x-ms-bmp
  536. >>18 leshort x \b, %d x
  537. >>20 leshort x %d
  538. >14 leshort 40 PC bitmap, Windows 3.x format
  539. !:mime image/x-ms-bmp
  540. >>18 lelong x \b, %d x
  541. >>22 lelong x %d x
  542. >>28 leshort x %d
  543. >14 leshort 124 PC bitmap, Windows 98/2000 and newer format
  544. !:mime image/x-ms-bmp
  545. >>18 lelong x \b, %d x
  546. >>22 lelong x %d x
  547. >>28 leshort x %d
  548. >14 leshort 108 PC bitmap, Windows 95/NT4 and newer format
  549. !:mime image/x-ms-bmp
  550. >>18 lelong x \b, %d x
  551. >>22 lelong x %d x
  552. >>28 leshort x %d
  553. >14 leshort 128 PC bitmap, Windows NT/2000 format
  554. !:mime image/x-ms-bmp
  555. >>18 lelong x \b, %d x
  556. >>22 lelong x %d x
  557. >>28 leshort x %d
  558. # Too simple - MPi
  559. #0 string IC PC icon data
  560. #0 string PI PC pointer image data
  561. #0 string CI PC color icon data
  562. #0 string CP PC color pointer image data
  563. # Conflicts with other entries [BABYL]
  564. #0 string BA PC bitmap array data
  565. # XPM icons (Greg Roelofs, newt@uchicago.edu)
  566. 0 search/1 /*\ XPM\ */ X pixmap image text
  567. !:mime image/x-xpmi
  568. # Utah Raster Toolkit RLE images (janl@ifi.uio.no)
  569. 0 leshort 0xcc52 RLE image data,
  570. >6 leshort x %d x
  571. >8 leshort x %d
  572. >2 leshort >0 \b, lower left corner: %d
  573. >4 leshort >0 \b, lower right corner: %d
  574. >10 byte&0x1 =0x1 \b, clear first
  575. >10 byte&0x2 =0x2 \b, no background
  576. >10 byte&0x4 =0x4 \b, alpha channel
  577. >10 byte&0x8 =0x8 \b, comment
  578. >11 byte >0 \b, %d color channels
  579. >12 byte >0 \b, %d bits per pixel
  580. >13 byte >0 \b, %d color map channels
  581. # image file format (Robert Potter, potter@cs.rochester.edu)
  582. 0 string Imagefile\ version- iff image data
  583. # this adds the whole header (inc. version number), informative but longish
  584. >10 string >\0 %s
  585. # Sun raster images, from Daniel Quinlan (quinlan@yggdrasil.com)
  586. 0 belong 0x59a66a95 Sun raster image data
  587. >4 belong >0 \b, %d x
  588. >8 belong >0 %d,
  589. >12 belong >0 %d-bit,
  590. #>16 belong >0 %d bytes long,
  591. >20 belong 0 old format,
  592. #>20 belong 1 standard,
  593. >20 belong 2 compressed,
  594. >20 belong 3 RGB,
  595. >20 belong 4 TIFF,
  596. >20 belong 5 IFF,
  597. >20 belong 0xffff reserved for testing,
  598. >24 belong 0 no colormap
  599. >24 belong 1 RGB colormap
  600. >24 belong 2 raw colormap
  601. #>28 belong >0 colormap is %d bytes long
  602. # SGI image file format, from Daniel Quinlan (quinlan@yggdrasil.com)
  603. #
  604. # See
  605. # http://reality.sgi.com/grafica/sgiimage.html
  606. #
  607. 0 beshort 474 SGI image data
  608. #>2 byte 0 \b, verbatim
  609. >2 byte 1 \b, RLE
  610. #>3 byte 1 \b, normal precision
  611. >3 byte 2 \b, high precision
  612. >4 beshort x \b, %d-D
  613. >6 beshort x \b, %d x
  614. >8 beshort x %d
  615. >10 beshort x \b, %d channel
  616. >10 beshort !1 \bs
  617. >80 string >0 \b, "%s"
  618. 0 string IT01 FIT image data
  619. >4 belong x \b, %d x
  620. >8 belong x %d x
  621. >12 belong x %d
  622. #
  623. 0 string IT02 FIT image data
  624. >4 belong x \b, %d x
  625. >8 belong x %d x
  626. >12 belong x %d
  627. #
  628. 2048 string PCD_IPI Kodak Photo CD image pack file
  629. >0xe02 byte&0x03 0x00 , landscape mode
  630. >0xe02 byte&0x03 0x01 , portrait mode
  631. >0xe02 byte&0x03 0x02 , landscape mode
  632. >0xe02 byte&0x03 0x03 , portrait mode
  633. 0 string PCD_OPA Kodak Photo CD overview pack file
  634. # FITS format. Jeff Uphoff <juphoff@tarsier.cv.nrao.edu>
  635. # FITS is the Flexible Image Transport System, the de facto standard for
  636. # data and image transfer, storage, etc., for the astronomical community.
  637. # (FITS floating point formats are big-endian.)
  638. 0 string SIMPLE\ \ = FITS image data
  639. >109 string 8 \b, 8-bit, character or unsigned binary integer
  640. >108 string 16 \b, 16-bit, two's complement binary integer
  641. >107 string \ 32 \b, 32-bit, two's complement binary integer
  642. >107 string -32 \b, 32-bit, floating point, single precision
  643. >107 string -64 \b, 64-bit, floating point, double precision
  644. # other images
  645. 0 string This\ is\ a\ BitMap\ file Lisp Machine bit-array-file
  646. # From SunOS 5.5.1 "/etc/magic" - appeared right before Sun raster image
  647. # stuff.
  648. #
  649. 0 beshort 0x1010 PEX Binary Archive
  650. # DICOM medical imaging data
  651. # URL: https://en.wikipedia.org/wiki/DICOM#Data_format
  652. # Note: "dcm" is the official file name extension
  653. # XnView mention also "dc3" and "acr" as file name extension
  654. 128 string DICM DICOM medical imaging data
  655. !:mime application/dicom
  656. !:ext dcm/dicom/dic
  657. # XWD - X Window Dump file.
  658. # As described in /usr/X11R6/include/X11/XWDFile.h
  659. # used by the xwd program.
  660. # Bradford Castalia, idaeim, 1/01
  661. # updated by Adam Buchbinder, 2/09
  662. # The following assumes version 7 of the format; the first long is the length
  663. # of the header, which is at least 25 4-byte longs, and the one at offset 8
  664. # is a constant which is always either 1 or 2. Offset 12 is the pixmap depth,
  665. # which is a maximum of 32.
  666. 0 belong >100
  667. >8 belong <3
  668. >>12 belong <33
  669. >>>4 belong 7 XWD X Window Dump image data
  670. !:mime image/x-xwindowdump
  671. >>>>100 string >\0 \b, "%s"
  672. >>>>16 belong x \b, %dx
  673. >>>>20 belong x \b%dx
  674. >>>>12 belong x \b%d
  675. # PDS - Planetary Data System
  676. # These files use Parameter Value Language in the header section.
  677. # Unfortunately, there is no certain magic, but the following
  678. # strings have been found to be most likely.
  679. 0 string NJPL1I00 PDS (JPL) image data
  680. 2 string NJPL1I PDS (JPL) image data
  681. 0 string CCSD3ZF PDS (CCSD) image data
  682. 2 string CCSD3Z PDS (CCSD) image data
  683. 0 string PDS_ PDS image data
  684. 0 string LBLSIZE= PDS (VICAR) image data
  685. # pM8x: ATARI STAD compressed bitmap format
  686. #
  687. # from Oskar Schirmer <schirmer@scara.com> Feb 2, 2001
  688. # p M 8 5/6 xx yy zz data...
  689. # Atari ST STAD bitmap is always 640x400, bytewise runlength compressed.
  690. # bytes either run horizontally (pM85) or vertically (pM86). yy is the
  691. # most frequent byte, xx and zz are runlength escape codes, where xx is
  692. # used for runs of yy.
  693. #
  694. 0 string pM85 Atari ST STAD bitmap image data (hor)
  695. >5 byte 0x00 (white background)
  696. >5 byte 0xFF (black background)
  697. 0 string pM86 Atari ST STAD bitmap image data (vert)
  698. >5 byte 0x00 (white background)
  699. >5 byte 0xFF (black background)
  700. # From: Alex Myczko <alex@aiei.ch>
  701. # http://www.atarimax.com/jindroush.atari.org/afmtatr.html
  702. 0 leshort 0x0296 Atari ATR image
  703. # XXX:
  704. # This is bad magic 0x5249 == 'RI' conflicts with RIFF and other
  705. # magic.
  706. # SGI RICE image file <mpruett@sgi.com>
  707. #0 beshort 0x5249 RICE image
  708. #>2 beshort x v%d
  709. #>4 beshort x (%d x
  710. #>6 beshort x %d)
  711. #>8 beshort 0 8 bit
  712. #>8 beshort 1 10 bit
  713. #>8 beshort 2 12 bit
  714. #>8 beshort 3 13 bit
  715. #>10 beshort 0 4:2:2
  716. #>10 beshort 1 4:2:2:4
  717. #>10 beshort 2 4:4:4
  718. #>10 beshort 3 4:4:4:4
  719. #>12 beshort 1 RGB
  720. #>12 beshort 2 CCIR601
  721. #>12 beshort 3 RP175
  722. #>12 beshort 4 YUV
  723. # PCX image files
  724. # From: Dan Fandrich <dan@coneharvesters.com>
  725. # updated by Joerg Jenderek at Feb 2013 by http://de.wikipedia.org/wiki/PCX
  726. # http://web.archive.org/web/20100206055706/http://www.qzx.com/pc-gpe/pcx.txt
  727. # GRR: original test was still too general as it catches xbase examples T5.DBT,T6.DBT with 0xa000000
  728. # test for bytes 0x0a,version byte (0,2,3,4,5),compression byte flag(0,1), bit depth (>0) of PCX or T5.DBT,T6.DBT
  729. 0 ubelong&0xffF8fe00 0x0a000000
  730. # for PCX bit depth > 0
  731. >3 ubyte >0
  732. # test for valid versions
  733. >>1 ubyte <6
  734. >>>1 ubyte !1 PCX
  735. !:mime image/x-pcx
  736. #!:mime image/pcx
  737. >>>>1 ubyte 0 ver. 2.5 image data
  738. >>>>1 ubyte 2 ver. 2.8 image data, with palette
  739. >>>>1 ubyte 3 ver. 2.8 image data, without palette
  740. >>>>1 ubyte 4 for Windows image data
  741. >>>>1 ubyte 5 ver. 3.0 image data
  742. >>>>4 uleshort x bounding box [%d,
  743. >>>>6 uleshort x %d] -
  744. >>>>8 uleshort x [%d,
  745. >>>>10 uleshort x %d],
  746. >>>>65 ubyte >1 %d planes each of
  747. >>>>3 ubyte x %d-bit
  748. >>>>68 byte 1 colour,
  749. >>>>68 byte 2 grayscale,
  750. # this should not happen
  751. >>>>68 default x image,
  752. >>>>12 leshort >0 %d x
  753. >>>>>14 uleshort x %d dpi,
  754. >>>>2 byte 0 uncompressed
  755. >>>>2 byte 1 RLE compressed
  756. # Adobe Photoshop
  757. # From: Asbjoern Sloth Toennesen <asbjorn@lila.io>
  758. 0 string 8BPS Adobe Photoshop Image
  759. !:mime image/vnd.adobe.photoshop
  760. >4 beshort 2 (PSB)
  761. >18 belong x \b, %d x
  762. >14 belong x %d,
  763. >24 beshort 0 bitmap
  764. >24 beshort 1 grayscale
  765. >>12 beshort 2 with alpha
  766. >24 beshort 2 indexed
  767. >24 beshort 3 RGB
  768. >>12 beshort 4 \bA
  769. >24 beshort 4 CMYK
  770. >>12 beshort 5 \bA
  771. >24 beshort 7 multichannel
  772. >24 beshort 8 duotone
  773. >24 beshort 9 lab
  774. >12 beshort > 1
  775. >>12 beshort x \b, %dx
  776. >12 beshort 1 \b,
  777. >22 beshort x %d-bit channel
  778. >12 beshort > 1 \bs
  779. # XV thumbnail indicator (ThMO)
  780. 0 string P7\ 332 XV thumbnail image data
  781. # NITF is defined by United States MIL-STD-2500A
  782. 0 string NITF National Imagery Transmission Format
  783. >25 string >\0 dated %.14s
  784. # GEM Image: Version 1, Headerlen 8 (Wolfram Kleff)
  785. # Format variations from: Bernd Nuernberger <bernd.nuernberger@web.de>
  786. # Update: Joerg Jenderek
  787. # See http://fileformats.archiveteam.org/wiki/GEM_Raster
  788. # For variations, also see:
  789. # http://www.seasip.info/Gem/ff_img.html (Ventura)
  790. # http://www.atari-wiki.com/?title=IMG_file (XIMG, STTT)
  791. # http://www.fileformat.info/format/gemraster/spec/index.htm (XIMG, STTT)
  792. # http://sylvana.net/1stguide/1STGUIDE.ENG (TIMG)
  793. 0 beshort 0x0001
  794. # header_size
  795. >2 beshort 0x0008
  796. >>0 use gem_info
  797. >2 beshort 0x0009
  798. >>0 use gem_info
  799. # no example for NOSIG
  800. >2 beshort 24
  801. >>0 use gem_info
  802. # no example for HYPERPAINT
  803. >2 beshort 25
  804. >>0 use gem_info
  805. 16 string XIMG\0
  806. >0 use gem_info
  807. # no example
  808. 16 string STTT\0\x10
  809. >0 use gem_info
  810. # no example or description
  811. 16 string TIMG\0
  812. >0 use gem_info
  813. 0 name gem_info
  814. # version is 2 for some XIMG and 1 for all others
  815. >0 beshort <0x0003 GEM
  816. # http://www.snowstone.org.uk/riscos/mimeman/mimemap.txt
  817. !:mime image/x-gem
  818. # header_size 24 25 27 59 779 words for colored bitmaps
  819. >>2 beshort >9
  820. >>>16 string STTT\0\x10 STTT
  821. >>>16 string TIMG\0 TIMG
  822. # HYPERPAINT or NOSIG variant
  823. >>>16 string \0\x80
  824. >>>>2 beshort =24 NOSIG
  825. >>>>2 beshort !24 HYPERPAINT
  826. # NOSIG or XIMG variant
  827. >>>16 default x
  828. >>>>16 string !XIMG\0 NOSIG
  829. >>16 string =XIMG\0 XIMG Image data
  830. !:ext img/ximg
  831. # to avoid Warning: Current entry does not yet have a description for adding a EXTENSION type
  832. >>16 string !XIMG\0 Image data
  833. !:ext img
  834. # header_size is 9 for Ventura files and 8 for other GEM Paint files
  835. >>2 beshort 9 (Ventura)
  836. #>>2 beshort 8 (Paint)
  837. >>12 beshort x %d x
  838. >>14 beshort x %d,
  839. # 1 4 8
  840. >>4 beshort x %d planes,
  841. # in tenths of a millimetre
  842. >>8 beshort x %d x
  843. >>10 beshort x %d pixelsize
  844. # pattern_size 1-8. 2 for GEM Paint
  845. >>6 beshort !2 \b, pattern size %d
  846. # GEM Metafile (Wolfram Kleff)
  847. 0 lelong 0x0018FFFF GEM Metafile data
  848. >4 leshort x version %d
  849. #
  850. # SMJPEG. A custom Motion JPEG format used by Loki Entertainment
  851. # Software Torbjorn Andersson <d91tan@Update.UU.SE>.
  852. #
  853. 0 string \0\nSMJPEG SMJPEG
  854. >8 belong x %d.x data
  855. # According to the specification you could find any number of _TXT
  856. # headers here, but I can't think of any way of handling that. None of
  857. # the SMJPEG files I tried it on used this feature. Even if such a
  858. # file is encountered the output should still be reasonable.
  859. >16 string _SND \b,
  860. >>24 beshort >0 %d Hz
  861. >>26 byte 8 8-bit
  862. >>26 byte 16 16-bit
  863. >>28 string NONE uncompressed
  864. # >>28 string APCM ADPCM compressed
  865. >>27 byte 1 mono
  866. >>28 byte 2 stereo
  867. # Help! Isn't there any way to avoid writing this part twice?
  868. >>32 string _VID \b,
  869. # >>>48 string JFIF JPEG
  870. >>>40 belong >0 %d frames
  871. >>>44 beshort >0 (%d x
  872. >>>46 beshort >0 %d)
  873. >16 string _VID \b,
  874. # >>32 string JFIF JPEG
  875. >>24 belong >0 %d frames
  876. >>28 beshort >0 (%d x
  877. >>30 beshort >0 %d)
  878. 0 string Paint\ Shop\ Pro\ Image\ File Paint Shop Pro Image File
  879. # "thumbnail file" (icon)
  880. # descended from "xv", but in use by other applications as well (Wolfram Kleff)
  881. 0 string P7\ 332 XV "thumbnail file" (icon) data
  882. # taken from fkiss: (<yav@mte.biglobe.ne.jp> ?)
  883. 0 string KiSS KISS/GS
  884. >4 byte 16 color
  885. >>5 byte x %d bit
  886. >>8 leshort x %d colors
  887. >>10 leshort x %d groups
  888. >4 byte 32 cell
  889. >>5 byte x %d bit
  890. >>8 leshort x %d x
  891. >>10 leshort x %d
  892. >>12 leshort x +%d
  893. >>14 leshort x +%d
  894. # Webshots (www.webshots.com), by John Harrison
  895. 0 string C\253\221g\230\0\0\0 Webshots Desktop .wbz file
  896. # Hercules DASD image files
  897. # From Jan Jaeger <jj@septa.nl>
  898. 0 string CKD_P370 Hercules CKD DASD image file
  899. >8 long x \b, %d heads per cylinder
  900. >12 long x \b, track size %d bytes
  901. >16 byte x \b, device type 33%2.2X
  902. 0 string CKD_C370 Hercules compressed CKD DASD image file
  903. >8 long x \b, %d heads per cylinder
  904. >12 long x \b, track size %d bytes
  905. >16 byte x \b, device type 33%2.2X
  906. 0 string CKD_S370 Hercules CKD DASD shadow file
  907. >8 long x \b, %d heads per cylinder
  908. >12 long x \b, track size %d bytes
  909. >16 byte x \b, device type 33%2.2X
  910. # Squeak images and programs - etoffi@softhome.net
  911. 0 string \146\031\0\0 Squeak image data
  912. 0 search/1 'From\040Squeak Squeak program text
  913. # partimage: file(1) magic for PartImage files (experimental, incomplete)
  914. # Author: Hans-Joachim Baader <hjb@pro-linux.de>
  915. 0 string PaRtImAgE-VoLuMe PartImage
  916. >0x0020 string 0.6.1 file version %s
  917. >>0x0060 lelong >-1 volume %d
  918. #>>0x0064 8 byte identifier
  919. #>>0x007c reserved
  920. >>0x0200 string >\0 type %s
  921. >>0x1400 string >\0 device %s,
  922. >>0x1600 string >\0 original filename %s,
  923. # Some fields omitted
  924. >>0x2744 lelong 0 not compressed
  925. >>0x2744 lelong 1 gzip compressed
  926. >>0x2744 lelong 2 bzip2 compressed
  927. >>0x2744 lelong >2 compressed with unknown algorithm
  928. >0x0020 string >0.6.1 file version %s
  929. >0x0020 string <0.6.1 file version %s
  930. # DCX is multi-page PCX, using a simple header of up to 1024
  931. # offsets for the respective PCX components.
  932. # From: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
  933. 0 lelong 987654321 DCX multi-page PCX image data
  934. # Simon Walton <simonw@matteworld.com>
  935. # Kodak Cineon format for scanned negatives
  936. # http://www.kodak.com/US/en/motion/support/dlad/
  937. 0 lelong 0xd75f2a80 Cineon image data
  938. >200 belong >0 \b, %d x
  939. >204 belong >0 %d
  940. # Bio-Rad .PIC is an image format used by microscope control systems
  941. # and related image processing software used by biologists.
  942. # From: Vebjorn Ljosa <vebjorn@ljosa.com>
  943. # BOOL values are two-byte integers; use them to rule out false positives.
  944. # http://web.archive.org/web/20050317223257/www.cs.ubc.ca/spider/ladic/text/biorad.txt
  945. # Samples: http://www.loci.wisc.edu/software/sample-data
  946. 14 leshort <2
  947. >62 leshort <2
  948. >>54 leshort 12345 Bio-Rad .PIC Image File
  949. >>>0 leshort >0 %d x
  950. >>>2 leshort >0 %d,
  951. >>>4 leshort =1 1 image in file
  952. >>>4 leshort >1 %d images in file
  953. # From Jan "Yenya" Kasprzak <kas@fi.muni.cz>
  954. # The description of *.mrw format can be found at
  955. # http://www.dalibor.cz/minolta/raw_file_format.htm
  956. 0 string \000MRM Minolta Dimage camera raw image data
  957. # Summary: DjVu image / document
  958. # Extension: .djvu
  959. # Reference: http://djvu.org/docs/DjVu3Spec.djvu
  960. # Submitted by: Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
  961. # Modified by (1): Abel Cheung <abelcheung@gmail.com>
  962. 0 string AT&TFORM
  963. >12 string DJVM DjVu multiple page document
  964. !:mime image/vnd.djvu
  965. >12 string DJVU DjVu image or single page document
  966. !:mime image/vnd.djvu
  967. >12 string DJVI DjVu shared document
  968. !:mime image/vnd.djvu
  969. >12 string THUM DjVu page thumbnails
  970. !:mime image/vnd.djvu
  971. # Originally by Marc Espie
  972. # Modified by Robert Minsk <robertminsk at yahoo.com>
  973. # http://www.openexr.com/openexrfilelayout.pdf
  974. 0 lelong 20000630 OpenEXR image data,
  975. !:mime image/x-exr
  976. >4 lelong&0x000000ff x version %d,
  977. >4 lelong ^0x00000200 storage: scanline
  978. >4 lelong &0x00000200 storage: tiled
  979. >8 search/0x1000 compression\0 \b, compression:
  980. >>&16 byte 0 none
  981. >>&16 byte 1 rle
  982. >>&16 byte 2 zips
  983. >>&16 byte 3 zip
  984. >>&16 byte 4 piz
  985. >>&16 byte 5 pxr24
  986. >>&16 byte 6 b44
  987. >>&16 byte 7 b44a
  988. >>&16 byte 8 dwaa
  989. >>&16 byte 9 dwab
  990. >>&16 byte >9 unknown
  991. >8 search/0x1000 dataWindow\0 \b, dataWindow:
  992. >>&10 lelong x (%d
  993. >>&14 lelong x %d)-
  994. >>&18 lelong x \b(%d
  995. >>&22 lelong x %d)
  996. >8 search/0x1000 displayWindow\0 \b, displayWindow:
  997. >>&10 lelong x (%d
  998. >>&14 lelong x %d)-
  999. >>&18 lelong x \b(%d
  1000. >>&22 lelong x %d)
  1001. >8 search/0x1000 lineOrder\0 \b, lineOrder:
  1002. >>&14 byte 0 increasing y
  1003. >>&14 byte 1 decreasing y
  1004. >>&14 byte 2 random y
  1005. >>&14 byte >2 unknown
  1006. # SMPTE Digital Picture Exchange Format, SMPTE DPX
  1007. #
  1008. # ANSI/SMPTE 268M-1994, SMPTE Standard for File Format for Digital
  1009. # Moving-Picture Exchange (DPX), v1.0, 18 February 1994
  1010. # Robert Minsk <robertminsk at yahoo.com>
  1011. # Modified by Harry Mallon <hjmallon at gmail.com>
  1012. 0 string SDPX DPX image data, big-endian,
  1013. !:mime image/x-dpx
  1014. >0 use dpx_info
  1015. 0 string XPDS DPX image data, little-endian,
  1016. !:mime image/x-dpx
  1017. >0 use \^dpx_info
  1018. 0 name dpx_info
  1019. >768 beshort <4
  1020. >>772 belong x %dx
  1021. >>776 belong x \b%d,
  1022. >768 beshort >3
  1023. >>776 belong x %dx
  1024. >>772 belong x \b%d,
  1025. >768 beshort 0 left to right/top to bottom
  1026. >768 beshort 1 right to left/top to bottom
  1027. >768 beshort 2 left to right/bottom to top
  1028. >768 beshort 3 right to left/bottom to top
  1029. >768 beshort 4 top to bottom/left to right
  1030. >768 beshort 5 top to bottom/right to left
  1031. >768 beshort 6 bottom to top/left to right
  1032. >768 beshort 7 bottom to top/right to left
  1033. # From: Tom Hilinski <tom.hilinski@comcast.net>
  1034. # http://www.unidata.ucar.edu/packages/netcdf/
  1035. 0 string CDF\001 NetCDF Data Format data
  1036. #-----------------------------------------------------------------------
  1037. # Hierarchical Data Format, used to facilitate scientific data exchange
  1038. # specifications at http://hdf.ncsa.uiuc.edu/
  1039. 0 belong 0x0e031301 Hierarchical Data Format (version 4) data
  1040. !:mime application/x-hdf
  1041. 0 string \211HDF\r\n\032\n Hierarchical Data Format (version 5) data
  1042. !:mime application/x-hdf
  1043. 512 string \211HDF\r\n\032\n Hierarchical Data Format (version 5) with 512 bytes user block
  1044. !:mime application/x-hdf
  1045. 1024 string \211HDF\r\n\032\n Hierarchical Data Format (version 5) with 1k user block
  1046. !:mime application/x-hdf
  1047. 2048 string \211HDF\r\n\032\n Hierarchical Data Format (version 5) with 2k user block
  1048. !:mime application/x-hdf
  1049. 4096 string \211HDF\r\n\032\n Hierarchical Data Format (version 5) with 4k user block
  1050. !:mime application/x-hdf
  1051. # From: Tobias Burnus <burnus@net-b.de>
  1052. # Xara (for a while: Corel Xara) is a graphic package, see
  1053. # http://www.xara.com/ for Windows and as GPL application for Linux
  1054. 0 string XARA\243\243 Xara graphics file
  1055. # http://www.cartesianinc.com/Tech/
  1056. 0 string CPC\262 Cartesian Perceptual Compression image
  1057. !:mime image/x-cpi
  1058. # From Albert Cahalan <acahalan@gmail.com>
  1059. # puredigital used it for the CVS disposable camcorder
  1060. #8 lelong 4 ZBM bitmap image data
  1061. #>4 leshort x %u x
  1062. #>6 leshort x %u
  1063. # From Albert Cahalan <acahalan@gmail.com>
  1064. # uncompressed 5:6:5 HighColor image for OLPC XO firmware icons
  1065. 0 string C565 OLPC firmware icon image data
  1066. >4 leshort x %u x
  1067. >6 leshort x %u
  1068. # Applied Images - Image files from Cytovision
  1069. # Gustavo Junior Alves <gjalves@gjalves.com.br>
  1070. 0 string \xce\xda\xde\xfa Cytovision Metaphases file
  1071. 0 string \xed\xad\xef\xac Cytovision Karyotype file
  1072. 0 string \x0b\x00\x03\x00 Cytovision FISH Probe file
  1073. 0 string \xed\xfe\xda\xbe Cytovision FLEX file
  1074. 0 string \xed\xab\xed\xfe Cytovision FLEX file
  1075. 0 string \xad\xfd\xea\xad Cytovision RATS file
  1076. # Wavelet Scalar Quantization format used in gray-scale fingerprint images
  1077. # From Tano M Fotang <mfotang@quanteq.com>
  1078. 0 string \xff\xa0\xff\xa8\x00 Wavelet Scalar Quantization image data
  1079. # Type: PCO B16 image files
  1080. # URL: http://www.pco.de/fileadmin/user_upload/db/download/MA_CWDCOPIE_0412b.pdf
  1081. # From: Florian Philipp <florian.philipp@binarywings.net>
  1082. # Extension: .b16
  1083. # Description: Pixel image format produced by PCO Camware, typically used
  1084. # together with PCO cameras.
  1085. # Note: Different versions exist for e.g. 8 bit and 16 bit images.
  1086. # Documentation is incomplete.
  1087. 0 string/b PCO- PCO B16 image data
  1088. >12 lelong x \b, %dx
  1089. >16 lelong x \b%d
  1090. >20 lelong 0 \b, short header
  1091. >20 lelong -1 \b, extended header
  1092. >>24 lelong 0 \b, grayscale
  1093. >>>36 lelong 0 linear LUT
  1094. >>>36 lelong 1 logarithmic LUT
  1095. >>>28 lelong x [%d
  1096. >>>32 lelong x \b,%d]
  1097. >>24 lelong 1 \b, color
  1098. >>>64 lelong 0 linear LUT
  1099. >>>64 lelong 1 logarithmic LUT
  1100. >>>40 lelong x r[%d
  1101. >>>44 lelong x \b,%d]
  1102. >>>48 lelong x g[%d
  1103. >>>52 lelong x \b,%d]
  1104. >>>56 lelong x b[%d
  1105. >>>60 lelong x \b,%d]
  1106. # Polar Monitor Bitmap (.pmb) used as logo for Polar Electro watches
  1107. # From: Markus Heidelberg <markus.heidelberg at web.de>
  1108. 0 string/t [BitmapInfo2] Polar Monitor Bitmap text
  1109. !:mime image/x-polar-monitor-bitmap
  1110. # From: Rick Richardson <rickrich@gmail.com>
  1111. # updated by: Joerg Jenderek
  1112. # URL: http://techmods.net/nuvi/
  1113. 0 string GARMIN\ BITMAP\ 01 Garmin Bitmap file
  1114. # extension is also used for
  1115. # Sony SRF raw image (image/x-sony-srf)
  1116. # SRF map
  1117. # Terragen Surface Map (http://www.planetside.co.uk/terragen)
  1118. # FileLocator Pro search criteria file (http://www.mythicsoft.com/filelocatorpro)
  1119. !:ext srf
  1120. #!:mime image/x-garmin-srf
  1121. # version 1.00,2.00,2.10,2.40,2.50
  1122. >0x2f string >0 \b, version %4.4s
  1123. # width (2880,2881,3240)
  1124. >0x55 uleshort >0 \b, %dx
  1125. # height (80,90)
  1126. >>0x53 uleshort x \b%d
  1127. # Type: Ulead Photo Explorer5 (.pe5)
  1128. # URL: http://www.jisyo.com/cgibin/view.cgi?EXT=pe5 (Japanese)
  1129. # From: Simon Horman <horms@debian.org>
  1130. 0 string IIO2H Ulead Photo Explorer5
  1131. # Type: X11 cursor
  1132. # URL: http://webcvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml.in?view=markup
  1133. # From: Mathias Brodala <info@noctus.net>
  1134. 0 string Xcur X11 cursor
  1135. # Type: Olympus ORF raw images.
  1136. # URL: http://libopenraw.freedesktop.org/wiki/Olympus_ORF
  1137. # From: Adam Buchbinder <adam.buchbinder@gmail.com>
  1138. 0 string MMOR Olympus ORF raw image data, big-endian
  1139. !:mime image/x-olympus-orf
  1140. 0 string IIRO Olympus ORF raw image data, little-endian
  1141. !:mime image/x-olympus-orf
  1142. 0 string IIRS Olympus ORF raw image data, little-endian
  1143. !:mime image/x-olympus-orf
  1144. # Type: files used in modern AVCHD camcoders to store clip information
  1145. # Extension: .cpi
  1146. # From: Alexander Danilov <alexander.a.danilov@gmail.com>
  1147. 0 string HDMV0100 AVCHD Clip Information
  1148. # From: Adam Buchbinder <adam.buchbinder@gmail.com>
  1149. # URL: http://local.wasp.uwa.edu.au/~pbourke/dataformats/pic/
  1150. # Radiance HDR; usually has .pic or .hdr extension.
  1151. 0 string #?RADIANCE\n Radiance HDR image data
  1152. #!mime image/vnd.radiance
  1153. # From: Adam Buchbinder <adam.buchbinder@gmail.com>
  1154. # URL: http://www.mpi-inf.mpg.de/resources/pfstools/pfs_format_spec.pdf
  1155. # Used by the pfstools packages. The regex matches for the image size could
  1156. # probably use some work. The MIME type is made up; if there's one in
  1157. # actual common use, it should replace the one below.
  1158. 0 string PFS1\x0a PFS HDR image data
  1159. #!mime image/x-pfs
  1160. >1 regex [0-9]*\ \b, %s
  1161. >>1 regex \ [0-9]{4} \bx%s
  1162. # Type: Foveon X3F
  1163. # URL: http://www.photofo.com/downloads/x3f-raw-format.pdf
  1164. # From: Adam Buchbinder <adam.buchbinder@gmail.com>
  1165. # Note that the MIME type isn't defined anywhere that I can find; if
  1166. # there's a canonical type for this format, it should replace this one.
  1167. 0 string FOVb Foveon X3F raw image data
  1168. !:mime image/x-x3f
  1169. >6 leshort x \b, version %d.
  1170. >4 leshort x \b%d
  1171. >28 lelong x \b, %dx
  1172. >32 lelong x \b%d
  1173. # Paint.NET file
  1174. # From Adam Buchbinder <adam.buchbinder@gmail.com>
  1175. 0 string PDN3 Paint.NET image data
  1176. !:mime image/x-paintnet
  1177. # Not really an image.
  1178. # From: "Tano M. Fotang" <mfotang@quanteq.com>
  1179. 0 string \x46\x4d\x52\x00 ISO/IEC 19794-2 Format Minutiae Record (FMR)
  1180. # doc: http://www.shikino.co.jp/eng/products/images/FLOWER.jpg.zip
  1181. # example: http://www.shikino.co.jp/eng/products/images/FLOWER.wdp.zip
  1182. 90 bequad 0x574D50484F544F00 JPEG-XR Image
  1183. >98 byte&0x08 =0x08 \b, hard tiling
  1184. >99 byte&0x80 =0x80 \b, tiling present
  1185. >99 byte&0x40 =0x40 \b, codestream present
  1186. >99 byte&0x38 x \b, spatial xform=
  1187. >99 byte&0x38 0x00 \bTL
  1188. >99 byte&0x38 0x08 \bBL
  1189. >99 byte&0x38 0x10 \bTR
  1190. >99 byte&0x38 0x18 \bBR
  1191. >99 byte&0x38 0x20 \bBT
  1192. >99 byte&0x38 0x28 \bRB
  1193. >99 byte&0x38 0x30 \bLT
  1194. >99 byte&0x38 0x38 \bLB
  1195. >100 byte&0x80 =0x80 \b, short header
  1196. >>102 beshort+1 x \b, %d
  1197. >>104 beshort+1 x \bx%d
  1198. >100 byte&0x80 =0x00 \b, long header
  1199. >>102 belong+1 x \b, %x
  1200. >>106 belong+1 x \bx%x
  1201. >101 beshort&0xf x \b, bitdepth=
  1202. >>101 beshort&0xf 0x0 \b1-WHITE=1
  1203. >>101 beshort&0xf 0x1 \b8
  1204. >>101 beshort&0xf 0x2 \b16
  1205. >>101 beshort&0xf 0x3 \b16-SIGNED
  1206. >>101 beshort&0xf 0x4 \b16-FLOAT
  1207. >>101 beshort&0xf 0x5 \b(reserved 5)
  1208. >>101 beshort&0xf 0x6 \b32-SIGNED
  1209. >>101 beshort&0xf 0x7 \b32-FLOAT
  1210. >>101 beshort&0xf 0x8 \b5
  1211. >>101 beshort&0xf 0x9 \b10
  1212. >>101 beshort&0xf 0xa \b5-6-5
  1213. >>101 beshort&0xf 0xb \b(reserved %d)
  1214. >>101 beshort&0xf 0xc \b(reserved %d)
  1215. >>101 beshort&0xf 0xd \b(reserved %d)
  1216. >>101 beshort&0xf 0xe \b(reserved %d)
  1217. >>101 beshort&0xf 0xf \b1-BLACK=1
  1218. >101 beshort&0xf0 x \b, colorfmt=
  1219. >>101 beshort&0xf0 0x00 \bYONLY
  1220. >>101 beshort&0xf0 0x10 \bYUV240
  1221. >>101 beshort&0xf0 0x20 \bYWV422
  1222. >>101 beshort&0xf0 0x30 \bYWV444
  1223. >>101 beshort&0xf0 0x40 \bCMYK
  1224. >>101 beshort&0xf0 0x50 \bCMYKDIRECT
  1225. >>101 beshort&0xf0 0x60 \bNCOMPONENT
  1226. >>101 beshort&0xf0 0x70 \bRGB
  1227. >>101 beshort&0xf0 0x80 \bRGBE
  1228. >>101 beshort&0xf0 >0x80 \b(reserved 0x%x)
  1229. # From: Johan van der Knijff <johan.vanderknijff@kb.nl>
  1230. #
  1231. # BPG (Better Portable Graphics) format
  1232. # http://bellard.org/bpg/
  1233. # http://fileformats.archiveteam.org/wiki/BPG
  1234. #
  1235. 0 string \x42\x50\x47\xFB BPG (Better Portable Graphics)
  1236. !:mime image/bpg
  1237. # From: Joerg Jenderek
  1238. # URL: https://en.wikipedia.org/wiki/Apple_Icon_Image_format
  1239. 0 string icns Mac OS X icon
  1240. !:mime image/x-icns
  1241. !:apple ????icns
  1242. !:ext icns
  1243. >4 ubelong >0
  1244. # file size
  1245. >>4 ubelong x \b, %d bytes
  1246. # icon type
  1247. >>8 string x \b, "%4.4s" type
  1248. # TIM images
  1249. 0 lelong 0x00000010 TIM image,
  1250. >4 lelong 0x8 4-Bit,
  1251. >4 lelong 0x9 8-Bit,
  1252. >4 lelong 0x2 15-Bit,
  1253. >4 lelong 0x3 24-Bit,
  1254. >4 lelong &8
  1255. >>(8.l+12) leshort x Pixel at (%d,
  1256. >>(8.l+14) leshort x \b%d)
  1257. >>(8.l+16) leshort x Size=%dx
  1258. >>(8.l+18) leshort x \b%d,
  1259. >>4 lelong 0x8 16 CLUT Entries at
  1260. >>4 lelong 0x9 256 CLUT Entries at
  1261. >>12 leshort x (%d,
  1262. >>14 leshort x \b%d)
  1263. >4 lelong ^8
  1264. >>12 leshort x Pixel at (%d,
  1265. >>14 leshort x \b%d)
  1266. >>16 leshort x Size=%dx
  1267. >>18 leshort x \b%d
  1268. # MDEC streams
  1269. 0 lelong 0x80010160 MDEC video stream,
  1270. >16 leshort x %dx
  1271. >18 leshort x \b%d
  1272. #>8 lelong x %d frames
  1273. #>4 leshort x secCount=%d;
  1274. #>6 leshort x nSectors=%d;
  1275. #>12 lelong x frameSize=%d;
  1276. # BS encoded bitstreams
  1277. 2 leshort 0x3800 BS image,
  1278. >6 leshort x Version %d,
  1279. >4 leshort x Quantization %d,
  1280. >0 leshort x (Decompresses to %d words)
  1281. # Type: farbfeld image.
  1282. # Url: http://tools.suckless.org/farbfeld/
  1283. # From: Ian D. Scott <ian@iandouglasscott.com>
  1284. #
  1285. 0 string farbfeld farbfeld image data,
  1286. >8 ubelong x %dx
  1287. >12 ubelong x \b%d
  1288. # Type: Sega PVR image.
  1289. # From: David Korth <gerbilsoft@gerbilsoft.com>
  1290. # References:
  1291. # - http://fabiensanglard.net/Mykaruga/tools/segaPVRFormat.txt
  1292. # - https://github.com/yazgoo/pvrx2png
  1293. # - https://github.com/nickworonekin/puyotools
  1294. # Sega PVR header.
  1295. 0 name sega-pvr-image-header
  1296. >0x0C leshort x %d x
  1297. >0x0E leshort x %d
  1298. # Image format.
  1299. >0x08 byte 0 \b, ARGB1555
  1300. >0x08 byte 1 \b, RGB565
  1301. >0x08 byte 2 \b, ARGB4444
  1302. >0x08 byte 3 \b, YUV442
  1303. >0x08 byte 4 \b, Bump
  1304. >0x08 byte 5 \b, 4bpp
  1305. >0x08 byte 6 \b, 8bpp
  1306. # Image data type.
  1307. >0x09 byte 0x01 \b, square twiddled
  1308. >0x09 byte 0x02 \b, square twiddled & mipmap
  1309. >0x09 byte 0x03 \b, VQ
  1310. >0x09 byte 0x04 \b, VQ & mipmap
  1311. >0x09 byte 0x05 \b, 8-bit CLUT twiddled
  1312. >0x09 byte 0x06 \b, 4-bit CLUT twiddled
  1313. >0x09 byte 0x07 \b, 8-bit direct twiddled
  1314. >0x09 byte 0x08 \b, 4-bit direct twiddled
  1315. >0x09 byte 0x09 \b, rectangle
  1316. >0x09 byte 0x0B \b, rectangular stride
  1317. >0x09 byte 0x0D \b, rectangular twiddled
  1318. >0x09 byte 0x10 \b, small VQ
  1319. >0x09 byte 0x11 \b, small VQ & mipmap
  1320. >0x09 byte 0x12 \b, square twiddled & mipmap
  1321. # Sega PVR (Xbox) image header.
  1322. # Contains an embedded DirectDraw surface instead of PVR data.
  1323. 0 name sega-pvr-xbox-dds-header
  1324. >16 lelong x %d x
  1325. >12 lelong x %d,
  1326. >84 string x %.4s
  1327. # Sega PVR image.
  1328. 0 string PVRT
  1329. >0x10 string DDS\040\174\000\000\000 Sega PVR (Xbox) image:
  1330. >>0x20 use sega-pvr-xbox-dds-header
  1331. >0x10 belong !0x44445320 Sega PVR image:
  1332. >>0 use sega-pvr-image-header
  1333. # Sega PVR image with GBIX.
  1334. 0 string GBIX
  1335. >0x10 string PVRT
  1336. >>0x10 string DDS\040\174\000\000\000 Sega PVR (Xbox) image:
  1337. >>>0x20 use sega-pvr-xbox-dds-header
  1338. >>0x10 belong !0x44445320 Sega PVR image:
  1339. >>>0x10 use sega-pvr-image-header
  1340. >>0x08 lelong x \b, global index = %u
  1341. # Sega GVR header.
  1342. 0 name sega-gvr-image-header
  1343. >0x0C beshort x %d x
  1344. >0x0E beshort x %d
  1345. # Image data format.
  1346. >0x0B byte 0 \b, I4
  1347. >0x0B byte 1 \b, I8
  1348. >0x0B byte 2 \b, IA4
  1349. >0x0B byte 3 \b, IA8
  1350. >0x0B byte 4 \b, RGB565
  1351. >0x0B byte 5 \b, RGB5A3
  1352. >0x0B byte 6 \b, ARGB8888
  1353. >0x0B byte 8 \b, CI4
  1354. >0x0B byte 9 \b, CI8
  1355. >0x0B byte 14 \b, DXT1
  1356. # Sega GVR image.
  1357. 0 string GVRT Sega GVR image:
  1358. >0x10 use sega-gvr-image-header
  1359. # Sega GVR image with GBIX.
  1360. 0 string GBIX
  1361. >0x10 string GVRT Sega GVR image:
  1362. >>0x10 use sega-gvr-image-header
  1363. >>0x08 belong x \b, global index = %u
  1364. # Light Field Picture
  1365. # Documentation: http://optics.miloush.net/lytro/TheFileFormat.aspx
  1366. # Typical file extensions: .lfp .lfr .lfx
  1367. 0 belong 0x894C4650
  1368. >4 belong 0x0D0A1A0A
  1369. >12 belong 0x00000000 Lytro Light Field Picture
  1370. >8 belong x \b, version %d
  1371. # Type: Vision Research Phantom CINE Format
  1372. # URL: https://www.phantomhighspeed.com/
  1373. # URL2: http://phantomhighspeed.force.com/vriknowledge/servlet/fileField?id=0BEU0000000Cfyk
  1374. # From: Harry Mallon <hjmallon at gmail.com>
  1375. #
  1376. # This has a short "CI" code but the 44 is the size of the struct which is
  1377. # stable
  1378. 0 string CI
  1379. >2 leshort 44 Vision Research CINE Video,
  1380. >>4 leshort 0 Grayscale,
  1381. >>4 leshort 1 JPEG Compressed,
  1382. >>4 leshort 2 RAW,
  1383. >>6 leshort x version %d,
  1384. >>20 lelong x %d frames,
  1385. >>48 lelong x %dx
  1386. >>52 lelong x \b%d
  1387. # Type: ARRI Raw Image
  1388. # Info: SMPTE RDD30:2014
  1389. # From: Harry Mallon <hjmallon at gmail.com>
  1390. 0 string ARRI ARRI ARI image data,
  1391. >4 lelong 0x78563412 little-endian,
  1392. >4 lelong 0x12345678 big-endian,
  1393. >12 lelong x version %d,
  1394. >20 lelong x %dx
  1395. >24 lelong x \b%d