History

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).

jinbo committed 2 years ago

Commit 545686e1 parent b2c82b21 file · +4 −0Browse files

Unified · Split

libavcodec/loongarch/hevcdsp_init_loongarch.c+4−0
@@ -167,6 +167,10 @@ void ff_hevc_dsp_init_loongarch(HEVCDSPContext *c, const int bit_depth) · 166 unmodified lines
167 c->put_hevc_qpel_uni_w[8][1][1] = ff_hevc_put_hevc_uni_w_qpel_hv48_8_lsx;167 c->put_hevc_qpel_uni_w[8][1][1] = ff_hevc_put_hevc_uni_w_qpel_hv48_8_lsx;
168 c->put_hevc_qpel_uni_w[9][1][1] = ff_hevc_put_hevc_uni_w_qpel_hv64_8_lsx;168 c->put_hevc_qpel_uni_w[9][1][1] = ff_hevc_put_hevc_uni_w_qpel_hv64_8_lsx;
169 169
170 c->sao_edge_filter[0] = ff_hevc_sao_edge_filter_8_lsx;
171 c->sao_edge_filter[1] = ff_hevc_sao_edge_filter_8_lsx;
172 c->sao_edge_filter[2] = ff_hevc_sao_edge_filter_8_lsx;
173 c->sao_edge_filter[3] = ff_hevc_sao_edge_filter_8_lsx;
170 c->sao_edge_filter[4] = ff_hevc_sao_edge_filter_8_lsx;174 c->sao_edge_filter[4] = ff_hevc_sao_edge_filter_8_lsx;
171 175
172 c->hevc_h_loop_filter_luma = ff_hevc_loop_filter_luma_h_8_lsx;176 c->hevc_h_loop_filter_luma = ff_hevc_loop_filter_luma_h_8_lsx;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t