From 88307b3eec018b86f6adfddeb6e9b384c95b7ca6 Mon Sep 17 00:00:00 2001 From: James Darnley Date: Wed, 15 Feb 2017 14:54:11 +0100 Subject: avcodec/h264: add avx 8-bit 4:2:2 chroma h deblock/loop filter ~1.21x faster (68 vs. 56 cycles) compared with mmxext function --- libavcodec/x86/h264dsp_init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/x86/h264dsp_init.c') diff --git a/libavcodec/x86/h264dsp_init.c b/libavcodec/x86/h264dsp_init.c index 0b15471675..6073932b25 100644 --- a/libavcodec/x86/h264dsp_init.c +++ b/libavcodec/x86/h264dsp_init.c @@ -321,6 +321,8 @@ av_cold void ff_h264dsp_init_x86(H264DSPContext *c, const int bit_depth, c->h264_v_loop_filter_chroma = ff_deblock_v_chroma_8_avx; if (chroma_format_idc <= 1) { c->h264_h_loop_filter_chroma = ff_deblock_h_chroma_8_avx; + } else { + c->h264_h_loop_filter_chroma = ff_deblock_h_chroma422_8_avx; } } } else if (bit_depth == 10) { -- cgit v1.2.3