MCPcopy Create free account
hub / github.com/blend2d/blend2d / near_optimal_optimize_block

Function near_optimal_optimize_block

blend2d/compression/deflateencoder.cpp:1864–1892  ·  view source on GitHub ↗

Choose the literal/match sequence to use for the current block. The basic algorithm finds a minimum-cost path through the block's graph of literal/match choices, given a cost model. However, the cost of each symbol is unknown until the Huffman codes have been built, but at the same time the Huffman codes depend on the frequencies of chosen symbols. Consequently, multiple passes must be used to try

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

compress_near_optimalFunction · 0.85

Tested by

no test coverage detected