comparison h264.c @ 11170:d092ec99cb59 libavcodec

Merge decode_cabac_mb_dqp() with surronding code. ~20 cpu cycles faster
author michael
date Sun, 14 Feb 2010 23:06:25 +0000
parents e251be458ac3
children 5e583a785508
comparison
equal deleted inserted replaced
11169:e251be458ac3 11170:d092ec99cb59
2194 } 2194 }
2195 } 2195 }
2196 h->slice_type= old_slice_type; 2196 h->slice_type= old_slice_type;
2197 s->mb_x= 0; 2197 s->mb_x= 0;
2198 s->mb_y= end_mb_y - FRAME_MBAFF; 2198 s->mb_y= end_mb_y - FRAME_MBAFF;
2199 h->chroma_qp[0] = get_chroma_qp(h, 0, s->qscale);
2200 h->chroma_qp[1] = get_chroma_qp(h, 1, s->qscale);
2199 } 2201 }
2200 2202
2201 static int decode_slice(struct AVCodecContext *avctx, void *arg){ 2203 static int decode_slice(struct AVCodecContext *avctx, void *arg){
2202 H264Context *h = *(void**)arg; 2204 H264Context *h = *(void**)arg;
2203 MpegEncContext * const s = &h->s; 2205 MpegEncContext * const s = &h->s;