diff h264.h @ 10908:28840dfd4b52 libavcodec

Disable a few things in fill_filter_caches() that arent needed. 0.1% speedup
author michael
date Sun, 17 Jan 2010 22:05:36 +0000
parents 2d82b73b12ef
children f4cf3960b8c6
line wrap: on
line diff
--- a/h264.h	Sun Jan 17 21:43:08 2010 +0000
+++ b/h264.h	Sun Jan 17 22:05:36 2010 +0000
@@ -830,7 +830,7 @@
         left_type[0] = h->slice_table[left_xy[0] ] == h->slice_num ? s->current_picture.mb_type[left_xy[0]] : 0;
         left_type[1] = h->slice_table[left_xy[1] ] == h->slice_num ? s->current_picture.mb_type[left_xy[1]] : 0;
 
-    if(IS_INTRA(mb_type)){
+    if(IS_INTRA(mb_type) && !for_deblock){
         int type_mask= h->pps.constrained_intra_pred ? IS_INTRA(-1) : -1;
         h->topleft_samples_available=
         h->top_samples_available=
@@ -961,7 +961,7 @@
         }
     }
 
-    if( CABAC ) {
+    if( CABAC && !for_deblock) {
         // top_cbp
         if(top_type) {
             h->top_cbp = h->cbp_table[top_xy];
@@ -1174,6 +1174,7 @@
     }
 #endif
 
+    if(!for_deblock)
     h->neighbor_transform_size= !!IS_8x8DCT(top_type) + !!IS_8x8DCT(left_type[0]);
 }