diff options
author | Darren Hsieh <darren.hsieh@sifive.com> | 2023-04-01 07:28:00 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-07 18:45:08 +0000 |
commit | e8af6cb2e4e6f2c3a1936cdee2e97f4e39f416f6 (patch) | |
tree | 1bf6553274637af3ced4e16b4bf6f7740ebd0a7e /source/planar_functions.cc | |
parent | 0b3ac31e4d7440a4419c8fa88bb31f9b9dd61a9c (diff) | |
download | libyuv-e8af6cb2e4e6f2c3a1936cdee2e97f4e39f416f6.tar.gz |
Add RAWToARGBRow_RVV,RAWToRGBARow_RVV,RAWToRGB24Row_RVV
* Run on SiFive internal FPGA:
RAWToARGB_Opt (~2x vs scalar)
RAWToRGBA_Opt (~2x vs scalar)
RAWToRGB24_Opt (~1.5x vs scalar)
LIBYUV_WIDTH=1280 LIBYUV_HEIGHT=720 LIBYUV_REPEAT=10
Change-Id: I21a13d646589ea2aa3822cb9225f5191068c285b
Signed-off-by: Darren Hsieh <darren.hsieh@sifive.com>
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4408357
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/planar_functions.cc')
-rw-r--r-- | source/planar_functions.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/planar_functions.cc b/source/planar_functions.cc index e3452f58..b5a2e1a0 100644 --- a/source/planar_functions.cc +++ b/source/planar_functions.cc @@ -3234,6 +3234,11 @@ int RAWToRGB24(const uint8_t* src_raw, } } #endif +#if defined(HAS_RAWTORGB24ROW_RVV) + if (TestCpuFlag(kCpuHasRVV)) { + RAWToRGB24Row = RAWToRGB24Row_RVV; + } +#endif for (y = 0; y < height; ++y) { RAWToRGB24Row(src_raw, dst_rgb24, width); |