diff options
author | Frank Barchard <fbarchard@google.com> | 2020-10-28 11:31:10 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-28 20:41:59 +0000 |
commit | cec28e70882ce6fb302f5a04137e919e779ee291 (patch) | |
tree | 8402e14c729ee479bc982d7e32c50d6d1d59a829 /source/scale_common.cc | |
parent | 5c4dc242f41861f6b0764860e6492200023a89c4 (diff) | |
download | libyuv-cec28e70882ce6fb302f5a04137e919e779ee291.tar.gz |
PlaneScale, UVScale and ARGBScale test 3x and 4x down sample.
Intel SkylakeX
UVTest3x (1925 ms)
UVTest4x (2915 ms)
PlaneTest3x (2040 ms)
PlaneTest4x (4292 ms)
ARGBTest3x (2079 ms)
ARGBTest4x (1854 ms)
Pixel 2
ARGBTest3x (3602 ms)
ARGBTest4x (4064 ms)
PlaneTest3x (3331 ms)
PlaneTest4x (8977 ms)
UVTest3x (3473 ms)
UVTest4x (6970 ms)
Bug: b/171798872, b/171884264
Change-Id: Iebc70fed907857b6cb71a9baf2aba9861ef1e3f7
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2505601
Reviewed-by: richard winterton <rrwinterton@gmail.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/scale_common.cc')
-rw-r--r-- | source/scale_common.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/scale_common.cc b/source/scale_common.cc index de3b22f2..fd4cbd03 100644 --- a/source/scale_common.cc +++ b/source/scale_common.cc @@ -1063,9 +1063,11 @@ void ScaleUVRowDown2Box_C(const uint8_t* src_uv, int x; for (x = 0; x < dst_width; ++x) { dst_uv[0] = (src_uv[0] + src_uv[2] + src_uv[src_stride] + - src_uv[src_stride + 2] + 2) >> 2; + src_uv[src_stride + 2] + 2) >> + 2; dst_uv[1] = (src_uv[1] + src_uv[3] + src_uv[src_stride + 1] + - src_uv[src_stride + 3] + 2) >> 2; + src_uv[src_stride + 3] + 2) >> + 2; src_uv += 4; dst_uv += 2; } |