Updates to Brotli compression format, decoder and encoder
This commit contains a batch of changes that were made to the Brotli
compression algorithm in the last month. Most important changes:
* Updated spec
* Changed Huffman code length alphabet to use run length codes more
efficiently, based on a suggestion by Robert Obryk
* Changed encoding of the number of Huffman code lengths (HLEN)
* Changed encoding of the number of Huffman trees (NTREES)
* Added support for uncompressed meta-blocks
This commit is contained in:
@@ -282,9 +282,8 @@ void ClusterBlocks(const DataType* data, const size_t length,
|
||||
}
|
||||
std::vector<HistogramType> clustered_histograms;
|
||||
std::vector<int> histogram_symbols;
|
||||
// Block ids need to fit in one byte and there are two ids reserved for
|
||||
// indicating 'same as last' and 'last plus one'.
|
||||
static const int kMaxNumberOfBlockTypes = 254;
|
||||
// Block ids need to fit in one byte.
|
||||
static const int kMaxNumberOfBlockTypes = 256;
|
||||
ClusterHistograms(histograms, 1, histograms.size(),
|
||||
kMaxNumberOfBlockTypes,
|
||||
&clustered_histograms,
|
||||
|
||||
Reference in New Issue
Block a user