[FFmpeg-cvslog] r22192 - trunk/libavcodec/h264.h

michael subversion
Thu Mar 4 02:03:15 CET 2010


Author: michael
Date: Thu Mar  4 02:03:15 2010
New Revision: 22192

Log:
Optimize *_type init, 1.5 cpu cycles faster.

Modified:
   trunk/libavcodec/h264.h

Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h	Thu Mar  4 01:27:46 2010	(r22191)
+++ trunk/libavcodec/h264.h	Thu Mar  4 02:03:15 2010	(r22192)
@@ -824,10 +824,18 @@ static void fill_decode_neighbors(H264Co
     h->left_type[0] = s->current_picture.mb_type[left_xy[0]] ;
     h->left_type[1] = s->current_picture.mb_type[left_xy[1]] ;
 
+    if(FMO){
     if(h->slice_table[topleft_xy ] != h->slice_num) h->topleft_type = 0;
     if(h->slice_table[top_xy     ] != h->slice_num) h->top_type     = 0;
-    if(h->slice_table[topright_xy] != h->slice_num) h->topright_type= 0;
     if(h->slice_table[left_xy[0] ] != h->slice_num) h->left_type[0] = h->left_type[1] = 0;
+    }else{
+        if(h->slice_table[topleft_xy ] != h->slice_num){
+            h->topleft_type = 0;
+            if(h->slice_table[top_xy     ] != h->slice_num) h->top_type     = 0;
+            if(h->slice_table[left_xy[0] ] != h->slice_num) h->left_type[0] = h->left_type[1] = 0;
+        }
+    }
+    if(h->slice_table[topright_xy] != h->slice_num) h->topright_type= 0;
 }
 
 static void fill_decode_caches(H264Context *h, int mb_type){



More information about the ffmpeg-cvslog mailing list