Lines Matching refs:BitNdx
131 hBitBuf->BitNdx = 0; in FDK_InitBitBuffer()
153 hBitBuf->BitNdx = 0; in FDK_ResetBitBuffer()
158 UINT byteOffset = hBitBuf->BitNdx >> 3; in FDK_get()
159 UINT bitOffset = hBitBuf->BitNdx & 0x07; in FDK_get()
161 hBitBuf->BitNdx = (hBitBuf->BitNdx + numberOfBits) & (hBitBuf->bufBits - 1); in FDK_get()
182 UINT BitNdx = hBitBuf->BitNdx + 32; in FDK_get32() local
183 hBitBuf->BitNdx = BitNdx & (hBitBuf->bufBits - 1); in FDK_get32()
186 UINT byteOffset = (BitNdx - 1) >> 3; in FDK_get32()
187 if (BitNdx <= hBitBuf->bufBits) { in FDK_get32()
193 if ((BitNdx = (BitNdx & 7)) != 0) { in FDK_get32()
194 cache = (cache >> (8 - BitNdx)) | in FDK_get32()
195 ((UINT)hBitBuf->Buffer[byteOffset - 4] << (24 + BitNdx)); in FDK_get32()
205 if ((BitNdx = (BitNdx & 7)) != 0) { in FDK_get32()
206 cache = (cache >> (8 - BitNdx)) | in FDK_get32()
208 << (24 + 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()
250 UINT byteOffset0 = hBitBuf->BitNdx >> 3; in FDK_put()
251 UINT bitOffset = hBitBuf->BitNdx & 0x7; in FDK_put()
253 hBitBuf->BitNdx = (hBitBuf->BitNdx + numberOfBits) & (hBitBuf->bufBits - 1); in FDK_put()
295 UINT byteOffset = hBitBuf->BitNdx >> 3; in FDK_putBwd()
296 UINT bitOffset = 7 - (hBitBuf->BitNdx & 0x07); in FDK_putBwd()
303 hBitBuf->BitNdx = (hBitBuf->BitNdx - numberOfBits) & (hBitBuf->bufBits - 1); in FDK_putBwd()
343 hBitBuf->BitNdx = ((UINT)((INT)hBitBuf->BitNdx - (INT)numberOfBits)) & in FDK_pushBack()
353 hBitBuf->BitNdx = in FDK_pushForward()
354 (UINT)((INT)hBitBuf->BitNdx + (INT)numberOfBits) & (hBitBuf->bufBits - 1); in FDK_pushForward()
401 UINT byteOffset = h_BitBufSrc->BitNdx >> 3; in CopyAlignedBlock()
411 h_BitBufSrc->BitNdx = in CopyAlignedBlock()
412 (h_BitBufSrc->BitNdx + bToRead) & (h_BitBufSrc->bufBits - 1); in CopyAlignedBlock()
437 if (!(h_BitBufSrc->BitNdx & 0x07)) { in FDK_Copy()