diff options
author | Frank Barchard <fbarchard@google.com> | 2022-11-18 14:13:22 -0800 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-18 23:59:06 +0000 |
commit | ea26d7adb1da4c1bd80e99b9d2f6e9ca0b9cde0e (patch) | |
tree | 7b7bc50856b5b72663917a20cff477cfc9ae3f1b /source/planar_functions.cc | |
parent | 8713ba3f0bddfa19943559981acd5aad2d703d5d (diff) | |
download | libyuv-ea26d7adb1da4c1bd80e99b9d2f6e9ca0b9cde0e.tar.gz |
DetilePlane_16 AVX version
- fix ifdefs for DetilePlane_16 to use 16 bit versions, not 8 bit. (no functional change)
Bug: b/258474032
Change-Id: Ic07e02d9801e21126ebee0ceb5779aa712a493ce
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4034812
Reviewed-by: richard winterton <rrwinterton@gmail.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/planar_functions.cc')
-rw-r--r-- | source/planar_functions.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/planar_functions.cc b/source/planar_functions.cc index 25f577b7..96914e08 100644 --- a/source/planar_functions.cc +++ b/source/planar_functions.cc @@ -1002,7 +1002,7 @@ int DetilePlane_16(const uint16_t* src_y, dst_stride_y = -dst_stride_y; } -#if defined(HAS_DETILEROW_SSE2) +#if defined(HAS_DETILEROW_16_SSE2) if (TestCpuFlag(kCpuHasSSE2)) { DetileRow_16 = DetileRow_16_Any_SSE2; if (IS_ALIGNED(width, 16)) { @@ -1010,7 +1010,15 @@ int DetilePlane_16(const uint16_t* src_y, } } #endif -#if defined(HAS_DETILEROW_NEON) +#if defined(HAS_DETILEROW_16_AVX) + if (TestCpuFlag(kCpuHasAVX)) { + DetileRow_16 = DetileRow_16_Any_AVX; + if (IS_ALIGNED(width, 16)) { + DetileRow_16 = DetileRow_16_AVX; + } + } +#endif +#if defined(HAS_DETILEROW_16_NEON) if (TestCpuFlag(kCpuHasNEON)) { DetileRow_16 = DetileRow_16_Any_NEON; if (IS_ALIGNED(width, 16)) { |