updating comments and status display related to m_quality

This commit is contained in:
Richard Geldreich
2026-02-26 18:44:56 -05:00
parent f9d94d286d
commit 02b7ce3804
2 changed files with 9 additions and 4 deletions

View File

@@ -865,7 +865,7 @@ namespace basisu
{
// ETC1S
if (m_params.m_status_output)
printf("Mode: ETC1S Quality (1-255): %i, Comp Level (Effort, 0-6): %i\n", m_params.m_quality_level, (int)m_params.m_etc1s_compression_level);
printf("Mode: ETC1S Quality (0-255): %i, Comp Level (Effort, 0-6): %i\n", m_params.m_quality_level, (int)m_params.m_etc1s_compression_level);
if (!process_frontend())
return cECFailedFrontEnd;

View File

@@ -53,13 +53,18 @@ namespace basisu
const float BASISU_DEFAULT_HYBRID_SEL_CB_QUALITY_THRESH = 2.0f;
const uint32_t BASISU_MAX_IMAGE_DIMENSION = 16384;
const uint32_t BASISU_QUALITY_MIN = 1;
// The original ETC1S specific (non-unified) quality level
const uint32_t BASISU_QUALITY_MIN = 1; // note 0 is also technically valid in the code/API for ETC1S; the difference in quality is tiny (both result in very small codebooks)
const uint32_t BASISU_QUALITY_MAX = 255;
const uint32_t BASISU_XUASTC_QUALITY_MIN = 1;
const uint32_t BASISU_XUASTC_QUALITY_MAX = 100;
const uint32_t BASISU_MAX_ENDPOINT_CLUSTERS = basisu_frontend::cMaxEndpointClusters;
const uint32_t BASISU_MAX_SELECTOR_CLUSTERS = basisu_frontend::cMaxSelectorClusters;
// [1,100] are also the valid unified quality levels
const uint32_t BASISU_XUASTC_QUALITY_MIN = 1;
const uint32_t BASISU_XUASTC_QUALITY_MAX = 100;
const uint32_t BASISU_MAX_SLICES = 0xFFFFFF;
const int BASISU_RDO_UASTC_DICT_SIZE_DEFAULT = 4096; // 32768;