Lines Matching refs:idx1
15 const HistogramType* out, const uint32_t* cluster_size, uint32_t idx1,
20 p.idx1 = p.idx2 = 0;
22 if (idx1 == idx2) {
25 if (idx2 < idx1) {
27 idx2 = idx1;
28 idx1 = t;
30 p.idx1 = idx1;
32 p.cost_diff = 0.5 * ClusterCostDiff(cluster_size[idx1], cluster_size[idx2]);
33 p.cost_diff -= out[idx1].bit_cost_;
36 if (out[idx1].total_count_ == 0) {
40 p.cost_combo = out[idx1].bit_cost_;
45 HistogramType combo = out[idx1];
86 size_t idx1;
87 for (idx1 = 0; idx1 < num_clusters; ++idx1) {
89 for (idx2 = idx1 + 1; idx2 < num_clusters; ++idx2) {
90 FN(BrotliCompareAndPushToQueue)(out, cluster_size, clusters[idx1],
106 best_idx1 = pairs[0].idx1;
129 if (p->idx1 == best_idx1 || p->idx2 == best_idx1 ||
130 p->idx1 == best_idx2 || p->idx2 == best_idx2) {