diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-01-23 13:54:02 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-01-23 13:54:02 +0000 |
commit | 933bea77e5792c993d196405ab04f4074d30db83 (patch) | |
tree | 5a7883264af4fd7e727859b462711783e309aa8e | |
parent | 6242b1c4249c6c8e008ed8bcddad65b31a26a05a (diff) | |
download | ffmpeg-933bea77e5792c993d196405ab04f4074d30db83.tar.gz |
Optmize 8x8dct check used to skip some borders in the loop filter.
4 cpu cycles faster.
Originally committed as revision 21396 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264_loopfilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_loopfilter.c b/libavcodec/h264_loopfilter.c index e00baeead2..289f022dee 100644 --- a/libavcodec/h264_loopfilter.c +++ b/libavcodec/h264_loopfilter.c @@ -491,7 +491,7 @@ static av_always_inline void filter_mb_dir(H264Context *h, int mb_x, int mb_y, u DECLARE_ALIGNED_8(int16_t, bS)[4]; int qp; - if( (edge&1) && IS_8x8DCT(mb_type) ) + if( IS_8x8DCT(mb_type & (edge<<24)) ) // (edge&1) && IS_8x8DCT(mb_type) continue; if( IS_INTRA(mb_type|mbn_type)) { |