Home | History | Annotate | Download | only in enc

Lines Matching refs:centers

77                              const int centers[NUM_MB_SEGMENTS],
80 int min = centers[0], max = centers[0];
85 if (min > centers[n]) min = centers[n];
86 if (max < centers[n]) max = centers[n];
92 const int alpha = 255 * (centers[n] - mid) / (max - min);
93 const int beta = 255 * (centers[n] - min) / (max - min);
146 // array bounds of 'centers' with some compilers (noticed with gcc-4.9).
149 int centers[NUM_MB_SEGMENTS];
167 // Spread initial centers evenly
170 centers[k] = min_a + (n * range_a) / (2 * nb);
185 while (n + 1 < nb && abs(a - centers[n + 1]) < abs(a - centers[n])) {
202 displaced += abs(centers[n] - new_center);
203 centers[n] = new_center;
217 mb->alpha_ = centers[map[alpha]]; // for the record.
225 SetSegmentAlphas(enc, centers, weighted_average); // pick some alphas.