Lines Matching defs:histograms
301 Gathers histograms for all context buckets. */
309 /* We merge histograms A and B if
327 /* Offset of the histograms of the previous two block types. */
338 size_t num_symbols, BlockSplit* split, HistogramLiteral** histograms,
368 BROTLI_DCHECK(*histograms == 0);
370 *histograms = BROTLI_ALLOC(m, HistogramLiteral, *histograms_size);
371 self->histograms_ = *histograms;
372 if (BROTLI_IS_OOM(m) || BROTLI_IS_NULL(*histograms)) return;
387 HistogramLiteral* histograms = self->histograms_;
400 BitsEntropy(histograms[i].data_, self->alphabet_size_);
412 /* Try merging the set of histograms for the current block type with the
413 respective set of histograms for the last and second last block types.
426 entropy[i] = BitsEntropy(histograms[curr_histo_ix].data_,
431 combined_histo[jx] = histograms[curr_histo_ix];
433 &histograms[last_histogram_ix]);
468 histograms[self->last_histogram_ix_[0] + i] =
472 HistogramClearLiteral(&histograms[self->curr_histogram_ix_ + i]);
482 histograms[self->last_histogram_ix_[0] + i] = combined_histo[i];
487 HistogramClearLiteral(&histograms[self->curr_histogram_ix_ + i]);