Lines Matching refs:blockSizeID
224 static size_t LZ4F_getBlockSize(unsigned blockSizeID) in LZ4F_getBlockSize() argument
228 if (blockSizeID == 0) blockSizeID = LZ4F_BLOCKSIZEID_DEFAULT; in LZ4F_getBlockSize()
229 blockSizeID -= 4; in LZ4F_getBlockSize()
230 if (blockSizeID > 3) return err0r(LZ4F_ERROR_maxBlockSize_invalid); in LZ4F_getBlockSize()
231 return blockSizes[blockSizeID]; in LZ4F_getBlockSize()
270 LZ4F_blockSizeID_t const bid = prefsPtr->frameInfo.blockSizeID; in LZ4F_compressBound_internal()
337 prefs.frameInfo.blockSizeID = LZ4F_optimalBSID(prefs.frameInfo.blockSizeID, srcSize); in LZ4F_compressFrame()
339 if (srcSize <= LZ4F_getBlockSize(prefs.frameInfo.blockSizeID)) in LZ4F_compressFrame()
439 …if (cctxPtr->prefs.frameInfo.blockSizeID == 0) cctxPtr->prefs.frameInfo.blockSizeID = LZ4F_BLOCKSI… in LZ4F_compressBegin()
440 cctxPtr->maxBlockSize = LZ4F_getBlockSize(cctxPtr->prefs.frameInfo.blockSizeID); in LZ4F_compressBegin()
471 *dstPtr++ = (BYTE)((cctxPtr->prefs.frameInfo.blockSizeID & _3BITS) << 4); in LZ4F_compressBegin()
828 … unsigned version, blockMode, blockChecksumFlag, contentSizeFlag, contentChecksumFlag, blockSizeID; in LZ4F_decodeHeader() local
876 blockSizeID = (BD>>4) & _3BITS; in LZ4F_decodeHeader()
883 …if (blockSizeID < 4) return err0r(LZ4F_ERROR_maxBlockSize_invalid); /* 4-7 only supported value… in LZ4F_decodeHeader()
893 dctxPtr->frameInfo.blockSizeID = (LZ4F_blockSizeID_t)blockSizeID; in LZ4F_decodeHeader()
894 dctxPtr->maxBlockSize = LZ4F_getBlockSize(blockSizeID); in LZ4F_decodeHeader()