Lines Matching defs:histograms
19 /* We merge histograms A and B if
37 /* Offset of the histograms of the previous two block types. */
48 BlockSplit* split, HistogramType** histograms, size_t* histograms_size) {
70 BROTLI_DCHECK(*histograms == 0);
72 *histograms = BROTLI_ALLOC(m, HistogramType, *histograms_size);
73 self->histograms_ = *histograms;
74 if (BROTLI_IS_OOM(m) || BROTLI_IS_NULL(*histograms)) return;
88 HistogramType* histograms = self->histograms_;
96 BitsEntropy(histograms[0].data_, self->alphabet_size_);
102 FN(HistogramClear)(&histograms[self->curr_histogram_ix_]);
105 double entropy = BitsEntropy(histograms[self->curr_histogram_ix_].data_,
113 combined_histo[j] = histograms[self->curr_histogram_ix_];
115 &histograms[last_histogram_ix]);
135 FN(HistogramClear)(&histograms[self->curr_histogram_ix_]);
144 histograms[self->last_histogram_ix_[0]] = combined_histo[1];
149 FN(HistogramClear)(&histograms[self->curr_histogram_ix_]);
155 histograms[self->last_histogram_ix_[0]] = combined_histo[0];
161 FN(HistogramClear)(&histograms[self->curr_histogram_ix_]);