|
|
|
@ -34,6 +34,8 @@ void ff_get_pixels_16_rvi(int16_t *block, const uint8_t *pixels, |
|
|
|
|
|
|
|
|
|
void ff_get_pixels_8_rvv(int16_t *block, const uint8_t *pixels, |
|
|
|
|
ptrdiff_t stride); |
|
|
|
|
void ff_get_pixels_16_rvv(int16_t *block, const uint8_t *pixels, |
|
|
|
|
ptrdiff_t stride); |
|
|
|
|
|
|
|
|
|
av_cold void ff_pixblockdsp_init_riscv(PixblockDSPContext *c, |
|
|
|
|
AVCodecContext *avctx, |
|
|
|
@ -50,7 +52,9 @@ av_cold void ff_pixblockdsp_init_riscv(PixblockDSPContext *c, |
|
|
|
|
|
|
|
|
|
#if HAVE_RVV |
|
|
|
|
if ((cpu_flags & AV_CPU_FLAG_RVV_I32) && ff_get_rv_vlenb() >= 16) { |
|
|
|
|
if (!high_bit_depth) |
|
|
|
|
if (high_bit_depth) |
|
|
|
|
c->get_pixels_unaligned = c->get_pixels = ff_get_pixels_16_rvv; |
|
|
|
|
else |
|
|
|
|
c->get_pixels_unaligned = c->get_pixels = ff_get_pixels_8_rvv; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|