Lines Matching refs:histograms
338 size_t num_symbols, BlockSplit* split, HistogramLiteral** histograms, in InitContextBlockSplitter() argument
368 BROTLI_DCHECK(*histograms == 0); in InitContextBlockSplitter()
370 *histograms = BROTLI_ALLOC(m, HistogramLiteral, *histograms_size); in InitContextBlockSplitter()
371 self->histograms_ = *histograms; in InitContextBlockSplitter()
372 if (BROTLI_IS_OOM(m) || BROTLI_IS_NULL(*histograms)) return; in InitContextBlockSplitter()
387 HistogramLiteral* histograms = self->histograms_; in ContextBlockSplitterFinishBlock() local
400 BitsEntropy(histograms[i].data_, self->alphabet_size_); in ContextBlockSplitterFinishBlock()
426 entropy[i] = BitsEntropy(histograms[curr_histo_ix].data_, in ContextBlockSplitterFinishBlock()
431 combined_histo[jx] = histograms[curr_histo_ix]; in ContextBlockSplitterFinishBlock()
433 &histograms[last_histogram_ix]); in ContextBlockSplitterFinishBlock()
468 histograms[self->last_histogram_ix_[0] + i] = in ContextBlockSplitterFinishBlock()
472 HistogramClearLiteral(&histograms[self->curr_histogram_ix_ + i]); in ContextBlockSplitterFinishBlock()
482 histograms[self->last_histogram_ix_[0] + i] = combined_histo[i]; in ContextBlockSplitterFinishBlock()
487 HistogramClearLiteral(&histograms[self->curr_histogram_ix_ + i]); in ContextBlockSplitterFinishBlock()