Commit 0d5386ea authored by michael's avatar michael

Remove some useless operations from the code setting left_cbp.

maybe 0.5 cpu cycles faster


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22078 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8c1a10fe
...@@ -952,9 +952,9 @@ static void fill_decode_caches(H264Context *h, int mb_type){ ...@@ -952,9 +952,9 @@ static void fill_decode_caches(H264Context *h, int mb_type){
} }
// left_cbp // left_cbp
if (left_type[0]) { if (left_type[0]) {
h->left_cbp = h->cbp_table[left_xy[0]] & 0x1f0; 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->cbp_table[left_xy[0]]>>(left_block[0]&(~1)))&2)
h->left_cbp |= ((h->cbp_table[left_xy[1]]>>((left_block[2]&(~1))+1))&0x1) << 3; | (((h->cbp_table[left_xy[1]]>>(left_block[2]&(~1)))&2) << 2);
} else { } else {
h->left_cbp = IS_INTRA(mb_type) ? 0x1CF : 0x00F; h->left_cbp = IS_INTRA(mb_type) ? 0x1CF : 0x00F;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment