Mercurial > libavcodec.hg
comparison h264.c @ 8330:7c00e980c153 libavcodec
Enable filter_mb_fast if CODEC_FLAG2_FAST is set.
author | michael |
---|---|
date | Mon, 15 Dec 2008 01:24:04 +0000 |
parents | 0de488aa4fb0 |
children | 82790b28b6e0 |
comparison
equal
deleted
inserted
replaced
8329:8b6bcfa22aa8 | 8330:7c00e980c153 |
---|---|
6117 int qp, qp0, qp1, qpc, qpc0, qpc1, qp_thresh; | 6117 int qp, qp0, qp1, qpc, qpc0, qpc1, qp_thresh; |
6118 | 6118 |
6119 mb_xy = h->mb_xy; | 6119 mb_xy = h->mb_xy; |
6120 | 6120 |
6121 if(mb_x==0 || mb_y==mb_y_firstrow || !s->dsp.h264_loop_filter_strength || h->pps.chroma_qp_diff || | 6121 if(mb_x==0 || mb_y==mb_y_firstrow || !s->dsp.h264_loop_filter_strength || h->pps.chroma_qp_diff || |
6122 1 || | 6122 !(s->flags2 & CODEC_FLAG2_FAST) || //FIXME filter_mb_fast is broken, thus hasto be, but should not under CODEC_FLAG2_FAST |
6123 (h->deblocking_filter == 2 && (h->slice_table[mb_xy] != h->slice_table[h->top_mb_xy] || | 6123 (h->deblocking_filter == 2 && (h->slice_table[mb_xy] != h->slice_table[h->top_mb_xy] || |
6124 h->slice_table[mb_xy] != h->slice_table[mb_xy - 1]))) { | 6124 h->slice_table[mb_xy] != h->slice_table[mb_xy - 1]))) { |
6125 filter_mb(h, mb_x, mb_y, img_y, img_cb, img_cr, linesize, uvlinesize); | 6125 filter_mb(h, mb_x, mb_y, img_y, img_cb, img_cr, linesize, uvlinesize); |
6126 return; | 6126 return; |
6127 } | 6127 } |