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.h200 VP8LBitEntropy* const bit_entropy, VP8LStreaks* const stats);
205 VP8LBitEntropy* const bit_entropy,
/external/webp/src/enc/
Dhistogram_enc.c302 VP8LBitEntropy bit_entropy; in PopulationCost() local
304 VP8LGetEntropyUnrefined(population, length, &bit_entropy, &stats); in PopulationCost()
306 *trivial_sym = (bit_entropy.nonzeros == 1) ? bit_entropy.nonzero_code in PopulationCost()
312 return BitsEntropyRefine(&bit_entropy) + FinalHuffmanCost(&stats); in PopulationCost()
336 VP8LBitEntropy bit_entropy; in GetCombinedEntropy() local
339 VP8LGetCombinedEntropyUnrefined(X, Y, length, &bit_entropy, &stats); in GetCombinedEntropy()
341 VP8LGetEntropyUnrefined(X, length, &bit_entropy, &stats); in GetCombinedEntropy()
345 VP8LGetEntropyUnrefined(Y, length, &bit_entropy, &stats); in GetCombinedEntropy()
350 VP8LBitEntropyInit(&bit_entropy); in GetCombinedEntropy()
354 return BitsEntropyRefine(&bit_entropy) + FinalHuffmanCost(&stats); in GetCombinedEntropy()