diff options
author | Darren Hsieh <darren.hsieh@sifive.com> | 2023-05-09 01:39:06 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-10 19:50:56 +0000 |
commit | 497ea35688f997edb4c42ef1cdd9f2ab4efb9e29 (patch) | |
tree | f1b3303372165697ab22583783afb8c2b1525e2e /include | |
parent | 964d963afb164e768919f5bd2284202d87a3d37c (diff) | |
download | libyuv-497ea35688f997edb4c42ef1cdd9f2ab4efb9e29.tar.gz |
Enable I444To{ARGB,RGB24}Row_RVV
Run on SiFive internal FPGA:
I444ToARGB_Opt (~16x vs scalar)
I444ToRGB24_Opt (~10x vs scalar)
LIBYUV_WIDTH=1280 LIBYUV_HEIGHT=720 LIBYUV_REPEAT=10
Change-Id: Idae7dc46ef648beaa14b58ba3eb56b67b17c9b3b
Signed-off-by: Darren Hsieh <darren.hsieh@sifive.com>
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4520761
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libyuv/row.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libyuv/row.h b/include/libyuv/row.h index e8e4ae5b..a8375606 100644 --- a/include/libyuv/row.h +++ b/include/libyuv/row.h @@ -785,6 +785,8 @@ extern "C" { #define HAS_I422TOARGBROW_RVV #define HAS_I422TORGB24ROW_RVV #define HAS_I422TORGBAROW_RVV +#define HAS_I444TOARGBROW_RVV +#define HAS_I444TORGB24ROW_RVV #define HAS_MERGEARGBROW_RVV #define HAS_MERGERGBROW_RVV #define HAS_MERGEXRGBROW_RVV @@ -1062,6 +1064,18 @@ void UYVYToARGBRow_NEON(const uint8_t* src_uyvy, uint8_t* dst_argb, const struct YuvConstants* yuvconstants, int width); +void I444ToARGBRow_RVV(const uint8_t* src_y, + const uint8_t* src_u, + const uint8_t* src_v, + uint8_t* dst_argb, + const struct YuvConstants* yuvconstants, + int width); +void I444ToRGB24Row_RVV(const uint8_t* src_y, + const uint8_t* src_u, + const uint8_t* src_v, + uint8_t* dst_rgb24, + const struct YuvConstants* yuvconstants, + int width); void I422ToARGBRow_RVV(const uint8_t* src_y, const uint8_t* src_u, const uint8_t* src_v, |