Home
last modified time | relevance | path

Searched refs:bToWrite (Results 1 – 1 of 1) sorted by relevance

/external/aac/libFDK/src/
DFDK_bitbuffer.cpp457 UINT bToWrite = (hBitBuf->ValidBits) >> 3 ; in FDK_Fetch() local
458 …UINT noOfBytes = fMin(bToWrite, *writeBytes); //(bToWrite < *writeBytes) ? bToWrite : *writeBytes ; in FDK_Fetch()
463 bToWrite = hBitBuf->bufSize - hBitBuf->WriteOffset ; in FDK_Fetch()
464 bToWrite = fMin(bToWrite, noOfBytes); //(bToWrite < noOfBytes) ? bToWrite : noOfBytes ; in FDK_Fetch()
467 FDKmemcpy(outputBuffer, &hBitBuf->Buffer[hBitBuf->WriteOffset], bToWrite*sizeof(UCHAR)); in FDK_Fetch()
470 hBitBuf->ValidBits -= bToWrite << 3 ; in FDK_Fetch()
471 bTotal += bToWrite ; in FDK_Fetch()
472 outputBuffer += bToWrite ; in FDK_Fetch()
474 hBitBuf->WriteOffset = (hBitBuf->WriteOffset + bToWrite) & (hBitBuf->bufSize - 1) ; in FDK_Fetch()
475 noOfBytes -= bToWrite ; in FDK_Fetch()