Lines Matching refs:bitIndex
38 bits->bitIndex = 0 ; in BitBufferInit()
51 returnBits = returnBits << bits->bitIndex ; in BitBufferRead()
54 bits->bitIndex += numBits ; in BitBufferRead()
58 bits->cur += (bits->bitIndex >> 3) ; in BitBufferRead()
59 bits->bitIndex &= 7 ; in BitBufferRead()
76 returnBits = returnBits << bits->bitIndex ; in BitBufferReadSmall()
78 bits->bitIndex += numBits ; in BitBufferReadSmall()
82 bits->cur += (bits->bitIndex >> 3) ; in BitBufferReadSmall()
83 bits->bitIndex &= 7 ; in BitBufferReadSmall()
97 returnBits = (bits->cur [0] >> (7 - bits->bitIndex)) & 1 ; in BitBufferReadOne()
99 bits->bitIndex++ ; in BitBufferReadOne()
101 bits->cur += (bits->bitIndex >> 3) ; in BitBufferReadOne()
102 bits->bitIndex &= 7 ; in BitBufferReadOne()
114 ((uint32_t) bits->cur [2])) << bits->bitIndex) & 0x00FFFFFF) >> (24 - numBits)) ; in BitBufferPeek()
121 return ((bits->cur [0] >> (7 - bits->bitIndex)) & 1) ; in BitBufferPeekOne()
145 return ((uint32_t) (bits->cur - begin) * 8) + bits->bitIndex ; in BitBufferGetPosition()
153 if (bits->bitIndex == 0) in BitBufferByteAlign()
157 BitBufferWrite (bits, 0, 8 - bits->bitIndex) ; in BitBufferByteAlign()
159 BitBufferAdvance (bits, 8 - bits->bitIndex) ; in BitBufferByteAlign()
168 bits->bitIndex += numBits ; in BitBufferAdvance()
169 bits->cur += (bits->bitIndex >> 3) ; in BitBufferAdvance()
170 bits->bitIndex &= 7 ; in BitBufferAdvance()
183 if (bits->bitIndex >= numBits) in BitBufferRewind()
185 bits->bitIndex -= numBits ; in BitBufferRewind()
189 numBits -= bits->bitIndex ; in BitBufferRewind()
190 bits->bitIndex = 0 ; in BitBufferRewind()
199 bits->bitIndex = 8 - numBits ; in BitBufferRewind()
208 bits->bitIndex = 0 ; in BitBufferRewind()
221 invBitIndex = 8 - bits->bitIndex ; in BitBufferWrite()
250 bits->bitIndex = 8 - invBitIndex ; in BitBufferWrite()
257 bits->bitIndex = 0 ; in BitBufferReset()