mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavc/h264dsp: unroll R-V V weight16
As VLSE128.V does not exist, we have no other way to deal with latency. T-Head C908: h264_weight16_8_c: 989.4 ( 1.00x) h264_weight16_8_rvv_i32: 193.2 ( 5.12x) SpacemiT X60: h264_weight16_8_c: 874.1 ( 1.00x) h264_weight16_8_rvv_i32: 196.9 ( 4.44x)
This commit is contained in:
parent
4936bb2508
commit
459a1512f1
2 changed files with 16 additions and 7 deletions
|
|
@ -97,7 +97,7 @@ av_cold void ff_h264dsp_init_riscv(H264DSPContext *dsp, const int bit_depth,
|
|||
const bool zvl128b = ff_rv_vlen_least(128);
|
||||
|
||||
if (bit_depth == 8) {
|
||||
if (zvl128b)
|
||||
if (zvl128b && (flags & AV_CPU_FLAG_RVB))
|
||||
dsp->weight_h264_pixels_tab[0] =
|
||||
ff_h264_weight_funcs_8_rvv[0].weight;
|
||||
if (flags & AV_CPU_FLAG_RVV_I64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue