Commit 95a7c079 authored by michael's avatar michael

use left_xy[1] in mbaff QP loop filter check, this improves the amount that can

be skiped.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21465 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c50edb11
...@@ -815,7 +815,7 @@ static av_always_inline int fill_caches(H264Context *h, int mb_type, int for_deb ...@@ -815,7 +815,7 @@ static av_always_inline int fill_caches(H264Context *h, int mb_type, int for_deb
&& (top_xy < 0 || ((qp + s->current_picture.qscale_table[top_xy ] + 1)>>1) <= qp_thresh)){ && (top_xy < 0 || ((qp + s->current_picture.qscale_table[top_xy ] + 1)>>1) <= qp_thresh)){
if(!FRAME_MBAFF) if(!FRAME_MBAFF)
return 1; return 1;
if( (left_xy[0]< 0 || ((qp + s->current_picture.qscale_table[left_xy[0]+s->mb_stride] + 1)>>1) <= qp_thresh) if( (left_xy[0]< 0 || ((qp + s->current_picture.qscale_table[left_xy[1] ] + 1)>>1) <= qp_thresh)
&& (top_xy < s->mb_stride || ((qp + s->current_picture.qscale_table[top_xy -s->mb_stride] + 1)>>1) <= qp_thresh)) && (top_xy < s->mb_stride || ((qp + s->current_picture.qscale_table[top_xy -s->mb_stride] + 1)>>1) <= qp_thresh))
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment