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