]> granicus.if.org Git - file/commitdiff
Added PowerVR 3.0 textures. (GerbiSoft)
authorChristos Zoulas <christos@zoulas.com>
Sat, 23 Feb 2019 01:16:20 +0000 (01:16 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 23 Feb 2019 01:16:20 +0000 (01:16 +0000)
magic/Magdir/images

index 65bfe3bd1ff56b4664b1b5a8c2ec06dc51cc8b40..41c7563eb885cbdc489023a33652522cb52d9069 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: images,v 1.155 2019/02/23 01:16:18 christos Exp $
+# $File: images,v 1.156 2019/02/23 01:16:20 christos Exp $
 # images:  file(1) magic for image formats (see also "iff", and "c-lang" for
 # XPM bitmaps)
 #
 >>>24          string  version=
 >>>>32         byte    x       reMarkable tablet page (v%c), 1404 x 1872,
 >>>>>43                lelong  x       %d layer(s)
+
+# Type: PVR3 texture.
+# From: David Korth <gerbilsoft@gerbilsoft.com>
+# References:
+# - http://cdn.imgtec.com/sdk-documentation/PVR+File+Format.Specification.pdf
+
+# PVR3 pixel formats.
+0      name            pvr3-pixel-format
+>4     ulelong 0
+>>0    ulelong 0       PVRTC 2bpp RGB
+>>0    ulelong 1       PVRTC 2bpp RGBA
+>>0    ulelong 2       PVRTC 4bpp RGB
+>>0    ulelong 3       PVRTC 4bpp RGBA
+>>0    ulelong 4       PVRTC-II 2bpp
+>>0    ulelong 5       PVRTC-II 4bpp
+>>0    ulelong 6       ETC1
+>>0    ulelong 7       DXT1
+>>0    ulelong 8       DXT2
+>>0    ulelong 9       DXT3
+>>0    ulelong 10      DXT4
+>>0    ulelong 11      DXT5
+>>0    ulelong 12      BC4
+>>0    ulelong 13      BC5
+>>0    ulelong 14      BC6
+>>0    ulelong 15      BC7
+>>0    ulelong 16      UYVY
+>>0    ulelong 17      YUY2
+>>0    ulelong 18      BW1bpp
+>>0    ulelong 19      R9G9B9E5 Shared Exponent
+>>0    ulelong 20      RGBG8888
+>>0    ulelong 21      GRGB8888
+>>0    ulelong 22      ETC2 RGB
+>>0    ulelong 23      ETC2 RGBA
+>>0    ulelong 24      ETC2 RGB A1
+>>0    ulelong 25      EAC R11
+>>0    ulelong 26      EAC RG11
+>>0    ulelong 27      ASTC_4x4
+>>0    ulelong 28      ASTC_5x4
+>>0    ulelong 29      ASTC_5x5
+>>0    ulelong 30      ASTC_6x5
+>>0    ulelong 31      ASTC_6x6
+>>0    ulelong 32      ASTC_8x5
+>>0    ulelong 33      ASTC_8x6
+>>0    ulelong 34      ASTC_8x8
+>>0    ulelong 35      ASTC_10x5
+>>0    ulelong 36      ASTC_10x6
+>>0    ulelong 37      ASTC_10x8
+>>0    ulelong 38      ASTC_10x10
+>>0    ulelong 39      ASTC_12x10
+>>0    ulelong 40      ASTC_12x12
+>>0    ulelong 41      ASTC_3x3x3
+>>0    ulelong 42      ASTC_4x3x3
+>>0    ulelong 43      ASTC_4x4x3
+>>0    ulelong 44      ASTC_4x4x4
+>>0    ulelong 45      ASTC_5x4x4
+>>0    ulelong 46      ASTC_5x5x4
+>>0    ulelong 47      ASTC_5x5x5
+>>0    ulelong 48      ASTC_6x5x5
+>>0    ulelong 49      ASTC_6x6x5
+>>0    ulelong 50      ASTC_6x6x6
+>4     ulelong !0
+>>0    byte    !0      %c
+>>1    byte    !0      \b%c
+>>2    byte    !0      \b%c
+>>3    byte    !0      \b%c
+
+0      string          PVR\x03                 PVR 3.0 texture:
+>0x18  ulelong         x       %u x
+>0x1C  ulelong         x       %u
+>0x20  ulelong         >1      x %u
+>0x08  byte            x       \b,
+>0x08  use     pvr3-pixel-format
+>0x10  ulelong         1       \b, sRGB
+>0x04  ulelong&0x02    0x02    \b, premultiplied alpha