aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/riscv/h264dsp_init.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi@remlab.net>2024-05-12 13:54:33 +0300
committerRémi Denis-Courmont <remi@remlab.net>2024-05-19 10:03:49 +0300
commitfa47299516d0016e87ec29d974bc3a155b618066 (patch)
tree725477dbda8d5c38eea2f1afc3213c105eff5cb8 /libavcodec/riscv/h264dsp_init.c
parent4ad5b9c8db737f3018360e179121fc0a9b7e7d1b (diff)
downloadffmpeg-fa47299516d0016e87ec29d974bc3a155b618066.tar.gz
lavc/startcode: add R-V V startcode_find_candidate
Diffstat (limited to 'libavcodec/riscv/h264dsp_init.c')
-rw-r--r--libavcodec/riscv/h264dsp_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/riscv/h264dsp_init.c b/libavcodec/riscv/h264dsp_init.c
index 60c84734cd..dbbf3db400 100644
--- a/libavcodec/riscv/h264dsp_init.c
+++ b/libavcodec/riscv/h264dsp_init.c
@@ -27,6 +27,7 @@
#include "libavcodec/h264dsp.h"
extern int ff_startcode_find_candidate_rvb(const uint8_t *, int);
+extern int ff_startcode_find_candidate_rvv(const uint8_t *, int);
av_cold void ff_h264dsp_init_riscv(H264DSPContext *dsp, const int bit_depth,
const int chroma_format_idc)
@@ -36,5 +37,9 @@ av_cold void ff_h264dsp_init_riscv(H264DSPContext *dsp, const int bit_depth,
if (flags & AV_CPU_FLAG_RVB_BASIC)
dsp->startcode_find_candidate = ff_startcode_find_candidate_rvb;
+# if HAVE_RVV
+ if (flags & AV_CPU_FLAG_RVV_I32)
+ dsp->startcode_find_candidate = ff_startcode_find_candidate_rvv;
+# endif
#endif
}