mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00:00
lavc/pixblockdsp: fix compilation for RV32IMA
This commit is contained in:
parent
63922ba5dc
commit
d3acffae7a
@ -48,6 +48,7 @@ av_cold void ff_pixblockdsp_init_riscv(PixblockDSPContext *c,
|
||||
#if HAVE_RV
|
||||
int cpu_flags = av_get_cpu_flags();
|
||||
|
||||
#if __riscv_xlen >= 64
|
||||
if (cpu_flags & AV_CPU_FLAG_RVI) {
|
||||
if (high_bit_depth)
|
||||
c->get_pixels = ff_get_pixels_16_rvi;
|
||||
@ -61,7 +62,7 @@ av_cold void ff_pixblockdsp_init_riscv(PixblockDSPContext *c,
|
||||
else
|
||||
c->get_pixels_unaligned = ff_get_pixels_8_rvi;
|
||||
}
|
||||
|
||||
#endif
|
||||
#if HAVE_RVV
|
||||
if ((cpu_flags & AV_CPU_FLAG_RVV_I32) && ff_rv_vlen_least(128)) {
|
||||
c->diff_pixels = ff_diff_pixels_unaligned_rvv;
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include "libavutil/riscv/asm.S"
|
||||
|
||||
#if __riscv_xlen >= 64
|
||||
func ff_get_pixels_8_rvi
|
||||
lpad 0
|
||||
.irp row, 0, 1, 2, 3, 4, 5, 6, 7
|
||||
@ -58,3 +59,4 @@ func ff_get_pixels_16_rvi
|
||||
.endr
|
||||
ret
|
||||
endfunc
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user