[FFmpeg-cvslog] r21396 - trunk/libavcodec/h264_loopfilter.c

michael subversion
Sat Jan 23 14:54:02 CET 2010


Author: michael
Date: Sat Jan 23 14:54:02 2010
New Revision: 21396

Log:
Optmize 8x8dct check used to skip some borders in the loop filter.
4 cpu cycles faster.

Modified:
   trunk/libavcodec/h264_loopfilter.c

Modified: trunk/libavcodec/h264_loopfilter.c
==============================================================================
--- trunk/libavcodec/h264_loopfilter.c	Sat Jan 23 14:49:09 2010	(r21395)
+++ trunk/libavcodec/h264_loopfilter.c	Sat Jan 23 14:54:02 2010	(r21396)
@@ -491,7 +491,7 @@ static av_always_inline void filter_mb_d
         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)) {



More information about the ffmpeg-cvslog mailing list