r22078 - trunk/libavcodec/h264.h
Author: michael Date: Fri Feb 26 16:03:00 2010 New Revision: 22078 Log: Remove some useless operations from the code setting left_cbp. maybe 0.5 cpu cycles faster Modified: trunk/libavcodec/h264.h Modified: trunk/libavcodec/h264.h ============================================================================== --- trunk/libavcodec/h264.h Fri Feb 26 15:46:20 2010 (r22077) +++ trunk/libavcodec/h264.h Fri Feb 26 16:03:00 2010 (r22078) @@ -952,9 +952,9 @@ static void fill_decode_caches(H264Conte } // left_cbp if (left_type[0]) { - h->left_cbp = h->cbp_table[left_xy[0]] & 0x1f0; - h->left_cbp |= ((h->cbp_table[left_xy[0]]>>((left_block[0]&(~1))+1))&0x1) << 1; - h->left_cbp |= ((h->cbp_table[left_xy[1]]>>((left_block[2]&(~1))+1))&0x1) << 3; + h->left_cbp = (h->cbp_table[left_xy[0]] & 0x1f0) + | ((h->cbp_table[left_xy[0]]>>(left_block[0]&(~1)))&2) + | (((h->cbp_table[left_xy[1]]>>(left_block[2]&(~1)))&2) << 2); } else { h->left_cbp = IS_INTRA(mb_type) ? 0x1CF : 0x00F; }
participants (1)
-
subversion@mplayerhq.hu