comparison h264.h @ 11301:5843fc07bda0 libavcodec

Remove some useless operations from the code setting left_cbp. maybe 0.5 cpu cycles faster
author michael
date Fri, 26 Feb 2010 15:03:00 +0000
parents 1f512abdf680
children 090fcf7610e8
comparison
equal deleted inserted replaced
11300:1f512abdf680 11301:5843fc07bda0
950 } else { 950 } else {
951 h->top_cbp = IS_INTRA(mb_type) ? 0x1CF : 0x00F; 951 h->top_cbp = IS_INTRA(mb_type) ? 0x1CF : 0x00F;
952 } 952 }
953 // left_cbp 953 // left_cbp
954 if (left_type[0]) { 954 if (left_type[0]) {
955 h->left_cbp = h->cbp_table[left_xy[0]] & 0x1f0; 955 h->left_cbp = (h->cbp_table[left_xy[0]] & 0x1f0)
956 h->left_cbp |= ((h->cbp_table[left_xy[0]]>>((left_block[0]&(~1))+1))&0x1) << 1; 956 | ((h->cbp_table[left_xy[0]]>>(left_block[0]&(~1)))&2)
957 h->left_cbp |= ((h->cbp_table[left_xy[1]]>>((left_block[2]&(~1))+1))&0x1) << 3; 957 | (((h->cbp_table[left_xy[1]]>>(left_block[2]&(~1)))&2) << 2);
958 } else { 958 } else {
959 h->left_cbp = IS_INTRA(mb_type) ? 0x1CF : 0x00F; 959 h->left_cbp = IS_INTRA(mb_type) ? 0x1CF : 0x00F;
960 } 960 }
961 } 961 }
962 } 962 }