Commit 94493149 authored by Anton Mitrofanov's avatar Anton Mitrofanov Committed by Fiona Glaser
Browse files

Don't override flat SSE2 dequant functions with non-flat AVX ones

Slightly faster.
parent 25a8bb94
......@@ -546,9 +546,12 @@ void x264_quant_init( x264_t *h, int cpu, x264_quant_function_t *pf )
if( cpu&X264_CPU_AVX )
{
pf->dequant_4x4 = x264_dequant_4x4_avx;
pf->dequant_8x8 = x264_dequant_8x8_avx;
pf->dequant_4x4_dc = x264_dequant_4x4dc_avx;
if( h->param.i_cqm_preset != X264_CQM_FLAT )
{
pf->dequant_4x4 = x264_dequant_4x4_avx;
pf->dequant_8x8 = x264_dequant_8x8_avx;
}
pf->optimize_chroma_dc = x264_optimize_chroma_dc_avx;
pf->denoise_dct = x264_denoise_dct_avx;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment