diff options
author | Frank Barchard <fbarchard@google.com> | 2023-08-03 19:03:55 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-08-04 18:39:27 +0000 |
commit | 696e61957172a89691249e91c6e8c9d7f0b7e6fc (patch) | |
tree | 24405052a23e1c703a24fb295730912dd5d931b0 /include/libyuv/scale_row.h | |
parent | 506f93e9db5ae83e37e8c49e5d5b7247dfffc817 (diff) | |
download | libyuv-696e61957172a89691249e91c6e8c9d7f0b7e6fc.tar.gz |
RVV check __riscv_v_intrinsic version
Bug: libyuv:965
Change-Id: I9b02abd13ab3345288655fa7a16383f59cf66bb8
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4750230
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
Diffstat (limited to 'include/libyuv/scale_row.h')
-rw-r--r-- | include/libyuv/scale_row.h | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/include/libyuv/scale_row.h b/include/libyuv/scale_row.h index d825a8db..fd136ab7 100644 --- a/include/libyuv/scale_row.h +++ b/include/libyuv/scale_row.h @@ -177,20 +177,32 @@ extern "C" { #if !defined(LIBYUV_DISABLE_RVV) && defined(__riscv_vector) #define HAS_SCALEADDROW_RVV +#define HAS_SCALEUVROWDOWN4_RVV +#define HAS_SCALEUVROWDOWNEVEN_RVV +#if __riscv_v_intrinsic == 11000 #define HAS_SCALEARGBROWDOWN2_RVV -#define HAS_SCALEARGBROWDOWNEVEN_RVV +#define HAS_SCALEARGBROWDOWN2BOX_RVV +#define HAS_SCALEARGBROWDOWN2LINEAR_RVV +#define HAS_SCALEARGBROWDOWNEVENBOX_RVV #define HAS_SCALEROWDOWN2_RVV +#define HAS_SCALEROWDOWN2BOX_RVV +#define HAS_SCALEROWDOWN2LINEAR_RVV +#define HAS_SCALEROWDOWN34_0_BOX_RVV +#define HAS_SCALEROWDOWN34_1_BOX_RVV #define HAS_SCALEROWDOWN34_RVV +#define HAS_SCALEROWDOWN38_2_BOX_RVV +#define HAS_SCALEROWDOWN38_3_BOX_RVV #define HAS_SCALEROWDOWN38_RVV #define HAS_SCALEROWDOWN4_RVV -#define HAS_SCALEROWUP2_LINEAR_RVV +#define HAS_SCALEROWDOWN4BOX_RVV #define HAS_SCALEROWUP2_BILINEAR_RVV +#define HAS_SCALEROWUP2_LINEAR_RVV #define HAS_SCALEUVROWDOWN2_RVV -#define HAS_SCALEUVROWDOWN2LINEAR_RVV #define HAS_SCALEUVROWDOWN2BOX_RVV -#define HAS_SCALEUVROWDOWNEVEN_RVV -#define HAS_SCALEUVROWUP2_LINEAR_RVV +#define HAS_SCALEUVROWDOWN2LINEAR_RVV #define HAS_SCALEUVROWUP2_BILINEAR_RVV +#define HAS_SCALEUVROWUP2_LINEAR_RVV +#endif #endif // Scale ARGB vertically with bilinear interpolation. @@ -1849,17 +1861,17 @@ void ScaleRowDown34_1_Box_RVV(const uint8_t* src_ptr, uint8_t* dst_ptr, int dst_width); void ScaleRowDown38_RVV(const uint8_t* src_ptr, - ptrdiff_t src_stride, - uint8_t* dst, - int dst_width); + ptrdiff_t src_stride, + uint8_t* dst, + int dst_width); void ScaleRowDown38_3_Box_RVV(const uint8_t* src_ptr, - ptrdiff_t src_stride, - uint8_t* dst_ptr, - int dst_width); + ptrdiff_t src_stride, + uint8_t* dst_ptr, + int dst_width); void ScaleRowDown38_2_Box_RVV(const uint8_t* src_ptr, - ptrdiff_t src_stride, - uint8_t* dst_ptr, - int dst_width); + ptrdiff_t src_stride, + uint8_t* dst_ptr, + int dst_width); void ScaleRowUp2_Linear_RVV(const uint8_t* src_ptr, uint8_t* dst_ptr, |