comparison mpeg12.c @ 5438:8ea581ae9fa2 libavcodec

merge/simplify 2 if() ~4 cpu cylces faster for the matrixbench video
author michael
date Wed, 01 Aug 2007 19:26:24 +0000
parents 57434d6c8f49
children f1db308c277b
comparison
equal deleted inserted replaced
5437:57434d6c8f49 5438:8ea581ae9fa2
364 /* get additional motion vector type */ 364 /* get additional motion vector type */
365 if (s->frame_pred_frame_dct) 365 if (s->frame_pred_frame_dct)
366 motion_type = MT_FRAME; 366 motion_type = MT_FRAME;
367 else{ 367 else{
368 motion_type = get_bits(&s->gb, 2); 368 motion_type = get_bits(&s->gb, 2);
369 } 369 if (s->picture_structure == PICT_FRAME && HAS_CBP(mb_type))
370 370 s->interlaced_dct = get_bits1(&s->gb);
371 /* compute dct type */
372 if (s->picture_structure == PICT_FRAME && //FIXME add a interlaced_dct coded var?
373 !s->frame_pred_frame_dct && HAS_CBP(mb_type)) {
374 s->interlaced_dct = get_bits1(&s->gb);
375 } 371 }
376 372
377 if (IS_QUANT(mb_type)) 373 if (IS_QUANT(mb_type))
378 s->qscale = get_qscale(s); 374 s->qscale = get_qscale(s);
379 375