Skip to content

Commit 0a3269f

Browse files
authored
Defer color packing and scrambling (#385)
This change moves packing and scrambling of quantized colors for the BISE bitstream to the physical layer. The symbolic layer of the codec always deals with colors in linear order in the 0-255 range, with sparse values if quantized. This matches a similar change we made for weights in an earlier release. This improves performance by ~1%, at the expense of an extra set of data tables, although the ROM cost is offset by making one of the other sets of tables in to a table of variable length tables, instead of a regular 2D array.
1 parent ae328ea commit 0a3269f

9 files changed

Lines changed: 974 additions & 789 deletions

Source/astcenc_block_sizes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ static void construct_block_size_descriptor_2d(
10061006
}
10071007

10081008
/**
1009-
* @brief Allocate block modes and decimation tables for a single £D block size.
1009+
* @brief Allocate block modes and decimation tables for a single 3D block size.
10101010
*
10111011
* TODO: This function doesn't include all of the heuristics that we use for 2D block sizes such as
10121012
* the percentile mode cutoffs. If 3D becomes more widely used we should look at this.

0 commit comments

Comments
 (0)