Moved vp8_encode_bool into boolhuff.h
allowing the compiler to inline this function. For real-time encodes, this gave a boost of 1% to 2.5%, depending on the speed setting. Change-Id: I3929d176cca086b4261267b848419d5bcff21c02
This commit is contained in:
@@ -80,7 +80,7 @@ void vp8_reset_mb_tokens_context(MACROBLOCKD *x)
|
||||
}
|
||||
}
|
||||
|
||||
DECLARE_ALIGNED(16, extern const unsigned char, vp8dx_bitreader_norm[256]);
|
||||
DECLARE_ALIGNED(16, extern const unsigned char, vp8_norm[256]);
|
||||
#define FILL \
|
||||
if(count < 0) \
|
||||
VP8DX_BOOL_DECODER_FILL(count, value, bufptr, bufend);
|
||||
@@ -88,7 +88,7 @@ DECLARE_ALIGNED(16, extern const unsigned char, vp8dx_bitreader_norm[256]);
|
||||
#define NORMALIZE \
|
||||
/*if(range < 0x80)*/ \
|
||||
{ \
|
||||
shift = vp8dx_bitreader_norm[range]; \
|
||||
shift = vp8_norm[range]; \
|
||||
range <<= shift; \
|
||||
value <<= shift; \
|
||||
count -= shift; \
|
||||
|
Reference in New Issue
Block a user