mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:29:50 +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++) {
|
for(int byte = 0; byte < encodedSize; byte++) {
|
||||||
char originalByte = encodedBuffer[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++) {
|
for(int bit = 0; bit < BITS_IN_BYTE; bit++) {
|
||||||
//int shiftBy = BITS_IN_BYTE - (bit + 1);
|
|
||||||
//char maskBit = (1 << shiftBy);
|
|
||||||
bool bitIsSet = originalByte & maskBit;
|
bool bitIsSet = originalByte & maskBit;
|
||||||
|
|
||||||
// Processing of the lead bits
|
// 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
|
inLeadBits = false; // once we hit our first 0, we know we're out of the lead bits
|
||||||
expectedBitCount = (encodedByteCount * BITS_IN_BYTE) - leadBits;
|
expectedBitCount = (encodedByteCount * BITS_IN_BYTE) - leadBits;
|
||||||
lastValueBit = expectedBitCount + bitAt;
|
lastValueBit = expectedBitCount + bitAt;
|
||||||
|
|
||||||
// check to see if the remainder of our buffer is sufficient
|
// check to see if the remainder of our buffer is sufficient
|
||||||
if (expectedBitCount > (bitCount - leadBits)) {
|
if (expectedBitCount > (bitCount - leadBits)) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue