diff options
author | Darren Hsieh <darren.hsieh@sifive.com> | 2023-05-23 02:03:37 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-30 09:10:35 +0000 |
commit | d14bd701c83375a982fe9e237a71cc06bef056e7 (patch) | |
tree | 0ceb4ba8b400be8576df3aceb1afcc4dba0df919 /source/rotate.cc | |
parent | 78d168054b9b5c98eb0e9e9a95a09f252ea95be3 (diff) | |
download | libyuv-d14bd701c83375a982fe9e237a71cc06bef056e7.tar.gz |
[RVV] Enable CopyRow_RVV, InterpolateRow_RVV, {Merge,Split}UVRow_RVV
* Run on SiFive internal FPGA:
MergeUVPlane_Opt(~6x vs scalar)
SplitUVPlane_Opt(~6x vs scalar)
TestCopyPlane(~8x vs scalar)
ARGBInterpolate0_Opt(~10x vs scalar)
ARGBInterpolate64_Opt(~9x vs scalar)
ARGBInterpolate168_Opt(~9x vs scalar)
ARGBInterpolate192_Opt(~8.5x vs scalar)
ARGBInterpolate255_Opt(~8x vs scalar)
Bug: libyuv:956
Change-Id: I8372341865f75f42e30371ef943d5c2e4be7b79a
Signed-off-by: Darren Hsieh <darren.hsieh@sifive.com>
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4574186
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/rotate.cc')
-rw-r--r-- | source/rotate.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/rotate.cc b/source/rotate.cc index 6797ff02..8d3978c7 100644 --- a/source/rotate.cc +++ b/source/rotate.cc @@ -214,6 +214,11 @@ void RotatePlane180(const uint8_t* src, CopyRow = IS_ALIGNED(width, 32) ? CopyRow_NEON : CopyRow_Any_NEON; } #endif +#if defined(HAS_COPYROW_RVV) + if (TestCpuFlag(kCpuHasRVV)) { + CopyRow = CopyRow_RVV; + } +#endif // Odd height will harmlessly mirror the middle row twice. for (y = 0; y < half_height; ++y) { |