diff options
author | Frank Barchard <fbarchard@google.com> | 2015-12-17 15:24:06 -0800 |
---|---|---|
committer | Frank Barchard <fbarchard@google.com> | 2015-12-17 15:24:06 -0800 |
commit | f4447745ae646749562cff00e9d8fbc3b9043580 (patch) | |
tree | 0a26c337f3638707b8e6c3d5521b7680d80297ec /source/scale_common.cc | |
parent | 1ccbf8fb7b1d84d37eabb26de933f841daf0ade7 (diff) | |
download | libyuv-f4447745ae646749562cff00e9d8fbc3b9043580.tar.gz |
Add rounding to InterpolateRow for improved quality and consistency.
Remove inaccurate specializations for 1/4 and 3/4, since they round
incorrectly. Specialize for 100% and 50% are kept due to performance.
Make C and ARM code match SSSE3.
Make unittests expect zero difference.
BUG=libyuv:535
R=harryjin@google.com
Review URL: https://codereview.chromium.org/1533643005 .
Diffstat (limited to 'source/scale_common.cc')
-rw-r--r-- | source/scale_common.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/scale_common.cc b/source/scale_common.cc index 1711f3d5..f5c908d0 100644 --- a/source/scale_common.cc +++ b/source/scale_common.cc @@ -876,14 +876,6 @@ void ScalePlaneVertical(int src_height, assert(dst_width > 0); assert(dst_height > 0); src_argb += (x >> 16) * bpp; -#if defined(HAS_INTERPOLATEROW_SSE2) - if (TestCpuFlag(kCpuHasSSE2)) { - InterpolateRow = InterpolateRow_Any_SSE2; - if (IS_ALIGNED(dst_width_bytes, 16)) { - InterpolateRow = InterpolateRow_SSE2; - } - } -#endif #if defined(HAS_INTERPOLATEROW_SSSE3) if (TestCpuFlag(kCpuHasSSSE3)) { InterpolateRow = InterpolateRow_Any_SSSE3; |