comparison h264.c @ 4042:643cdc58bd69 libavcodec

slightly faster decode_cabac_mb_mvd()
author michael
date Thu, 19 Oct 2006 14:54:34 +0000
parents 0113ceb0f953
children 19f07b651d79
comparison
equal deleted inserted replaced
4041:0113ceb0f953 4042:643cdc58bd69
6001 while( k-- ) { 6001 while( k-- ) {
6002 if( get_cabac_bypass( &h->cabac ) ) 6002 if( get_cabac_bypass( &h->cabac ) )
6003 mvd += 1 << k; 6003 mvd += 1 << k;
6004 } 6004 }
6005 } 6005 }
6006 if( get_cabac_bypass( &h->cabac ) ) return -mvd; 6006 return get_cabac_bypass_sign( &h->cabac, -mvd );
6007 else return mvd;
6008 } 6007 }
6009 6008
6010 static int inline get_cabac_cbf_ctx( H264Context *h, int cat, int idx ) { 6009 static int inline get_cabac_cbf_ctx( H264Context *h, int cat, int idx ) {
6011 int nza, nzb; 6010 int nza, nzb;
6012 int ctx = 0; 6011 int ctx = 0;