comparison h264_cavlc.c @ 10999:7cfb7bb6e554 libavcodec

Branchless setting of MB_TYPE_8x8DCT. Not benchmarked as i failed to find a sample that uses this one. But it should be faster.
author michael
date Sun, 24 Jan 2010 20:54:09 +0000
parents b2e1b3baef0a
children d1a855cb0a0c
comparison
equal deleted inserted replaced
10998:b2e1b3baef0a 10999:7cfb7bb6e554
902 else cbp= golomb_to_inter_cbp_gray[cbp]; 902 else cbp= golomb_to_inter_cbp_gray[cbp];
903 } 903 }
904 } 904 }
905 905
906 if(dct8x8_allowed && (cbp&15) && !IS_INTRA(mb_type)){ 906 if(dct8x8_allowed && (cbp&15) && !IS_INTRA(mb_type)){
907 if(get_bits1(&s->gb)){ 907 mb_type |= MB_TYPE_8x8DCT*get_bits1(&s->gb);
908 mb_type |= MB_TYPE_8x8DCT;
909 }
910 } 908 }
911 h->cbp= 909 h->cbp=
912 h->cbp_table[mb_xy]= cbp; 910 h->cbp_table[mb_xy]= cbp;
913 s->current_picture.mb_type[mb_xy]= mb_type; 911 s->current_picture.mb_type[mb_xy]= mb_type;
914 912