Home | History | Annotate | Download | only in enc

Lines Matching full:distance

26 // Computes quantized pixel value and distance from original value.
28 int* const val, int* const distance) {
31 *distance = 2 * abs(a - *val);
47 int candidate, distance;
49 GetValAndDistance(a, val, bits, &candidate, &distance);
51 ++distance;
53 // Smallest distance but favor i == 0 over i == -1 and i == 1
56 if (distance < min_distance) {
57 min_distance = distance;
73 // Checks if distance between corresponding channel values of pixels a and b