Lines Matching refs:image_histo

559     VP8LHistogramSet* const image_histo) {  in HistogramBuild()  argument
562 VP8LHistogram** const histograms = image_histo->histograms; in HistogramBuild()
565 VP8LHistogramSetClear(image_histo); in HistogramBuild()
582 VP8LHistogramSet* const image_histo, in HistogramCopyAndAnalyze() argument
588 VP8LHistogram** const histograms = image_histo->histograms; in HistogramCopyAndAnalyze()
589 assert(image_histo->max_size == orig_histo->max_size); in HistogramCopyAndAnalyze()
602 HistogramSetRemoveHistogram(image_histo, i, num_used); in HistogramCopyAndAnalyze()
609 assert(cluster_id <= image_histo->max_size); in HistogramCopyAndAnalyze()
616 static void HistogramAnalyzeEntropyBin(VP8LHistogramSet* const image_histo, in HistogramAnalyzeEntropyBin() argument
620 VP8LHistogram** const histograms = image_histo->histograms; in HistogramAnalyzeEntropyBin()
621 const int histo_size = image_histo->size; in HistogramAnalyzeEntropyBin()
643 static void HistogramCombineEntropyBin(VP8LHistogramSet* const image_histo, in HistogramCombineEntropyBin() argument
652 VP8LHistogram** const histograms = image_histo->histograms; in HistogramCombineEntropyBin()
668 for (idx = 0; idx < image_histo->size; ++idx) { in HistogramCombineEntropyBin()
677 HistogramSetRemoveHistogram(image_histo, idx, num_used); in HistogramCombineEntropyBin()
701 HistogramSetRemoveHistogram(image_histo, idx, num_used); in HistogramCombineEntropyBin()
711 for (idx = 0; idx < image_histo->size; ++idx) { in HistogramCombineEntropyBin()
836 static int HistogramCombineGreedy(VP8LHistogramSet* const image_histo, in HistogramCombineGreedy() argument
839 const int image_histo_size = image_histo->size; in HistogramCombineGreedy()
841 VP8LHistogram** const histograms = image_histo->histograms; in HistogramCombineGreedy()
857 if (image_histo->histograms[i] == NULL) continue; in HistogramCombineGreedy()
860 if (image_histo->histograms[j] == NULL) continue; in HistogramCombineGreedy()
872 HistogramSetRemoveHistogram(image_histo, idx2, num_used); in HistogramCombineGreedy()
887 for (i = 0; i < image_histo->size; ++i) { in HistogramCombineGreedy()
888 if (i == idx1 || image_histo->histograms[i] == NULL) continue; in HistogramCombineGreedy()
889 HistoQueuePush(&histo_queue, image_histo->histograms, idx1, i, 0.); in HistogramCombineGreedy()
907 static int HistogramCombineStochastic(VP8LHistogramSet* const image_histo, in HistogramCombineStochastic() argument
915 VP8LHistogram** const histograms = image_histo->histograms; in HistogramCombineStochastic()
935 for (j = 0, iter = 0; iter < image_histo->size; ++iter) { in HistogramCombineStochastic()
991 HistogramSetRemoveHistogram(image_histo, best_idx2, num_used); in HistogramCombineStochastic()
1160 static void RemoveEmptyHistograms(VP8LHistogramSet* const image_histo) { in RemoveEmptyHistograms() argument
1163 for (i = 0, size = 0; i < image_histo->size; ++i) { in RemoveEmptyHistograms()
1164 if (image_histo->histograms[i] == NULL) continue; in RemoveEmptyHistograms()
1165 image_histo->histograms[size++] = image_histo->histograms[i]; in RemoveEmptyHistograms()
1167 image_histo->size = size; in RemoveEmptyHistograms()
1174 VP8LHistogramSet* const image_histo, in VP8LGetHistoImageSymbols() argument
1198 HistogramCopyAndAnalyze(orig_histo, image_histo, &num_used, in VP8LGetHistoImageSymbols()
1210 HistogramAnalyzeEntropyBin(image_histo, bin_map, low_effort); in VP8LGetHistoImageSymbols()
1212 HistogramCombineEntropyBin(image_histo, &num_used, histogram_symbols, in VP8LGetHistoImageSymbols()
1216 OptimizeHistogramSymbols(image_histo, cluster_mappings, num_clusters, in VP8LGetHistoImageSymbols()
1227 if (!HistogramCombineStochastic(image_histo, &num_used, threshold_size, in VP8LGetHistoImageSymbols()
1232 RemoveEmptyHistograms(image_histo); in VP8LGetHistoImageSymbols()
1233 if (!HistogramCombineGreedy(image_histo, &num_used)) { in VP8LGetHistoImageSymbols()
1240 RemoveEmptyHistograms(image_histo); in VP8LGetHistoImageSymbols()
1241 HistogramRemap(orig_histo, image_histo, histogram_symbols); in VP8LGetHistoImageSymbols()