]> granicus.if.org Git - file/commitdiff
more Web/P fixes, remove dup entry from images
authorChristos Zoulas <christos@zoulas.com>
Mon, 15 Sep 2014 15:10:42 +0000 (15:10 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 15 Sep 2014 15:10:42 +0000 (15:10 +0000)
magic/Magdir/images
magic/Magdir/riff

index 94264047d63555db6cf5702e5445917842ce5f46..161b69451382df33673599bb5b8c3fedfb249c91 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: images,v 1.93 2014/09/13 20:17:14 christos Exp $
+# $File: images,v 1.94 2014/09/15 15:10:42 christos Exp $
 # images:  file(1) magic for image formats (see also "iff", and "c-lang" for
 # XPM bitmaps)
 #
 0      string  \x46\x4d\x52\x00        ISO/IEC 19794-2 Format Minutiae Record (FMR)
 
 # WEBP https://developers.google.com/speed/webp/docs/riff_container
-     string  RIFF
->8     string  WEBP    Web/P image data
->>4    lelong  x       \b, %d bytes
+#0     string  RIFF
+#>8    string  WEBP    Web/P image data
+#>>4   lelong  x       \b, %d bytes
index 2a277b8ffa1416f59898458fe0285d5ec0a881cd..f89acc4d5c477e844121b27e7596babd0110eb4b 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: riff,v 1.28 2014/09/13 14:04:21 christos Exp $
+# $File: riff,v 1.29 2014/09/15 15:10:42 christos Exp $
 # riff:  file(1) magic for RIFF format
 # See
 #
 >0  string  fact
 >>&(4.l+4)  use riff-walk
 >0  string  VP8
->>11   byte    0x9d
->>>10  byte    0x01
->>>>13 byte    0x2a    \b, VP8 encoding
->>>>>14        leshort&0x3fff  x       \b, %d
->>>>>16        leshort&0x3fff  x       \bx%d
+>>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]
 #>0  string  x         we got %s
 #>>&(4.l+4)  use riff-walk
 
 >8     string          4XMV            \b, 4X Movie file 
 # AMV-type AVI file: http://wiki.multimedia.cx/index.php?title=AMV
 >8     string          AMV\040         \b, AMV 
->8      string          WEBP            \b, WEBP image
+>8      string          WEBP            \b, Web/P image
 >>12   use             riff-walk
 
 #
 >>&6   leshort         =2              \b, stereo
 >>&6   leshort         >2              \b, %d channels
 >>&8   lelong          >0              %d Hz
-