|
|
|
@ -714,8 +714,9 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) |
|
|
|
|
c->hevc_v_loop_filter_luma = ff_hevc_v_loop_filter_luma_8_sse2; |
|
|
|
|
c->hevc_h_loop_filter_luma = ff_hevc_h_loop_filter_luma_8_sse2; |
|
|
|
|
|
|
|
|
|
SAO_BAND_INIT(8, sse2); |
|
|
|
|
} |
|
|
|
|
SAO_BAND_INIT(8, sse2); |
|
|
|
|
|
|
|
|
|
c->idct_dc[1] = ff_hevc_idct8x8_dc_8_sse2; |
|
|
|
|
c->idct_dc[2] = ff_hevc_idct16x16_dc_8_sse2; |
|
|
|
|
c->idct_dc[3] = ff_hevc_idct32x32_dc_8_sse2; |
|
|
|
@ -749,9 +750,9 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) |
|
|
|
|
if (ARCH_X86_64) { |
|
|
|
|
c->hevc_v_loop_filter_luma = ff_hevc_v_loop_filter_luma_8_avx; |
|
|
|
|
c->hevc_h_loop_filter_luma = ff_hevc_h_loop_filter_luma_8_avx; |
|
|
|
|
|
|
|
|
|
SAO_BAND_INIT(8, avx); |
|
|
|
|
} |
|
|
|
|
SAO_BAND_INIT(8, avx); |
|
|
|
|
|
|
|
|
|
c->transform_add[1] = ff_hevc_transform_add8_8_avx; |
|
|
|
|
c->transform_add[2] = ff_hevc_transform_add16_8_avx; |
|
|
|
|
c->transform_add[3] = ff_hevc_transform_add32_8_avx; |
|
|
|
@ -760,7 +761,6 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) |
|
|
|
|
c->idct_dc[2] = ff_hevc_idct16x16_dc_8_avx2; |
|
|
|
|
c->idct_dc[3] = ff_hevc_idct32x32_dc_8_avx2; |
|
|
|
|
if (ARCH_X86_64) { |
|
|
|
|
SAO_BAND_INIT(8, avx2); |
|
|
|
|
c->put_hevc_epel[7][0][0] = ff_hevc_put_hevc_pel_pixels32_8_avx2; |
|
|
|
|
c->put_hevc_epel[8][0][0] = ff_hevc_put_hevc_pel_pixels48_8_avx2; |
|
|
|
|
c->put_hevc_epel[9][0][0] = ff_hevc_put_hevc_pel_pixels64_8_avx2; |
|
|
|
@ -845,6 +845,8 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) |
|
|
|
|
c->put_hevc_qpel_bi[8][1][0] = ff_hevc_put_hevc_bi_qpel_v48_8_avx2; |
|
|
|
|
c->put_hevc_qpel_bi[9][1][0] = ff_hevc_put_hevc_bi_qpel_v64_8_avx2; |
|
|
|
|
} |
|
|
|
|
SAO_BAND_INIT(8, avx2); |
|
|
|
|
|
|
|
|
|
c->sao_edge_filter[2] = ff_hevc_sao_edge_filter_32_8_avx2; |
|
|
|
|
c->sao_edge_filter[3] = ff_hevc_sao_edge_filter_48_8_avx2; |
|
|
|
|
c->sao_edge_filter[4] = ff_hevc_sao_edge_filter_64_8_avx2; |
|
|
|
@ -864,9 +866,9 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) |
|
|
|
|
c->hevc_v_loop_filter_luma = ff_hevc_v_loop_filter_luma_10_sse2; |
|
|
|
|
c->hevc_h_loop_filter_luma = ff_hevc_h_loop_filter_luma_10_sse2; |
|
|
|
|
|
|
|
|
|
SAO_BAND_INIT(10, sse2); |
|
|
|
|
SAO_EDGE_INIT(10, sse2); |
|
|
|
|
} |
|
|
|
|
SAO_BAND_INIT(10, sse2); |
|
|
|
|
|
|
|
|
|
c->idct_dc[1] = ff_hevc_idct8x8_dc_10_sse2; |
|
|
|
|
c->idct_dc[2] = ff_hevc_idct16x16_dc_10_sse2; |
|
|
|
@ -897,16 +899,14 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) |
|
|
|
|
if (ARCH_X86_64) { |
|
|
|
|
c->hevc_v_loop_filter_luma = ff_hevc_v_loop_filter_luma_10_avx; |
|
|
|
|
c->hevc_h_loop_filter_luma = ff_hevc_h_loop_filter_luma_10_avx; |
|
|
|
|
|
|
|
|
|
SAO_BAND_INIT(10, avx); |
|
|
|
|
} |
|
|
|
|
SAO_BAND_INIT(10, avx); |
|
|
|
|
} |
|
|
|
|
if (EXTERNAL_AVX2(cpu_flags)) { |
|
|
|
|
|
|
|
|
|
c->idct_dc[2] = ff_hevc_idct16x16_dc_10_avx2; |
|
|
|
|
c->idct_dc[3] = ff_hevc_idct32x32_dc_10_avx2; |
|
|
|
|
if (ARCH_X86_64) { |
|
|
|
|
SAO_BAND_INIT(10, avx2); |
|
|
|
|
c->sao_edge_filter[2] = ff_hevc_sao_edge_filter_32_10_avx2; |
|
|
|
|
c->sao_edge_filter[3] = ff_hevc_sao_edge_filter_48_10_avx2; |
|
|
|
|
c->sao_edge_filter[4] = ff_hevc_sao_edge_filter_64_10_avx2; |
|
|
|
@ -1054,6 +1054,7 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) |
|
|
|
|
c->put_hevc_qpel_bi[8][1][1] = ff_hevc_put_hevc_bi_qpel_hv48_10_avx2; |
|
|
|
|
c->put_hevc_qpel_bi[9][1][1] = ff_hevc_put_hevc_bi_qpel_hv64_10_avx2; |
|
|
|
|
} |
|
|
|
|
SAO_BAND_INIT(10, avx2); |
|
|
|
|
|
|
|
|
|
c->transform_add[2] = ff_hevc_transform_add16_10_avx2; |
|
|
|
|
c->transform_add[3] = ff_hevc_transform_add32_10_avx2; |
|
|
|
@ -1071,9 +1072,9 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) |
|
|
|
|
c->hevc_v_loop_filter_luma = ff_hevc_v_loop_filter_luma_12_sse2; |
|
|
|
|
c->hevc_h_loop_filter_luma = ff_hevc_h_loop_filter_luma_12_sse2; |
|
|
|
|
|
|
|
|
|
SAO_BAND_INIT(12, sse2); |
|
|
|
|
SAO_EDGE_INIT(12, sse2); |
|
|
|
|
} |
|
|
|
|
SAO_BAND_INIT(12, sse2); |
|
|
|
|
|
|
|
|
|
c->idct_dc[1] = ff_hevc_idct8x8_dc_12_sse2; |
|
|
|
|
c->idct_dc[2] = ff_hevc_idct16x16_dc_12_sse2; |
|
|
|
@ -1100,19 +1101,18 @@ void ff_hevc_dsp_init_x86(HEVCDSPContext *c, const int bit_depth) |
|
|
|
|
if (ARCH_X86_64) { |
|
|
|
|
c->hevc_v_loop_filter_luma = ff_hevc_v_loop_filter_luma_12_avx; |
|
|
|
|
c->hevc_h_loop_filter_luma = ff_hevc_h_loop_filter_luma_12_avx; |
|
|
|
|
|
|
|
|
|
SAO_BAND_INIT(12, avx); |
|
|
|
|
} |
|
|
|
|
SAO_BAND_INIT(12, avx); |
|
|
|
|
} |
|
|
|
|
if (EXTERNAL_AVX2(cpu_flags)) { |
|
|
|
|
c->idct_dc[2] = ff_hevc_idct16x16_dc_12_avx2; |
|
|
|
|
c->idct_dc[3] = ff_hevc_idct32x32_dc_12_avx2; |
|
|
|
|
if (ARCH_X86_64) { |
|
|
|
|
SAO_BAND_INIT(12, avx2); |
|
|
|
|
c->sao_edge_filter[2] = ff_hevc_sao_edge_filter_32_12_avx2; |
|
|
|
|
c->sao_edge_filter[3] = ff_hevc_sao_edge_filter_48_12_avx2; |
|
|
|
|
c->sao_edge_filter[4] = ff_hevc_sao_edge_filter_64_12_avx2; |
|
|
|
|
} |
|
|
|
|
SAO_BAND_INIT(12, avx2); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|