diff options
Diffstat (limited to 'source/scale_common.cc')
-rw-r--r-- | source/scale_common.cc | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/source/scale_common.cc b/source/scale_common.cc index 4af84321..f4f23397 100644 --- a/source/scale_common.cc +++ b/source/scale_common.cc @@ -1232,21 +1232,29 @@ void ScaleUVRowUp2_Bilinear_C(const uint8_t* src_ptr, assert((dst_width % 2 == 0) && (dst_width >= 0)); for (x = 0; x < src_width; ++x) { d[4 * x + 0] = (s[2 * x + 0] * 9 + s[2 * x + 2] * 3 + t[2 * x + 0] * 3 + - t[2 * x + 2] * 1 + 8) >> 4; + t[2 * x + 2] * 1 + 8) >> + 4; d[4 * x + 1] = (s[2 * x + 1] * 9 + s[2 * x + 3] * 3 + t[2 * x + 1] * 3 + - t[2 * x + 3] * 1 + 8) >> 4; + t[2 * x + 3] * 1 + 8) >> + 4; d[4 * x + 2] = (s[2 * x + 0] * 3 + s[2 * x + 2] * 9 + t[2 * x + 0] * 1 + - t[2 * x + 2] * 3 + 8) >> 4; + t[2 * x + 2] * 3 + 8) >> + 4; d[4 * x + 3] = (s[2 * x + 1] * 3 + s[2 * x + 3] * 9 + t[2 * x + 1] * 1 + - t[2 * x + 3] * 3 + 8) >> 4; + t[2 * x + 3] * 3 + 8) >> + 4; e[4 * x + 0] = (s[2 * x + 0] * 3 + s[2 * x + 2] * 1 + t[2 * x + 0] * 9 + - t[2 * x + 2] * 3 + 8) >> 4; + t[2 * x + 2] * 3 + 8) >> + 4; e[4 * x + 1] = (s[2 * x + 1] * 3 + s[2 * x + 3] * 1 + t[2 * x + 1] * 9 + - t[2 * x + 3] * 3 + 8) >> 4; + t[2 * x + 3] * 3 + 8) >> + 4; e[4 * x + 2] = (s[2 * x + 0] * 1 + s[2 * x + 2] * 3 + t[2 * x + 0] * 3 + - t[2 * x + 2] * 9 + 8) >> 4; + t[2 * x + 2] * 9 + 8) >> + 4; e[4 * x + 3] = (s[2 * x + 1] * 1 + s[2 * x + 3] * 3 + t[2 * x + 1] * 3 + - t[2 * x + 3] * 9 + 8) >> 4; + t[2 * x + 3] * 9 + 8) >> + 4; } } |