Lines Matching refs:idx1

516     const int idx1 = bin_map[bin_offset + 1];  in HistogramCombineEntropyBin()  local
524 VP8LHistogramAdd(histograms[idx1], histograms[idx2], histograms[idx1]); in HistogramCombineEntropyBin()
531 HistogramAddEval(histograms[idx1], histograms[idx2], in HistogramCombineEntropyBin()
541 ((histograms[idx1]->trivial_symbol_ == VP8L_NON_TRIVIAL_SYM) && in HistogramCombineEntropyBin()
545 HistogramSwap(&cur_combo, &histograms[idx1]); in HistogramCombineEntropyBin()
556 UpdateHistogramCost(histograms[idx1]); in HistogramCombineEntropyBin()
576 int idx1; member
638 static void PreparePair(VP8LHistogram** histograms, int idx1, int idx2, in PreparePair() argument
641 if (idx1 > idx2) { in PreparePair()
643 idx2 = idx1; in PreparePair()
644 idx1 = tmp; in PreparePair()
646 pair->idx1 = idx1; in PreparePair()
649 HistogramAddEval(histograms[idx1], histograms[idx2], histos, 0); in PreparePair()
683 const int idx1 = histo_queue.queue[0].idx1; in HistogramCombineGreedy() local
685 VP8LHistogramAdd(histograms[idx2], histograms[idx1], histograms[idx1]); in HistogramCombineGreedy()
686 histograms[idx1]->bit_cost_ = histo_queue.queue[0].cost_combo; in HistogramCombineGreedy()
700 if (p->idx1 == idx1 || p->idx2 == idx1 || in HistogramCombineGreedy()
701 p->idx1 == idx2 || p->idx2 == idx2) { in HistogramCombineGreedy()
716 if (clusters[i] != idx1) { in HistogramCombineGreedy()
717 PreparePair(histograms, idx1, clusters[i], in HistogramCombineGreedy()
768 const uint32_t idx1 = MyRand(&seed) % image_histo_size; in HistogramCombineStochastic() local
772 const uint32_t idx2 = (idx1 + diff + 1) % image_histo_size; in HistogramCombineStochastic()
773 if (idx1 == idx2) { in HistogramCombineStochastic()
778 curr_cost_diff = HistogramAddEval(histograms[idx1], histograms[idx2], in HistogramCombineStochastic()
783 best_idx1 = idx1; in HistogramCombineStochastic()