Mercurial > libavcodec.hg
comparison h264.h @ 11010:cf9dd5b2cc30 libavcodec
cosmetic
author | michael |
---|---|
date | Tue, 26 Jan 2010 13:28:55 +0000 |
parents | 3d8426123947 |
children | b2fd83b26dd9 |
comparison
equal
deleted
inserted
replaced
11009:3d8426123947 | 11010:cf9dd5b2cc30 |
---|---|
797 //this is a conservative estimate: could also check beta_offset and more accurate chroma_qp | 797 //this is a conservative estimate: could also check beta_offset and more accurate chroma_qp |
798 int qp_thresh = h->qp_thresh; //FIXME strictly we should store qp_thresh for each mb of a slice | 798 int qp_thresh = h->qp_thresh; //FIXME strictly we should store qp_thresh for each mb of a slice |
799 int qp = s->current_picture.qscale_table[mb_xy]; | 799 int qp = s->current_picture.qscale_table[mb_xy]; |
800 if(qp <= qp_thresh | 800 if(qp <= qp_thresh |
801 && (left_xy[0]<0 || ((qp + s->current_picture.qscale_table[left_xy[0]] + 1)>>1) <= qp_thresh) | 801 && (left_xy[0]<0 || ((qp + s->current_picture.qscale_table[left_xy[0]] + 1)>>1) <= qp_thresh) |
802 && (top_xy < 0 || ((qp + s->current_picture.qscale_table[top_xy ] + 1)>>1) <= qp_thresh)){ | 802 && (top_xy < 0 || ((qp + s->current_picture.qscale_table[top_xy ] + 1)>>1) <= qp_thresh)){ |
803 if(!FRAME_MBAFF) | 803 if(!FRAME_MBAFF) |
804 return 1; | 804 return 1; |
805 if( (left_xy[0]< 0 || ((qp + s->current_picture.qscale_table[left_xy[0]+s->mb_stride] + 1)>>1) <= qp_thresh) | 805 if( (left_xy[0]< 0 || ((qp + s->current_picture.qscale_table[left_xy[0]+s->mb_stride] + 1)>>1) <= qp_thresh) |
806 && (top_xy < s->mb_stride || ((qp + s->current_picture.qscale_table[top_xy -s->mb_stride] + 1)>>1) <= qp_thresh)) | 806 && (top_xy < s->mb_stride || ((qp + s->current_picture.qscale_table[top_xy -s->mb_stride] + 1)>>1) <= qp_thresh)) |
807 return 1; | 807 return 1; |