diff options
Diffstat (limited to 'vp8/common')
-rw-r--r-- | vp8/common/riscv/sixtap_predict_rvv.c | 63 | ||||
-rw-r--r-- | vp8/common/rtcd_defs.pl | 8 |
2 files changed, 67 insertions, 4 deletions
diff --git a/vp8/common/riscv/sixtap_predict_rvv.c b/vp8/common/riscv/sixtap_predict_rvv.c new file mode 100644 index 000000000..0345d026e --- /dev/null +++ b/vp8/common/riscv/sixtap_predict_rvv.c @@ -0,0 +1,63 @@ +#include <riscv_vector.h> +#include <stdio.h> +#include "./vpx_config.h" +#include "./vp8_rtcd.h" + +#define UNUSED(x) (void)(x) + +void vp8_sixtap_predict4x4_rvv(unsigned char *src_ptr, int src_pixels_per_line, + int xoffset, int yoffset, + unsigned char *dst_ptr, int dst_pitch) +{ + UNUSED(src_ptr); + UNUSED(src_pixels_per_line); + UNUSED(xoffset); + UNUSED(yoffset); + UNUSED(dst_ptr); + UNUSED(dst_pitch); + + printf("--> vp8_sixtap_predict4x4_rvv\n"); +} + +void vp8_sixtap_predict8x4_rvv(unsigned char *src_ptr, int src_pixels_per_line, + int xoffset, int yoffset, + unsigned char *dst_ptr, int dst_pitch) +{ + UNUSED(src_ptr); + UNUSED(src_pixels_per_line); + UNUSED(xoffset); + UNUSED(yoffset); + UNUSED(dst_ptr); + UNUSED(dst_pitch); + + printf("--> vp8_sixtap_predict8x4_rvv\n"); +} + +void vp8_sixtap_predict8x8_rvv(unsigned char *src_ptr, int src_pixels_per_line, + int xoffset, int yoffset, + unsigned char *dst_ptr, int dst_pitch) +{ + UNUSED(src_ptr); + UNUSED(src_pixels_per_line); + UNUSED(xoffset); + UNUSED(yoffset); + UNUSED(dst_ptr); + UNUSED(dst_pitch); + + printf("--> vp8_sixtap_predict8x8_rvv\n"); +} + +void vp8_sixtap_predict16x16_rvv(unsigned char *src_ptr, + int src_pixels_per_line, int xoffset, + int yoffset, unsigned char *dst_ptr, + int dst_pitch) +{ + UNUSED(src_ptr); + UNUSED(src_pixels_per_line); + UNUSED(xoffset); + UNUSED(yoffset); + UNUSED(dst_ptr); + UNUSED(dst_pitch); + + printf("--> vp8_sixtap_predict16x16_rvv\n"); +} diff --git a/vp8/common/rtcd_defs.pl b/vp8/common/rtcd_defs.pl index 739a61284..3831a3c35 100644 --- a/vp8/common/rtcd_defs.pl +++ b/vp8/common/rtcd_defs.pl @@ -146,16 +146,16 @@ if (vpx_config("CONFIG_POSTPROC") eq "yes") { # Subpixel # add_proto qw/void vp8_sixtap_predict16x16/, "unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch"; -specialize qw/vp8_sixtap_predict16x16 sse2 ssse3 neon dspr2 msa mmi lsx/; +specialize qw/vp8_sixtap_predict16x16 sse2 ssse3 neon dspr2 msa mmi lsx rvv/; add_proto qw/void vp8_sixtap_predict8x8/, "unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch"; -specialize qw/vp8_sixtap_predict8x8 sse2 ssse3 neon dspr2 msa mmi lsx/; +specialize qw/vp8_sixtap_predict8x8 sse2 ssse3 neon dspr2 msa mmi lsx rvv/; add_proto qw/void vp8_sixtap_predict8x4/, "unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch"; -specialize qw/vp8_sixtap_predict8x4 sse2 ssse3 neon dspr2 msa mmi/; +specialize qw/vp8_sixtap_predict8x4 sse2 ssse3 neon dspr2 msa mmi rvv/; add_proto qw/void vp8_sixtap_predict4x4/, "unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch"; -specialize qw/vp8_sixtap_predict4x4 mmx ssse3 neon dspr2 msa mmi lsx/; +specialize qw/vp8_sixtap_predict4x4 mmx ssse3 neon dspr2 msa mmi lsx rvv/; add_proto qw/void vp8_bilinear_predict16x16/, "unsigned char *src_ptr, int src_pixels_per_line, int xoffset, int yoffset, unsigned char *dst_ptr, int dst_pitch"; specialize qw/vp8_bilinear_predict16x16 sse2 ssse3 neon msa/; |