Major compression performance/quality improvements, for a 15-35% or so decrease in file size for the same Y PSNR/SSIM. The basis file format has changed due to these optimizations.

Increasing the max codebook size to 16K vs. 8K, for a major increase in the max achievable quality.
Adding exception catching to command line tool.
Enabling debug iterators on MSVC.
Refining command line options, adding "-individual" flag to create multiple .basis files (vs. a texture array).
Changing default colorspace to sRGB, because that's probably the best default. -linear disables this and uses linear colorspace metrics.
PNG reader in 32-bit builds checks the size of the file before loading to avoid out of memory exceptions.
This commit is contained in:
Rich Geldreich
2019-05-07 15:52:54 -07:00
parent 7599dcd7b5
commit 130eb9f115
25 changed files with 2036 additions and 1391 deletions
-6
View File
@@ -436,12 +436,6 @@ namespace basisu
if ((m_fmt == cPVRTC1_4_RGB) || (m_fmt == cPVRTC1_4_RGBA))
{
if (!is_pow2(m_width) || !is_pow2(m_height))
{
// PVRTC1 images must use power of 2 dimensions
return false;
}
pvrtc4_image pi(m_width, m_height, pvrtc_wrap_addressing);
if (get_total_blocks() != pi.get_total_blocks())