Lines Matching refs:bToRead
373 UINT bToRead = (hBitBuf->bufBits - hBitBuf->ValidBits) >> 3 ; in FDK_Feed() local
374 UINT noOfBytes = fMin(bToRead, *bytesValid); //(bToRead < *bytesValid) ? bToRead : *bytesValid ; in FDK_Feed()
379 bToRead = hBitBuf->bufSize - hBitBuf->ReadOffset ; in FDK_Feed()
380 bToRead = fMin(bToRead, noOfBytes); //(bToRead < noOfBytes) ? bToRead : noOfBytes ; in FDK_Feed()
383 FDKmemcpy(&hBitBuf->Buffer[hBitBuf->ReadOffset], inputBuffer, bToRead*sizeof(UCHAR)); in FDK_Feed()
386 hBitBuf->ValidBits += bToRead << 3 ; in FDK_Feed()
387 bTotal += bToRead ; in FDK_Feed()
388 inputBuffer += bToRead ; in FDK_Feed()
390 hBitBuf->ReadOffset = (hBitBuf->ReadOffset + bToRead) & (hBitBuf->bufSize - 1) ; in FDK_Feed()
391 noOfBytes -= bToRead ; in FDK_Feed()
397 void CopyAlignedBlock (HANDLE_FDK_BITBUF h_BitBufSrc, UCHAR *RESTRICT dstBuffer, UINT bToRead) in CopyAlignedBlock() argument
403 for (UINT i = 0 ; i < bToRead ; i++) in CopyAlignedBlock()
408 bToRead <<= 3 ; in CopyAlignedBlock()
410 h_BitBufSrc->BitNdx = (h_BitBufSrc->BitNdx + bToRead) & (h_BitBufSrc->bufBits - 1) ; in CopyAlignedBlock()
411 h_BitBufSrc->BitCnt += bToRead ; in CopyAlignedBlock()
412 h_BitBufSrc->ValidBits -= bToRead ; in CopyAlignedBlock()
420 UINT bToRead = h_BitBufSrc->ValidBits >> 3 ; in FDK_Copy() local
421 UINT noOfBytes = fMin(bToRead, *bytesValid); //(*bytesValid < bToRead) ? *bytesValid : bToRead ; in FDK_Copy()
422 bToRead = FDK_getFreeBits(h_BitBufDst); in FDK_Copy()
423 noOfBytes = fMin(bToRead, noOfBytes); //(bToRead < noOfBytes) ? bToRead : noOfBytes; in FDK_Copy()
428 bToRead = h_BitBufDst->bufSize - h_BitBufDst->ReadOffset ; in FDK_Copy()
429 bToRead = fMin(noOfBytes, bToRead); //(noOfBytes < bToRead) ? noOfBytes : bToRead ; in FDK_Copy()
433 CopyAlignedBlock (h_BitBufSrc, h_BitBufDst->Buffer + h_BitBufDst->ReadOffset, bToRead) ; in FDK_Copy()
435 for (UINT i = 0; i < bToRead; i++) in FDK_Copy()
442 h_BitBufDst->ValidBits += bToRead << 3 ; in FDK_Copy()
443 bTotal += bToRead; in FDK_Copy()
445 h_BitBufDst->ReadOffset = (h_BitBufDst->ReadOffset + bToRead) & (h_BitBufDst->bufSize-1); in FDK_Copy()
446 noOfBytes -= bToRead; in FDK_Copy()