diff h264_loopfilter.c @ 10910:7cecaa3a6b38 libavcodec

Move the qp check to skip the loop filter up.
author michael
date Mon, 18 Jan 2010 00:20:44 +0000
parents f4cf3960b8c6
children 497929e9d912
line wrap: on
line diff
--- a/h264_loopfilter.c	Sun Jan 17 23:44:23 2010 +0000
+++ b/h264_loopfilter.c	Mon Jan 18 00:20:44 2010 +0000
@@ -651,17 +651,6 @@
     av_unused int dir;
     int list;
 
-    //for sufficiently low qp, filtering wouldn't do anything
-    //this is a conservative estimate: could also check beta_offset and more accurate chroma_qp
-    if(!FRAME_MBAFF){
-        int qp_thresh = h->qp_thresh;
-        int qp = s->current_picture.qscale_table[mb_xy];
-        if(qp <= qp_thresh
-           && (mb_x == 0 || ((qp + s->current_picture.qscale_table[mb_xy-1] + 1)>>1) <= qp_thresh)
-           && (h->top_mb_xy < 0 || ((qp + s->current_picture.qscale_table[h->top_mb_xy] + 1)>>1) <= qp_thresh)){
-            return;
-        }
-    }
     // CAVLC 8x8dct requires NNZ values for residual decoding that differ from what the loop filter needs
     if(!h->pps.cabac && h->pps.transform_8x8_mode){
         int top_type, left_type[2];