mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 00:23:52 +00:00
- Global codebook related fixes
- Minor fix to basisu_frontend::optimize_selector_codebook() so the new_selector_cluster_indices array is initialized correctly. (The backend doesn't use this array so no harm was being done.)
This commit is contained in:
@@ -7949,9 +7949,7 @@ namespace basist
|
||||
}
|
||||
|
||||
approx_move_to_front selector_history_buf(m_selector_history_buf_size);
|
||||
|
||||
const uint32_t SELECTOR_HISTORY_BUF_FIRST_SYMBOL_INDEX = (uint32_t)m_local_selectors.size();
|
||||
const uint32_t SELECTOR_HISTORY_BUF_RLE_SYMBOL_INDEX = m_selector_history_buf_size + SELECTOR_HISTORY_BUF_FIRST_SYMBOL_INDEX;
|
||||
|
||||
uint32_t cur_selector_rle_count = 0;
|
||||
|
||||
decoder_etc_block block;
|
||||
@@ -7991,6 +7989,9 @@ namespace basist
|
||||
return false;
|
||||
}
|
||||
|
||||
const uint32_t SELECTOR_HISTORY_BUF_FIRST_SYMBOL_INDEX = (uint32_t)selectors.size();
|
||||
const uint32_t SELECTOR_HISTORY_BUF_RLE_SYMBOL_INDEX = m_selector_history_buf_size + SELECTOR_HISTORY_BUF_FIRST_SYMBOL_INDEX;
|
||||
|
||||
for (uint32_t block_y = 0; block_y < num_blocks_y; block_y++)
|
||||
{
|
||||
const uint32_t cur_block_endpoint_pred_array = block_y & 1;
|
||||
|
||||
@@ -377,11 +377,13 @@ namespace basist
|
||||
uint32_t m_total_header_size;
|
||||
|
||||
uint32_t m_total_selectors;
|
||||
uint32_t m_selector_codebook_ofs;
|
||||
// will be 0 for UASTC or if the file uses global codebooks
|
||||
uint32_t m_selector_codebook_ofs;
|
||||
uint32_t m_selector_codebook_size;
|
||||
|
||||
uint32_t m_total_endpoints;
|
||||
uint32_t m_endpoint_codebook_ofs;
|
||||
// will be 0 for UASTC or if the file uses global codebooks
|
||||
uint32_t m_endpoint_codebook_ofs;
|
||||
uint32_t m_endpoint_codebook_size;
|
||||
|
||||
uint32_t m_tables_ofs;
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
#pragma warning (disable: 4127) // conditional expression is constant
|
||||
#endif
|
||||
|
||||
#define BASISD_LIB_VERSION 113
|
||||
#define BASISD_VERSION_STRING "01.13"
|
||||
#define BASISD_LIB_VERSION 114
|
||||
#define BASISD_VERSION_STRING "01.14"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define BASISD_BUILD_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user