mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-11-17 05:16:14 +00:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user