Lines Matching refs:frameInfo
313 prefsNull.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; /* worst case */ in LZ4F_compressBound_internal()
316 LZ4F_blockSizeID_t const blockID = prefsPtr->frameInfo.blockSizeID; in LZ4F_compressBound_internal()
327 size_t const blockCRCSize = 4 * prefsPtr->frameInfo.blockChecksumFlag; in LZ4F_compressBound_internal()
328 size_t const frameEnd = 4 + (prefsPtr->frameInfo.contentChecksumFlag*4); in LZ4F_compressBound_internal()
373 if (prefs.frameInfo.contentSize != 0) in LZ4F_compressFrame_usingCDict()
374 … prefs.frameInfo.contentSize = (U64)srcSize; /* auto-correct content size if selected (!=0) */ in LZ4F_compressFrame_usingCDict()
376 prefs.frameInfo.blockSizeID = LZ4F_optimalBSID(prefs.frameInfo.blockSizeID, srcSize); in LZ4F_compressFrame_usingCDict()
378 if (srcSize <= LZ4F_getBlockSize(prefs.frameInfo.blockSizeID)) in LZ4F_compressFrame_usingCDict()
379 …prefs.frameInfo.blockMode = LZ4F_blockIndependent; /* only one block => no need for inter-block … in LZ4F_compressFrame_usingCDict()
621 if (cctxPtr->prefs.frameInfo.blockSizeID == 0) in LZ4F_compressBegin_usingCDict()
622 cctxPtr->prefs.frameInfo.blockSizeID = LZ4F_BLOCKSIZEID_DEFAULT; in LZ4F_compressBegin_usingCDict()
623 cctxPtr->maxBlockSize = LZ4F_getBlockSize(cctxPtr->prefs.frameInfo.blockSizeID); in LZ4F_compressBegin_usingCDict()
626 … (cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) * 64 KB : /* only needs windows size */ in LZ4F_compressBegin_usingCDict()
627 … cctxPtr->maxBlockSize + ((cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) * 128 KB); in LZ4F_compressBegin_usingCDict()
642 if (cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) { in LZ4F_compressBegin_usingCDict()
657 + ((cctxPtr->prefs.frameInfo.blockMode & _1BIT ) << 5) in LZ4F_compressBegin_usingCDict()
658 + ((cctxPtr->prefs.frameInfo.blockChecksumFlag & _1BIT ) << 4) in LZ4F_compressBegin_usingCDict()
659 + ((cctxPtr->prefs.frameInfo.contentSize > 0) << 3) in LZ4F_compressBegin_usingCDict()
660 + ((cctxPtr->prefs.frameInfo.contentChecksumFlag & _1BIT ) << 2) in LZ4F_compressBegin_usingCDict()
661 + (cctxPtr->prefs.frameInfo.dictID > 0) ); in LZ4F_compressBegin_usingCDict()
663 *dstPtr++ = (BYTE)((cctxPtr->prefs.frameInfo.blockSizeID & _3BITS) << 4); in LZ4F_compressBegin_usingCDict()
665 if (cctxPtr->prefs.frameInfo.contentSize) { in LZ4F_compressBegin_usingCDict()
666 LZ4F_writeLE64(dstPtr, cctxPtr->prefs.frameInfo.contentSize); in LZ4F_compressBegin_usingCDict()
671 if (cctxPtr->prefs.frameInfo.dictID) { in LZ4F_compressBegin_usingCDict()
672 LZ4F_writeLE32(dstPtr, cctxPtr->prefs.frameInfo.dictID); in LZ4F_compressBegin_usingCDict()
810 …compressFunc_t const compress = LZ4F_selectCompression(cctxPtr->prefs.frameInfo.blockMode, cctxPtr… in LZ4F_compressUpdate()
837 cctxPtr->cdict, cctxPtr->prefs.frameInfo.blockChecksumFlag); in LZ4F_compressUpdate()
839 if (cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) cctxPtr->tmpIn += blockSize; in LZ4F_compressUpdate()
849 cctxPtr->cdict, cctxPtr->prefs.frameInfo.blockChecksumFlag); in LZ4F_compressUpdate()
858 cctxPtr->cdict, cctxPtr->prefs.frameInfo.blockChecksumFlag); in LZ4F_compressUpdate()
863 …if ((cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) && (lastBlockCompressed==fromSrcBuffer)… in LZ4F_compressUpdate()
889 if (cctxPtr->prefs.frameInfo.contentChecksumFlag == LZ4F_contentChecksumEnabled) in LZ4F_compressUpdate()
917 …compress = LZ4F_selectCompression(cctxPtr->prefs.frameInfo.blockMode, cctxPtr->prefs.compressionLe… in LZ4F_flush()
922 cctxPtr->cdict, cctxPtr->prefs.frameInfo.blockChecksumFlag); in LZ4F_flush()
923 if (cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) cctxPtr->tmpIn += cctxPtr->tmpInSize; in LZ4F_flush()
957 if (cctxPtr->prefs.frameInfo.contentChecksumFlag == LZ4F_contentChecksumEnabled) { in LZ4F_compressEnd()
966 if (cctxPtr->prefs.frameInfo.contentSize) { in LZ4F_compressEnd()
967 if (cctxPtr->prefs.frameInfo.contentSize != cctxPtr->totalInSize) in LZ4F_compressEnd()
992 LZ4F_frameInfo_t frameInfo; member
1093 MEM_INIT(&(dctx->frameInfo), 0, sizeof(dctx->frameInfo)); in LZ4F_decodeHeader()
1097 dctx->frameInfo.frameType = LZ4F_skippableFrame; in LZ4F_decodeHeader()
1112 dctx->frameInfo.frameType = LZ4F_frame; in LZ4F_decodeHeader()
1155 dctx->frameInfo.blockMode = (LZ4F_blockMode_t)blockMode; in LZ4F_decodeHeader()
1156 dctx->frameInfo.blockChecksumFlag = (LZ4F_blockChecksum_t)blockChecksumFlag; in LZ4F_decodeHeader()
1157 dctx->frameInfo.contentChecksumFlag = (LZ4F_contentChecksum_t)contentChecksumFlag; in LZ4F_decodeHeader()
1158 dctx->frameInfo.blockSizeID = (LZ4F_blockSizeID_t)blockSizeID; in LZ4F_decodeHeader()
1162 dctx->frameInfo.contentSize = LZ4F_readLE64(srcPtr+6); in LZ4F_decodeHeader()
1164 dctx->frameInfo.dictID = LZ4F_readLE32(srcPtr + frameHeaderSize - 5); in LZ4F_decodeHeader()
1194 *frameInfoPtr = dctx->frameInfo; in LZ4F_getFrameInfo()
1218 *frameInfoPtr = dctx->frameInfo; in LZ4F_getFrameInfo()
1369 if (dctx->frameInfo.contentChecksumFlag) XXH32_reset(&(dctx->xxh), 0); in LZ4F_decompress()
1372 + ((dctx->frameInfo.blockMode==LZ4F_blockLinked) * 128 KB); in LZ4F_decompress()
1423 size_t const crcSize = dctx->frameInfo.blockChecksumFlag * 4; in LZ4F_decompress()
1433 if (dctx->frameInfo.blockChecksumFlag) { in LZ4F_decompress()
1453 if (dctx->frameInfo.blockChecksumFlag) { in LZ4F_decompress()
1456 if (dctx->frameInfo.contentChecksumFlag) in LZ4F_decompress()
1458 if (dctx->frameInfo.contentSize) in LZ4F_decompress()
1462 if (dctx->frameInfo.blockMode == LZ4F_blockLinked) in LZ4F_decompress()
1468 if (dctx->frameInfo.blockChecksumFlag) { in LZ4F_decompress()
1477 + dctx->frameInfo.contentChecksumFlag * 4 /* block checksum */ in LZ4F_decompress()
1536 if (dctx->frameInfo.blockChecksumFlag) { in LZ4F_decompress()
1560 if (dctx->frameInfo.contentChecksumFlag) in LZ4F_decompress()
1562 if (dctx->frameInfo.contentSize) in LZ4F_decompress()
1566 if (dctx->frameInfo.blockMode==LZ4F_blockLinked) in LZ4F_decompress()
1576 if (dctx->frameInfo.blockMode == LZ4F_blockLinked) { in LZ4F_decompress()
1603 if (dctx->frameInfo.contentChecksumFlag) in LZ4F_decompress()
1605 if (dctx->frameInfo.contentSize) in LZ4F_decompress()
1618 if (dctx->frameInfo.blockMode == LZ4F_blockLinked) in LZ4F_decompress()
1637 if (!dctx->frameInfo.contentChecksumFlag) { /* no checksum, frame is completed */ in LZ4F_decompress()
1707 dctx->frameInfo.contentSize = SFrameSize; in LZ4F_decompress()
1729 …if ( (dctx->frameInfo.blockMode==LZ4F_blockLinked) /* next block will use up to 64KB from previou… in LZ4F_decompress()