Lines Matching refs:frameInfo
329 prefsNull.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; /* worst case */ in LZ4F_compressBound_internal()
330 prefsNull.frameInfo.blockChecksumFlag = LZ4F_blockChecksumEnabled; /* worst case */ in LZ4F_compressBound_internal()
333 LZ4F_blockSizeID_t const blockID = prefsPtr->frameInfo.blockSizeID; in LZ4F_compressBound_internal()
343 size_t const blockCRCSize = BFSize * prefsPtr->frameInfo.blockChecksumFlag; in LZ4F_compressBound_internal()
344 size_t const frameEnd = BHSize + (prefsPtr->frameInfo.contentChecksumFlag*BFSize); in LZ4F_compressBound_internal()
389 if (prefs.frameInfo.contentSize != 0) in LZ4F_compressFrame_usingCDict()
390 … prefs.frameInfo.contentSize = (U64)srcSize; /* auto-correct content size if selected (!=0) */ in LZ4F_compressFrame_usingCDict()
392 prefs.frameInfo.blockSizeID = LZ4F_optimalBSID(prefs.frameInfo.blockSizeID, srcSize); in LZ4F_compressFrame_usingCDict()
394 if (srcSize <= LZ4F_getBlockSize(prefs.frameInfo.blockSizeID)) in LZ4F_compressFrame_usingCDict()
395 …prefs.frameInfo.blockMode = LZ4F_blockIndependent; /* only one block => no need for inter-block … in LZ4F_compressFrame_usingCDict()
642 if (cctxPtr->prefs.frameInfo.blockSizeID == 0) in LZ4F_compressBegin_usingCDict()
643 cctxPtr->prefs.frameInfo.blockSizeID = LZ4F_BLOCKSIZEID_DEFAULT; in LZ4F_compressBegin_usingCDict()
644 cctxPtr->maxBlockSize = LZ4F_getBlockSize(cctxPtr->prefs.frameInfo.blockSizeID); in LZ4F_compressBegin_usingCDict()
647 …((cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) ? 64 KB : 0) : /* only needs past data … in LZ4F_compressBegin_usingCDict()
648 … cctxPtr->maxBlockSize + ((cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) ? 128 KB : 0); in LZ4F_compressBegin_usingCDict()
663 if (cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) { in LZ4F_compressBegin_usingCDict()
678 + ((cctxPtr->prefs.frameInfo.blockMode & _1BIT ) << 5) in LZ4F_compressBegin_usingCDict()
679 + ((cctxPtr->prefs.frameInfo.blockChecksumFlag & _1BIT ) << 4) in LZ4F_compressBegin_usingCDict()
680 + ((unsigned)(cctxPtr->prefs.frameInfo.contentSize > 0) << 3) in LZ4F_compressBegin_usingCDict()
681 + ((cctxPtr->prefs.frameInfo.contentChecksumFlag & _1BIT ) << 2) in LZ4F_compressBegin_usingCDict()
682 + (cctxPtr->prefs.frameInfo.dictID > 0) ); in LZ4F_compressBegin_usingCDict()
684 *dstPtr++ = (BYTE)((cctxPtr->prefs.frameInfo.blockSizeID & _3BITS) << 4); in LZ4F_compressBegin_usingCDict()
686 if (cctxPtr->prefs.frameInfo.contentSize) { in LZ4F_compressBegin_usingCDict()
687 LZ4F_writeLE64(dstPtr, cctxPtr->prefs.frameInfo.contentSize); in LZ4F_compressBegin_usingCDict()
692 if (cctxPtr->prefs.frameInfo.dictID) { in LZ4F_compressBegin_usingCDict()
693 LZ4F_writeLE32(dstPtr, cctxPtr->prefs.frameInfo.dictID); in LZ4F_compressBegin_usingCDict()
835 …compressFunc_t const compress = LZ4F_selectCompression(cctxPtr->prefs.frameInfo.blockMode, cctxPtr… in LZ4F_compressUpdate()
864 cctxPtr->prefs.frameInfo.blockChecksumFlag); in LZ4F_compressUpdate()
866 if (cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) cctxPtr->tmpIn += blockSize; in LZ4F_compressUpdate()
878 cctxPtr->prefs.frameInfo.blockChecksumFlag); in LZ4F_compressUpdate()
889 cctxPtr->prefs.frameInfo.blockChecksumFlag); in LZ4F_compressUpdate()
894 …if ((cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) && (lastBlockCompressed==fromSrcBuffer)… in LZ4F_compressUpdate()
920 if (cctxPtr->prefs.frameInfo.contentChecksumFlag == LZ4F_contentChecksumEnabled) in LZ4F_compressUpdate()
951 …compress = LZ4F_selectCompression(cctxPtr->prefs.frameInfo.blockMode, cctxPtr->prefs.compressionLe… in LZ4F_flush()
958 cctxPtr->prefs.frameInfo.blockChecksumFlag); in LZ4F_flush()
961 if (cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) in LZ4F_flush()
1002 if (cctxPtr->prefs.frameInfo.contentChecksumFlag == LZ4F_contentChecksumEnabled) { in LZ4F_compressEnd()
1012 if (cctxPtr->prefs.frameInfo.contentSize) { in LZ4F_compressEnd()
1013 if (cctxPtr->prefs.frameInfo.contentSize != cctxPtr->totalInSize) in LZ4F_compressEnd()
1038 LZ4F_frameInfo_t frameInfo; member
1117 MEM_INIT(&(dctx->frameInfo), 0, sizeof(dctx->frameInfo)); in LZ4F_decodeHeader()
1121 dctx->frameInfo.frameType = LZ4F_skippableFrame; in LZ4F_decodeHeader()
1138 dctx->frameInfo.frameType = LZ4F_frame; in LZ4F_decodeHeader()
1184 dctx->frameInfo.blockMode = (LZ4F_blockMode_t)blockMode; in LZ4F_decodeHeader()
1185 dctx->frameInfo.blockChecksumFlag = (LZ4F_blockChecksum_t)blockChecksumFlag; in LZ4F_decodeHeader()
1186 dctx->frameInfo.contentChecksumFlag = (LZ4F_contentChecksum_t)contentChecksumFlag; in LZ4F_decodeHeader()
1187 dctx->frameInfo.blockSizeID = (LZ4F_blockSizeID_t)blockSizeID; in LZ4F_decodeHeader()
1191 dctx->frameInfo.contentSize = LZ4F_readLE64(srcPtr+6); in LZ4F_decodeHeader()
1193 dctx->frameInfo.dictID = LZ4F_readLE32(srcPtr + frameHeaderSize - 5); in LZ4F_decodeHeader()
1255 *frameInfoPtr = dctx->frameInfo; in LZ4F_getFrameInfo()
1278 *frameInfoPtr = dctx->frameInfo; in LZ4F_getFrameInfo()
1430 if (dctx->frameInfo.contentChecksumFlag) (void)XXH32_reset(&(dctx->xxh), 0); in LZ4F_decompress()
1433 + ((dctx->frameInfo.blockMode==LZ4F_blockLinked) ? 128 KB : 0); in LZ4F_decompress()
1484 size_t const crcSize = dctx->frameInfo.blockChecksumFlag * BFSize; in LZ4F_decompress()
1494 if (dctx->frameInfo.blockChecksumFlag) { in LZ4F_decompress()
1514 if (dctx->frameInfo.blockChecksumFlag) { in LZ4F_decompress()
1517 if (dctx->frameInfo.contentChecksumFlag) in LZ4F_decompress()
1519 if (dctx->frameInfo.contentSize) in LZ4F_decompress()
1523 if (dctx->frameInfo.blockMode == LZ4F_blockLinked) in LZ4F_decompress()
1529 if (dctx->frameInfo.blockChecksumFlag) { in LZ4F_decompress()
1538 +(dctx->frameInfo.blockChecksumFlag ? BFSize : 0) in LZ4F_decompress()
1595 + (dctx->frameInfo.blockChecksumFlag ? BFSize : 0) in LZ4F_decompress()
1604 if (dctx->frameInfo.blockChecksumFlag) { in LZ4F_decompress()
1633 if (dctx->frameInfo.contentChecksumFlag) in LZ4F_decompress()
1635 if (dctx->frameInfo.contentSize) in LZ4F_decompress()
1639 if (dctx->frameInfo.blockMode==LZ4F_blockLinked) in LZ4F_decompress()
1649 if (dctx->frameInfo.blockMode == LZ4F_blockLinked) { in LZ4F_decompress()
1676 if (dctx->frameInfo.contentChecksumFlag) in LZ4F_decompress()
1678 if (dctx->frameInfo.contentSize) in LZ4F_decompress()
1691 if (dctx->frameInfo.blockMode == LZ4F_blockLinked) in LZ4F_decompress()
1710 if (!dctx->frameInfo.contentChecksumFlag) { /* no checksum, frame is completed */ in LZ4F_decompress()
1785 dctx->frameInfo.contentSize = SFrameSize; in LZ4F_decompress()
1807 …if ( (dctx->frameInfo.blockMode==LZ4F_blockLinked) /* next block will use up to 64KB from previou… in LZ4F_decompress()