Lines Matching refs:centers
77 const int centers[NUM_MB_SEGMENTS], in SetSegmentAlphas()
80 int min = centers[0], max = centers[0]; in SetSegmentAlphas()
85 if (min > centers[n]) min = centers[n]; in SetSegmentAlphas()
86 if (max < centers[n]) max = centers[n]; in SetSegmentAlphas()
92 const int alpha = 255 * (centers[n] - mid) / (max - min); in SetSegmentAlphas()
93 const int beta = 255 * (centers[n] - min) / (max - min); in SetSegmentAlphas()
149 int centers[NUM_MB_SEGMENTS]; in AssignSegments() local
170 centers[k] = min_a + (n * range_a) / (2 * nb); in AssignSegments()
185 while (n + 1 < nb && abs(a - centers[n + 1]) < abs(a - centers[n])) { in AssignSegments()
202 displaced += abs(centers[n] - new_center); in AssignSegments()
203 centers[n] = new_center; in AssignSegments()
217 mb->alpha_ = centers[map[alpha]]; // for the record. in AssignSegments()
225 SetSegmentAlphas(enc, centers, weighted_average); // pick some alphas. in AssignSegments()