Lines Matching refs:num_used
185 int* const num_used) { in HistogramSetRemoveHistogram() argument
188 --*num_used; in HistogramSetRemoveHistogram()
584 int* const num_used, in HistogramCopyAndAnalyze() argument
587 int num_used_orig = *num_used; in HistogramCopyAndAnalyze()
603 HistogramSetRemoveHistogram(image_histo, i, num_used); in HistogramCopyAndAnalyze()
645 int* num_used, in HistogramCombineEntropyBin() argument
668 for (idx = 0; idx < *num_used; ++idx) cluster_mappings[idx] = idx; in HistogramCombineEntropyBin()
678 HistogramSetRemoveHistogram(image_histo, idx, num_used); in HistogramCombineEntropyBin()
702 HistogramSetRemoveHistogram(image_histo, idx, num_used); in HistogramCombineEntropyBin()
838 int* const num_used) { in HistogramCombineGreedy() argument
873 HistogramSetRemoveHistogram(image_histo, idx2, num_used); in HistogramCombineGreedy()
909 int* const num_used, int min_cluster_size, in HistogramCombineStochastic() argument
914 const int outer_iters = *num_used; in HistogramCombineStochastic()
927 if (*num_used < min_cluster_size) { in HistogramCombineStochastic()
932 mappings = (int*) WebPSafeMalloc(*num_used, sizeof(*mappings)); in HistogramCombineStochastic()
940 assert(j == *num_used); in HistogramCombineStochastic()
944 iter < outer_iters && *num_used >= min_cluster_size && in HistogramCombineStochastic()
951 const uint32_t rand_range = (*num_used - 1) * (*num_used); in HistogramCombineStochastic()
954 const int num_tries = (*num_used) / 2; in HistogramCombineStochastic()
957 for (j = 0; *num_used >= 2 && j < num_tries; ++j) { in HistogramCombineStochastic()
961 uint32_t idx1 = tmp / (*num_used - 1); in HistogramCombineStochastic()
962 uint32_t idx2 = tmp % (*num_used - 1); in HistogramCombineStochastic()
983 mapping_index = (int*) bsearch(&best_idx2, mappings, *num_used, in HistogramCombineStochastic()
987 ((*num_used) - (mapping_index - mappings) - 1)); in HistogramCombineStochastic()
992 HistogramSetRemoveHistogram(image_histo, best_idx2, num_used); in HistogramCombineStochastic()
1034 *do_greedy = (*num_used <= min_cluster_size); in HistogramCombineStochastic()
1192 int num_used = image_histo_raw_size; in VP8LGetHistoImageSymbols() local
1199 HistogramCopyAndAnalyze(orig_histo, image_histo, &num_used, in VP8LGetHistoImageSymbols()
1203 (num_used > entropy_combine_num_bins * 2) && (quality < 100); in VP8LGetHistoImageSymbols()
1209 const uint32_t num_clusters = num_used; in VP8LGetHistoImageSymbols()
1213 HistogramCombineEntropyBin(image_histo, &num_used, histogram_symbols, in VP8LGetHistoImageSymbols()
1228 if (!HistogramCombineStochastic(image_histo, &num_used, threshold_size, in VP8LGetHistoImageSymbols()
1234 if (!HistogramCombineGreedy(image_histo, &num_used)) { in VP8LGetHistoImageSymbols()