Home | History | Annotate | Download | only in enc

Lines Matching refs:bin_map

464     VP8LHistogramSet* const image_histo, int16_t* const bin_map) {
485 // bin_map[n][0] for every bin 'n' maintains the counter for the number of
488 num_histos = ++bin_map[bin_offset];
490 // Add histogram i'th index at num_histos (last) position in the bin_map.
491 bin_map[bin_offset + num_histos] = i;
526 int16_t* const bin_map, int bin_depth,
534 const int num_histos = bin_map[bin_offset];
535 const int idx1 = bin_map[bin_offset + 1];
538 const int idx2 = bin_map[bin_offset + n];
689 // The bin_map for every bin follows following semantics:
690 // bin_map[n][0] = num_histo; // The number of histograms in that bin.
691 // bin_map[n][1] = index of first histogram in that bin;
692 // bin_map[n][num_histo] = index of last histogram in that bin;
693 // bin_map[n][num_histo + 1] ... bin_map[n][bin_depth - 1] = un-used indices.
695 int16_t* bin_map = NULL;
705 // histograms of small sizes, as bin_map will be very sparse and;
710 bin_map = (int16_t*)WebPSafeCalloc(bin_map_size, sizeof(*bin_map));
711 if (bin_map == NULL) goto Error;
719 if (bin_map != NULL) {
722 HistogramAnalyzeEntropyBin(orig_histo, bin_map);
725 bin_map, bin_depth, combine_cost_factor);
737 WebPSafeFree(bin_map);