diff options
author | jinbo <jinbo@loongson.cn> | 2023-12-28 16:20:59 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2023-12-29 00:45:20 +0100 |
commit | 545686e49e37242a727de3f00e6bf1aef861449e (patch) | |
tree | 93ad7b09284dd005e39d8f72c4345c4dcdb182fc | |
parent | b2c82b23b9fd9906a98b53af5ee8eadd08eb95d9 (diff) | |
download | ffmpeg-545686e49e37242a727de3f00e6bf1aef861449e.tar.gz |
avcodec/hevc: Add init for sao_edge_filter
Forgot to init c->sao_edge_filter[idx] when idx=0/1/2/3.
After this patch, the speedup of decoding H265 4K 30FPS
30Mbps on 3A6000 is about 7% (42fps==>45fps).
Change-Id: I521999b397fa72b931a23c165cf45f276440cdfb
Reviewed-by: yinshiyou-hf@loongson.cn
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/loongarch/hevcdsp_init_loongarch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/loongarch/hevcdsp_init_loongarch.c b/libavcodec/loongarch/hevcdsp_init_loongarch.c index 22739c6f5b..5a96f3a4c9 100644 --- a/libavcodec/loongarch/hevcdsp_init_loongarch.c +++ b/libavcodec/loongarch/hevcdsp_init_loongarch.c @@ -167,6 +167,10 @@ void ff_hevc_dsp_init_loongarch(HEVCDSPContext *c, const int bit_depth) c->put_hevc_qpel_uni_w[8][1][1] = ff_hevc_put_hevc_uni_w_qpel_hv48_8_lsx; c->put_hevc_qpel_uni_w[9][1][1] = ff_hevc_put_hevc_uni_w_qpel_hv64_8_lsx; + c->sao_edge_filter[0] = ff_hevc_sao_edge_filter_8_lsx; + c->sao_edge_filter[1] = ff_hevc_sao_edge_filter_8_lsx; + c->sao_edge_filter[2] = ff_hevc_sao_edge_filter_8_lsx; + c->sao_edge_filter[3] = ff_hevc_sao_edge_filter_8_lsx; c->sao_edge_filter[4] = ff_hevc_sao_edge_filter_8_lsx; c->hevc_h_loop_filter_luma = ff_hevc_loop_filter_luma_h_8_lsx; |