Add ATC & ASTC support

- Add ATC formats for Android etc.
- Add enums for "useful" ASTC formats, using https://developer.nvidia.com/astc-texture-compression-for-game-assets as a guide

- Support decoding ATC/ATCE/ATCI
- Generalise block code to handle non-power-of-two
- Add DDS support for ETC/old (non-DX10) PTC/ATC/ASTC
- Add KTX support for ATC/ASTC
This commit is contained in:
Andrew Willmott
2018-06-09 22:29:00 +01:00
parent 771f12733b
commit f1666e2bf2
2 changed files with 359 additions and 147 deletions

View File

@@ -65,6 +65,15 @@ namespace bimg
PTC14A, //!< PVRTC1 RGBA 4BPP
PTC22, //!< PVRTC2 RGBA 2BPP
PTC24, //!< PVRTC2 RGBA 4BPP
ATC, //!< ATC RGB 4BPP
ATCE, //!< ATCE RGBA 8 BPP explicit alpha
ATCI, //!< ATCI RGBA 8 BPP interpolated alpha
ASTC4x4, //!< ASTC 4x4 8.0 BPP
ASTC5x5, //!< ASTC 5x5 5.12 BPP
ASTC6x6, //!< ASTC 6x6 3.56 BPP
ASTC8x5, //!< ASTC 8x5 3.20 BPP
ASTC8x6, //!< ASTC 8x6 2.67 BPP
ASTC10x5, //!< ASTC 10x5 2.56 BPP
Unknown, // Compressed formats above.