mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
Optimize level_code computation, 6cpu cycles speedup.
Originally committed as revision 21428 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f1d2b5728c
commit
c78295ad1b
@ -441,7 +441,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
|
||||
mask= -(level_code&1);
|
||||
level[trailing_ones]= (((2+level_code)>>1) ^ mask) - mask;
|
||||
}else{
|
||||
if(trailing_ones < 3) level_code += (level_code>>31)|1;
|
||||
level_code += ((level_code>>31)|1) & -(trailing_ones < 3);
|
||||
|
||||
suffix_length = 1;
|
||||
if(level_code + 3U > 6U)
|
||||
|
Loading…
Reference in New Issue
Block a user