mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
comment and dead code
This commit is contained in:
parent
e885ac1821
commit
c0cdf3256c
1 changed files with 2 additions and 3 deletions
|
@ -133,10 +133,8 @@ template<typename T> inline void ByteCountCoded<T>::decode(const char* encodedBu
|
|||
|
||||
for(int byte = 0; byte < encodedSize; byte++) {
|
||||
char originalByte = encodedBuffer[byte];
|
||||
unsigned char maskBit = 128;
|
||||
unsigned char maskBit = 128; // LEFT MOST BIT set
|
||||
for(int bit = 0; bit < BITS_IN_BYTE; bit++) {
|
||||
//int shiftBy = BITS_IN_BYTE - (bit + 1);
|
||||
//char maskBit = (1 << shiftBy);
|
||||
bool bitIsSet = originalByte & maskBit;
|
||||
|
||||
// Processing of the lead bits
|
||||
|
@ -148,6 +146,7 @@ template<typename T> inline void ByteCountCoded<T>::decode(const char* encodedBu
|
|||
inLeadBits = false; // once we hit our first 0, we know we're out of the lead bits
|
||||
expectedBitCount = (encodedByteCount * BITS_IN_BYTE) - leadBits;
|
||||
lastValueBit = expectedBitCount + bitAt;
|
||||
|
||||
// check to see if the remainder of our buffer is sufficient
|
||||
if (expectedBitCount > (bitCount - leadBits)) {
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue