Lines Matching refs:centers
78 const int centers[NUM_MB_SEGMENTS],
81 int min = centers[0], max = centers[0];
86 if (min > centers[n]) min = centers[n];
87 if (max < centers[n]) max = centers[n];
93 const int alpha = 255 * (centers[n] - mid) / (max - min);
94 const int beta = 255 * (centers[n] - min) / (max - min);
146 int centers[NUM_MB_SEGMENTS];
161 // Spread initial centers evenly
163 centers[k++] = min_a + (n * range_a) / (2 * nb);
178 while (n < nb - 1 && abs(a - centers[n + 1]) < abs(a - centers[n])) {
195 displaced += abs(centers[n] - new_center);
196 centers[n] = new_center;
210 mb->alpha_ = centers[map[alpha]]; // for the record.
218 SetSegmentAlphas(enc, centers, weighted_average); // pick some alphas.