Lines Matching refs:blockSizeID
176 static size_t LZ4F_getBlockSize(unsigned blockSizeID)
180 if (blockSizeID == 0) blockSizeID = LZ4F_BLOCKSIZEID_DEFAULT;
181 blockSizeID -= 4;
182 if (blockSizeID > 3) return (size_t)-LZ4F_ERROR_maxBlockSize_invalid;
183 return blockSizes[blockSizeID];
265 prefs.frameInfo.blockSizeID = LZ4F_optimalBSID(prefs.frameInfo.blockSizeID, srcSize);
314 prefs.frameInfo.blockSizeID = LZ4F_optimalBSID(prefs.frameInfo.blockSizeID, srcSize);
316 if (srcSize <= LZ4F_getBlockSize(prefs.frameInfo.blockSizeID))
422 if (cctxPtr->prefs.frameInfo.blockSizeID == 0) cctxPtr->prefs.frameInfo.blockSizeID = LZ4F_BLOCKSIZEID_DEFAULT;
423 cctxPtr->maxBlockSize = LZ4F_getBlockSize(cctxPtr->prefs.frameInfo.blockSizeID);
455 *dstPtr++ = (BYTE)((cctxPtr->prefs.frameInfo.blockSizeID & _3BITS) << 4);
484 LZ4F_blockSizeID_t bid = prefsPtr->frameInfo.blockSizeID;
813 unsigned version, blockMode, blockChecksumFlag, contentSizeFlag, contentChecksumFlag, blockSizeID;
867 blockSizeID = (BD>>4) & _3BITS;
874 if (blockSizeID < 4) return (size_t)-LZ4F_ERROR_maxBlockSize_invalid; /* 4-7 only supported values for the time being */
884 dctxPtr->frameInfo.blockSizeID = (LZ4F_blockSizeID_t)blockSizeID;
885 dctxPtr->maxBlockSize = LZ4F_getBlockSize(blockSizeID);