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

michael subversion
Sat Jan 30 21:07:37 CET 2010


Author: michael
Date: Sat Jan 30 21:07:37 2010
New Revision: 21552

Log:
Split first reference list comparission from mv comparission.
about 0.5% faster MBAFF loop filtering

Modified:
   trunk/libavcodec/h264_loopfilter.c

Modified: trunk/libavcodec/h264_loopfilter.c
==============================================================================
--- trunk/libavcodec/h264_loopfilter.c	Sat Jan 30 20:26:47 2010	(r21551)
+++ trunk/libavcodec/h264_loopfilter.c	Sat Jan 30 21:07:37 2010	(r21552)
@@ -418,9 +418,10 @@ void ff_h264_filter_mb_fast( H264Context
 static int check_mv(H264Context *h, long b_idx, long bn_idx, int mvy_limit){
     int v;
 
-    v = h->ref_cache[0][b_idx] != h->ref_cache[0][bn_idx] |
-        h->mv_cache[0][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U |
-        FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit;
+    v= h->ref_cache[0][b_idx] != h->ref_cache[0][bn_idx];
+    if(!v && h->ref_cache[0][b_idx]!=-1)
+        v= h->mv_cache[0][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U |
+           FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit;
 
     if(h->list_count==2){
         if(!v)



More information about the ffmpeg-cvslog mailing list