comparison h264.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 2d82b73b12ef
children 497929e9d912
comparison
equal deleted inserted replaced
10909:f4cf3960b8c6 10910:7cecaa3a6b38
2182 } else { 2182 } else {
2183 linesize = h->mb_linesize = s->linesize; 2183 linesize = h->mb_linesize = s->linesize;
2184 uvlinesize = h->mb_uvlinesize = s->uvlinesize; 2184 uvlinesize = h->mb_uvlinesize = s->uvlinesize;
2185 } 2185 }
2186 backup_mb_border(h, dest_y, dest_cb, dest_cr, linesize, uvlinesize, !is_complex); 2186 backup_mb_border(h, dest_y, dest_cb, dest_cr, linesize, uvlinesize, !is_complex);
2187 fill_filter_caches(h, mb_type); //FIXME don't fill stuff which isn't used by filter_mb 2187 if(fill_filter_caches(h, mb_type) < 0)
2188 continue;
2188 h->chroma_qp[0] = get_chroma_qp(h, 0, s->current_picture.qscale_table[mb_xy]); 2189 h->chroma_qp[0] = get_chroma_qp(h, 0, s->current_picture.qscale_table[mb_xy]);
2189 h->chroma_qp[1] = get_chroma_qp(h, 1, s->current_picture.qscale_table[mb_xy]); 2190 h->chroma_qp[1] = get_chroma_qp(h, 1, s->current_picture.qscale_table[mb_xy]);
2190 2191
2191 if (is_complex && FRAME_MBAFF) { 2192 if (is_complex && FRAME_MBAFF) {
2192 ff_h264_filter_mb (h, mb_x, mb_y, dest_y, dest_cb, dest_cr, linesize, uvlinesize); 2193 ff_h264_filter_mb (h, mb_x, mb_y, dest_y, dest_cb, dest_cr, linesize, uvlinesize);