Home
last modified time | relevance | path

Searched refs:bit_entropy (Results 1 – 4 of 4) sorted by relevance

/external/webp/src/dsp/
Dlossless_enc_mips32.c219 VP8LBitEntropy* const bit_entropy, VP8LStreaks* const stats) { in GetEntropyUnrefinedHelper() argument
227 bit_entropy->sum += (*val_prev) * streak; in GetEntropyUnrefinedHelper()
228 bit_entropy->nonzeros += streak; in GetEntropyUnrefinedHelper()
229 bit_entropy->nonzero_code = *i_prev; in GetEntropyUnrefinedHelper()
230 bit_entropy->entropy -= VP8LFastSLog2(*val_prev) * streak; in GetEntropyUnrefinedHelper()
231 if (bit_entropy->max_val < *val_prev) { in GetEntropyUnrefinedHelper()
232 bit_entropy->max_val = *val_prev; in GetEntropyUnrefinedHelper()
245 VP8LBitEntropy* const bit_entropy, in GetEntropyUnrefined() argument
252 VP8LBitEntropyInit(bit_entropy); in GetEntropyUnrefined()
257 GetEntropyUnrefinedHelper(x, i, &x_prev, &i_prev, bit_entropy, stats); in GetEntropyUnrefined()
[all …]
Dlossless_enc.c434 VP8LBitEntropy* const bit_entropy, VP8LStreaks* const stats) { in GetEntropyUnrefinedHelper() argument
439 bit_entropy->sum += (*val_prev) * streak; in GetEntropyUnrefinedHelper()
440 bit_entropy->nonzeros += streak; in GetEntropyUnrefinedHelper()
441 bit_entropy->nonzero_code = *i_prev; in GetEntropyUnrefinedHelper()
442 bit_entropy->entropy -= VP8LFastSLog2(*val_prev) * streak; in GetEntropyUnrefinedHelper()
443 if (bit_entropy->max_val < *val_prev) { in GetEntropyUnrefinedHelper()
444 bit_entropy->max_val = *val_prev; in GetEntropyUnrefinedHelper()
457 VP8LBitEntropy* const bit_entropy, in GetEntropyUnrefined() argument
464 VP8LBitEntropyInit(bit_entropy); in GetEntropyUnrefined()
469 GetEntropyUnrefinedHelper(x, i, &x_prev, &i_prev, bit_entropy, stats); in GetEntropyUnrefined()
[all …]
Dlossless.h189 VP8LBitEntropy* const bit_entropy, VP8LStreaks* const stats);
194 VP8LBitEntropy* const bit_entropy,
/external/webp/src/enc/
Dhistogram_enc.c238 VP8LBitEntropy bit_entropy; in PopulationCost() local
240 VP8LGetEntropyUnrefined(population, length, &bit_entropy, &stats); in PopulationCost()
242 *trivial_sym = (bit_entropy.nonzeros == 1) ? bit_entropy.nonzero_code in PopulationCost()
246 return BitsEntropyRefine(&bit_entropy) + FinalHuffmanCost(&stats); in PopulationCost()
268 VP8LBitEntropy bit_entropy; in GetCombinedEntropy() local
269 VP8LGetCombinedEntropyUnrefined(X, Y, length, &bit_entropy, &stats); in GetCombinedEntropy()
271 return BitsEntropyRefine(&bit_entropy) + FinalHuffmanCost(&stats); in GetCombinedEntropy()