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 /include | |
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 'include')
-rw-r--r-- | include/libyuv/row.h | 9 | ||||
-rw-r--r-- | include/libyuv/version.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/libyuv/row.h b/include/libyuv/row.h index ff6ffe47..08004c0c 100644 --- a/include/libyuv/row.h +++ b/include/libyuv/row.h @@ -757,6 +757,12 @@ extern "C" { #define HAS_RAWTOYJROW_LASX #endif +#if !defined(LIBYUV_DISABLE_RVV) && defined(__riscv) +#define HAS_RAWTOARGBROW_RVV +#define HAS_RAWTORGBAROW_RVV +#define HAS_RAWTORGB24ROW_RVV +#endif + #if defined(_MSC_VER) && !defined(__CLR_VER) && !defined(__clang__) #if defined(VISUALC_HAS_AVX2) #define SIMD_ALIGNED(var) __declspec(align(32)) var @@ -2960,9 +2966,12 @@ void RAWToRGBARow_NEON(const uint8_t* src_raw, uint8_t* dst_rgba, int width); void RAWToARGBRow_MSA(const uint8_t* src_raw, uint8_t* dst_argb, int width); void RAWToARGBRow_LSX(const uint8_t* src_raw, uint8_t* dst_argb, int width); void RAWToARGBRow_LASX(const uint8_t* src_raw, uint8_t* dst_argb, int width); +void RAWToARGBRow_RVV(const uint8_t* src_raw, uint8_t* dst_argb, int width); +void RAWToRGBARow_RVV(const uint8_t* src_raw, uint8_t* dst_rgba, int width); void RAWToRGB24Row_NEON(const uint8_t* src_raw, uint8_t* dst_rgb24, int width); void RAWToRGB24Row_MSA(const uint8_t* src_raw, uint8_t* dst_rgb24, int width); void RAWToRGB24Row_LSX(const uint8_t* src_raw, uint8_t* dst_rgb24, int width); +void RAWToRGB24Row_RVV(const uint8_t* src_raw, uint8_t* dst_rgb24, int width); void RGB565ToARGBRow_NEON(const uint8_t* src_rgb565, uint8_t* dst_argb, int width); diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 56c41fe5..c2b342ef 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1864 +#define LIBYUV_VERSION 1865 #endif // INCLUDE_LIBYUV_VERSION_H_ |