diff options
author | James Darnley <jdarnley@obe.tv> | 2017-02-15 14:54:11 +0100 |
---|---|---|
committer | James Darnley <jdarnley@obe.tv> | 2017-02-27 13:22:06 +0100 |
commit | 88307b3eec018b86f6adfddeb6e9b384c95b7ca6 (patch) | |
tree | 78d8a2e53d61b4719ee5ca1b5ec6f9e1799eb03d /libavcodec/x86/h264dsp_init.c | |
parent | ac096fc82df6aa8190f29a51ee5b589f318cfaa8 (diff) |
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
Diffstat (limited to 'libavcodec/x86/h264dsp_init.c')
-rw-r--r-- | libavcodec/x86/h264dsp_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |