Home | History | Annotate | Download | only in enc

Lines Matching defs:idx1

610 // Pair of histograms. Negative idx1 value means that pair is out-of-date.
612 int idx1;
674 static void PreparePair(VP8LHistogram** histograms, int idx1, int idx2,
680 if (idx1 > idx2) {
682 idx2 = idx1;
683 idx1 = tmp;
685 pair->idx1 = idx1;
687 h1 = histograms[idx1];
724 const int idx1 = histo_queue.queue[0].idx1;
726 HistogramAdd(histograms[idx2], histograms[idx1], histograms[idx1]);
727 histograms[idx1]->bit_cost_ = histo_queue.queue[0].cost_combo;
741 if (p->idx1 == idx1 || p->idx2 == idx1 ||
742 p->idx1 == idx2 || p->idx2 == idx2) {
757 if (clusters[i] != idx1) {
758 PreparePair(histograms, idx1, clusters[i],
820 uint32_t idx1, idx2;
823 idx1 = (uint32_t)j;
829 idx1 = MyRand(&seed) % image_histo_size;
830 idx2 = (idx1 + diff + 1) % image_histo_size;
831 if (idx1 == idx2) {
837 curr_cost_diff = HistogramAddEval(histograms[idx1], histograms[idx2],
842 best_idx1 = idx1;