diff options
author | Frank Barchard <fbarchard@google.com> | 2020-10-12 16:06:09 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-13 21:42:15 +0000 |
commit | d730dc2f18569a760f89218bc331f6a4b6ce88f9 (patch) | |
tree | 3b2fd061a23aae9205f8aaf2b43ce8cadcc0d910 /source/scale_common.cc | |
parent | b6f3cff282020500270ae929aa31ee5a18e5fbab (diff) | |
download | libyuv-d730dc2f18569a760f89218bc331f6a4b6ce88f9.tar.gz |
2x down sample for UV planes ported to SSSE3 / NEON
Bug: libuyv:838
Change-Id: Id9fb3282a3e86143d76b5e0cb557f0523a88b3c8
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2465578
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, 2 insertions, 4 deletions
diff --git a/source/scale_common.cc b/source/scale_common.cc index fd4cbd03..de3b22f2 100644 --- a/source/scale_common.cc +++ b/source/scale_common.cc @@ -1063,11 +1063,9 @@ 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; } |