d1 = a - d;
d2 = a - d + b - c;
- top[48] = ((a << 3) - d1 + rnd1) >> 3;
- top[56] = ((b << 3) - d2 + rnd2) >> 3;
- bottom[0] = ((c << 3) + d2 + rnd1) >> 3;
- bottom[8] = ((d << 3) + d1 + rnd2) >> 3;
+ top[48] = ((a * 8) - d1 + rnd1) >> 3;
+ top[56] = ((b * 8) - d2 + rnd2) >> 3;
+ bottom[0] = ((c * 8) + d2 + rnd1) >> 3;
+ bottom[8] = ((d * 8) + d1 + rnd2) >> 3;
bottom++;
top++;
d1 = a - d;
d2 = a - d + b - c;
- left[6] = ((a << 3) - d1 + rnd1) >> 3;
- left[7] = ((b << 3) - d2 + rnd2) >> 3;
- right[0] = ((c << 3) + d2 + rnd1) >> 3;
- right[1] = ((d << 3) + d1 + rnd2) >> 3;
+ left[6] = ((a * 8) - d1 + rnd1) >> 3;
+ left[7] = ((b * 8) - d2 + rnd2) >> 3;
+ right[0] = ((c * 8) + d2 + rnd1) >> 3;
+ right[1] = ((d * 8) + d1 + rnd2) >> 3;
right += right_stride;
left += left_stride;