comparison h264.h @ 11020:297bd56297a9 libavcodec

use left_xy[1] in mbaff QP loop filter check, this improves the amount that can be skiped.
author michael
date Tue, 26 Jan 2010 20:28:58 +0000
parents 62db4d1fdac9
children 44529d4292ce
comparison
equal deleted inserted replaced
11019:62db4d1fdac9 11020:297bd56297a9
813 if(qp <= qp_thresh 813 if(qp <= qp_thresh
814 && (left_xy[0]<0 || ((qp + s->current_picture.qscale_table[left_xy[0]] + 1)>>1) <= qp_thresh) 814 && (left_xy[0]<0 || ((qp + s->current_picture.qscale_table[left_xy[0]] + 1)>>1) <= qp_thresh)
815 && (top_xy < 0 || ((qp + s->current_picture.qscale_table[top_xy ] + 1)>>1) <= qp_thresh)){ 815 && (top_xy < 0 || ((qp + s->current_picture.qscale_table[top_xy ] + 1)>>1) <= qp_thresh)){
816 if(!FRAME_MBAFF) 816 if(!FRAME_MBAFF)
817 return 1; 817 return 1;
818 if( (left_xy[0]< 0 || ((qp + s->current_picture.qscale_table[left_xy[0]+s->mb_stride] + 1)>>1) <= qp_thresh) 818 if( (left_xy[0]< 0 || ((qp + s->current_picture.qscale_table[left_xy[1] ] + 1)>>1) <= qp_thresh)
819 && (top_xy < s->mb_stride || ((qp + s->current_picture.qscale_table[top_xy -s->mb_stride] + 1)>>1) <= qp_thresh)) 819 && (top_xy < s->mb_stride || ((qp + s->current_picture.qscale_table[top_xy -s->mb_stride] + 1)>>1) <= qp_thresh))
820 return 1; 820 return 1;
821 } 821 }
822 822
823 if(h->deblocking_filter == 2){ 823 if(h->deblocking_filter == 2){