Lines Matching refs:bufSize
118 UINT bufSize) { in FDK_CreateBitBuffer() argument
119 FDK_InitBitBuffer(*hBitBuf, pBuffer, bufSize, 0); in FDK_CreateBitBuffer()
121 FDKmemclear((*hBitBuf)->Buffer, bufSize * sizeof(UCHAR)); in FDK_CreateBitBuffer()
126 void FDK_InitBitBuffer(HANDLE_FDK_BITBUF hBitBuf, UCHAR *pBuffer, UINT bufSize, in FDK_InitBitBuffer() argument
134 hBitBuf->bufSize = bufSize; in FDK_InitBitBuffer()
135 hBitBuf->bufBits = (bufSize << 3); in FDK_InitBitBuffer()
138 FDK_ASSERT((bufSize > 0) && (bufSize <= MAX_BUFSIZE_BYTES)); in FDK_InitBitBuffer()
140 UINT x = 0, n = bufSize; in FDK_InitBitBuffer()
143 if (bufSize != ((UINT)1 << (x - 1))) { in FDK_InitBitBuffer()
164 UINT byteMask = hBitBuf->bufSize - 1; in FDK_get()
199 UINT byte_mask = hBitBuf->bufSize - 1; in FDK_get32()
218 UINT byteMask = hBitBuf->bufSize - 1; in FDK_getBwd()
256 UINT byteMask = hBitBuf->bufSize - 1; in FDK_put()
297 UINT byteMask = hBitBuf->bufSize - 1; in FDK_putBwd()
378 bToRead = hBitBuf->bufSize - hBitBuf->ReadOffset; in FDK_Feed()
392 (hBitBuf->ReadOffset + bToRead) & (hBitBuf->bufSize - 1); in FDK_Feed()
402 const UINT byteMask = h_BitBufSrc->bufSize - 1; in CopyAlignedBlock()
432 bToRead = h_BitBufDst->bufSize - h_BitBufDst->ReadOffset; in FDK_Copy()
452 (h_BitBufDst->ReadOffset + bToRead) & (h_BitBufDst->bufSize - 1); in FDK_Copy()
470 bToWrite = hBitBuf->bufSize - hBitBuf->WriteOffset; in FDK_Fetch()
484 (hBitBuf->WriteOffset + bToWrite) & (hBitBuf->bufSize - 1); in FDK_Fetch()