Lines Matching refs:BitNdx
132 hBitBuf->BitNdx = 0 ; in FDK_InitBitBuffer()
155 hBitBuf->BitNdx = 0 ; in FDK_ResetBitBuffer()
160 UINT byteOffset = hBitBuf->BitNdx >> 3 ; in FDK_get()
161 UINT bitOffset = hBitBuf->BitNdx & 0x07 ; in FDK_get()
163 hBitBuf->BitNdx = (hBitBuf->BitNdx + numberOfBits) & (hBitBuf->bufBits - 1) ; in FDK_get()
185 UINT BitNdx = hBitBuf->BitNdx + 32; in FDK_get32() local
186 if (BitNdx <= hBitBuf->bufBits) in FDK_get32()
188 hBitBuf->BitNdx = BitNdx; in FDK_get32()
192 UINT byteOffset = (BitNdx-1) >> 3; in FDK_get32()
198 if ( (BitNdx = (BitNdx&7)) != 0 ) { in FDK_get32()
199 cache = (cache >> (8-BitNdx)) | ((UINT)hBitBuf->Buffer [byteOffset-4] << (24+BitNdx)); in FDK_get32()
206 int nBits = (INT)hBitBuf->bufBits-(INT)hBitBuf->BitNdx; in FDK_get32()
216 UINT byteOffset = hBitBuf->BitNdx >> 3 ; in FDK_getBwd()
217 UINT bitOffset = hBitBuf->BitNdx & 0x07 ; in FDK_getBwd()
221 hBitBuf->BitNdx = (hBitBuf->BitNdx - numberOfBits) & (hBitBuf->bufBits - 1) ; in FDK_getBwd()
252 UINT byteOffset = hBitBuf->BitNdx >> 3 ; in FDK_put()
253 UINT bitOffset = hBitBuf->BitNdx & 0x07 ; in FDK_put()
255 hBitBuf->BitNdx = (hBitBuf->BitNdx + numberOfBits) & (hBitBuf->bufBits - 1) ; in FDK_put()
278 UINT byteOffset = hBitBuf->BitNdx >> 3 ; in FDK_putBwd()
279 UINT bitOffset = 7 - (hBitBuf->BitNdx & 0x07) ; in FDK_putBwd()
286 hBitBuf->BitNdx = (hBitBuf->BitNdx - numberOfBits) & (hBitBuf->bufBits - 1) ; in FDK_putBwd()
318 hBitBuf->BitNdx = (hBitBuf->BitNdx - numberOfBits) & (hBitBuf->bufBits - 1) ; in FDK_pushBack()
325 hBitBuf->BitNdx = (hBitBuf->BitNdx + numberOfBits) & (hBitBuf->bufBits - 1) ; in FDK_pushForward()
399 UINT byteOffset = h_BitBufSrc->BitNdx >> 3 ; in CopyAlignedBlock()
410 h_BitBufSrc->BitNdx = (h_BitBufSrc->BitNdx + bToRead) & (h_BitBufSrc->bufBits - 1) ; in CopyAlignedBlock()
432 if (!(h_BitBufSrc->BitNdx & 0x07)) { in FDK_Copy()