Lines Matching refs:centers
80 const int centers[NUM_MB_SEGMENTS], in SetSegmentAlphas()
83 int min = centers[0], max = centers[0]; in SetSegmentAlphas()
88 if (min > centers[n]) min = centers[n]; in SetSegmentAlphas()
89 if (max < centers[n]) max = centers[n]; in SetSegmentAlphas()
95 const int alpha = 255 * (centers[n] - mid) / (max - min); in SetSegmentAlphas()
96 const int beta = 255 * (centers[n] - min) / (max - min); in SetSegmentAlphas()
148 int centers[NUM_MB_SEGMENTS]; in AssignSegments() local
165 centers[k++] = min_a + (n * range_a) / (2 * nb); in AssignSegments()
180 while (n < nb - 1 && abs(a - centers[n + 1]) < abs(a - centers[n])) { in AssignSegments()
197 displaced += abs(centers[n] - new_center); in AssignSegments()
198 centers[n] = new_center; in AssignSegments()
212 mb->alpha_ = centers[map[alpha]]; // for the record. in AssignSegments()
220 SetSegmentAlphas(enc, centers, weighted_average); // pick some alphas. in AssignSegments()