Lines Matching full:bin_map
455 int16_t* const bin_map, int low_effort) {
478 // bin_map[n][0] for every bin 'n' maintains the counter for the number of
481 num_histos = ++bin_map[bin_offset];
483 // Add histogram i'th index at num_histos (last) position in the bin_map.
484 bin_map[bin_offset + num_histos] = i;
508 int16_t* const bin_map, int bin_depth, int num_bins,
515 const int num_histos = bin_map[bin_offset];
516 const int idx1 = bin_map[bin_offset + 1];
520 const int idx2 = bin_map[bin_offset + n];
877 // The bin_map for every bin follows following semantics:
878 // bin_map[n][0] = num_histo; // The number of histograms in that bin.
879 // bin_map[n][1] = index of first histogram in that bin;
880 // bin_map[n][num_histo] = index of last histogram in that bin;
881 // bin_map[n][num_histo + 1] ... bin_map
883 int16_t* bin_map = NULL;
893 // histograms of small sizes, as bin_map will be very sparse and;
897 bin_map = (int16_t*)WebPSafeCalloc(bin_map_size, sizeof(*bin_map));
898 if (bin_map == NULL) goto Error;
910 HistogramAnalyzeEntropyBin(orig_histo, bin_map, low_effort);
912 cur_combo = HistogramCombineEntropyBin(image_histo, cur_combo, bin_map,
939 WebPSafeFree(bin_map);