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_MIPS32() argument
252 VP8LBitEntropyInit(bit_entropy); in GetEntropyUnrefined_MIPS32()
257 GetEntropyUnrefinedHelper(x, i, &x_prev, &i_prev, bit_entropy, stats); in GetEntropyUnrefined_MIPS32()
[all …]
Dlossless_enc.c435 VP8LBitEntropy* const bit_entropy, VP8LStreaks* const stats) { in GetEntropyUnrefinedHelper() argument
440 bit_entropy->sum += (*val_prev) * streak; in GetEntropyUnrefinedHelper()
441 bit_entropy->nonzeros += streak; in GetEntropyUnrefinedHelper()
442 bit_entropy->nonzero_code = *i_prev; in GetEntropyUnrefinedHelper()
443 bit_entropy->entropy -= VP8LFastSLog2(*val_prev) * streak; in GetEntropyUnrefinedHelper()
444 if (bit_entropy->max_val < *val_prev) { in GetEntropyUnrefinedHelper()
445 bit_entropy->max_val = *val_prev; in GetEntropyUnrefinedHelper()
458 VP8LBitEntropy* const bit_entropy, in GetEntropyUnrefined_C() argument
465 VP8LBitEntropyInit(bit_entropy); in GetEntropyUnrefined_C()
470 GetEntropyUnrefinedHelper(x, i, &x_prev, &i_prev, bit_entropy, stats); in GetEntropyUnrefined_C()
[all …]
Dlossless.h185 VP8LBitEntropy* const bit_entropy, VP8LStreaks* const stats);
190 VP8LBitEntropy* const bit_entropy,
/external/webp/src/enc/
Dhistogram_enc.c301 VP8LBitEntropy bit_entropy; in PopulationCost() local
303 VP8LGetEntropyUnrefined(population, length, &bit_entropy, &stats); in PopulationCost()
305 *trivial_sym = (bit_entropy.nonzeros == 1) ? bit_entropy.nonzero_code in PopulationCost()
311 return BitsEntropyRefine(&bit_entropy) + FinalHuffmanCost(&stats); in PopulationCost()
335 VP8LBitEntropy bit_entropy; in GetCombinedEntropy() local
338 VP8LGetCombinedEntropyUnrefined(X, Y, length, &bit_entropy, &stats); in GetCombinedEntropy()
340 VP8LGetEntropyUnrefined(X, length, &bit_entropy, &stats); in GetCombinedEntropy()
344 VP8LGetEntropyUnrefined(Y, length, &bit_entropy, &stats); in GetCombinedEntropy()
349 VP8LBitEntropyInit(&bit_entropy); in GetCombinedEntropy()
353 return BitsEntropyRefine(&bit_entropy) + FinalHuffmanCost(&stats); in GetCombinedEntropy()