Lines Matching refs:frameInfo
132 LZ4F_frameInfo_t frameInfo;
265 prefs.frameInfo.blockSizeID = LZ4F_optimalBSID(prefs.frameInfo.blockSizeID, srcSize);
305 if (prefs.frameInfo.contentSize != 0)
306 prefs.frameInfo.contentSize = (U64)srcSize; /* auto-correct content size if selected (!=0) */
314 prefs.frameInfo.blockSizeID = LZ4F_optimalBSID(prefs.frameInfo.blockSizeID, srcSize);
316 if (srcSize <= LZ4F_getBlockSize(prefs.frameInfo.blockSizeID))
317 prefs.frameInfo.blockMode = LZ4F_blockIndependent; /* no need for linked blocks */
422 if (cctxPtr->prefs.frameInfo.blockSizeID == 0) cctxPtr->prefs.frameInfo.blockSizeID = LZ4F_BLOCKSIZEID_DEFAULT;
423 cctxPtr->maxBlockSize = LZ4F_getBlockSize(cctxPtr->prefs.frameInfo.blockSizeID);
425 requiredBuffSize = cctxPtr->maxBlockSize + ((cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) * 128 KB);
427 requiredBuffSize = (cctxPtr->prefs.frameInfo.blockMode == LZ4F_blockLinked) * 64 KB; /* just needs dict */
451 + ((cctxPtr->prefs.frameInfo.blockMode & _1BIT ) << 5) /* Block mode */
452 + ((cctxPtr->prefs.frameInfo.contentChecksumFlag & _1BIT ) << 2) /* Frame checksum */
453 + ((cctxPtr->prefs.frameInfo.contentSize > 0) << 3)); /* Frame content size */
455 *dstPtr++ = (BYTE)((cctxPtr->prefs.frameInfo.blockSizeID & _3BITS) << 4);
457 if (cctxPtr->prefs.frameInfo.contentSize)
459 LZ4F_writeLE64(dstPtr, cctxPtr->prefs.frameInfo.contentSize);
481 prefsNull.frameInfo.contentChecksumFlag = LZ4F_contentChecksumEnabled; /* worst case */
484 LZ4F_blockSizeID_t bid = prefsPtr->frameInfo.blockSizeID;
489 size_t frameEnd = 4 + (prefsPtr->frameInfo.contentChecksumFlag*4);
581 compress = LZ4F_selectCompression(cctxPtr->prefs.frameInfo.blockMode, cctxPtr->prefs.compressionLevel);
604 if (cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) cctxPtr->tmpIn += blockSize;
626 if ((cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) && (lastBlockCompressed==fromSrcBuffer))
657 if (cctxPtr->prefs.frameInfo.contentChecksumFlag == LZ4F_contentChecksumEnabled)
687 compress = LZ4F_selectCompression(cctxPtr->prefs.frameInfo.blockMode, cctxPtr->prefs.compressionLevel);
691 if (cctxPtr->prefs.frameInfo.blockMode==LZ4F_blockLinked) cctxPtr->tmpIn += cctxPtr->tmpInSize;
728 if (cctxPtr->prefs.frameInfo.contentChecksumFlag == LZ4F_contentChecksumEnabled)
737 if (cctxPtr->prefs.frameInfo.contentSize)
739 if (cctxPtr->prefs.frameInfo.contentSize != cctxPtr->totalInSize)
807 dctxPtr->frameInfo and dctxPtr->dStage.
818 /* need to decode header to get frameInfo */
820 memset(&(dctxPtr->frameInfo), 0, sizeof(dctxPtr->frameInfo));
825 dctxPtr->frameInfo.frameType = LZ4F_skippableFrame;
842 dctxPtr->frameInfo.frameType = LZ4F_frame;
882 dctxPtr->frameInfo.blockMode = (LZ4F_blockMode_t)blockMode;
883 dctxPtr->frameInfo.contentChecksumFlag = (LZ4F_contentChecksum_t)contentChecksumFlag;
884 dctxPtr->frameInfo.blockSizeID = (LZ4F_blockSizeID_t)blockSizeID;
887 dctxPtr->frameRemainingSize = dctxPtr->frameInfo.contentSize = LZ4F_readLE64(srcPtr+6);
893 bufferNeeded = dctxPtr->maxBlockSize + ((dctxPtr->frameInfo.blockMode==LZ4F_blockLinked) * 128 KB);
936 /* frameInfo already decoded */
938 *frameInfoPtr = dctxPtr->frameInfo;
947 *frameInfoPtr = dctxPtr->frameInfo;
1177 if (dctxPtr->frameInfo.contentChecksumFlag) XXH32_update(&(dctxPtr->xxh), srcPtr, sizeToCopy);
1178 if (dctxPtr->frameInfo.contentSize) dctxPtr->frameRemainingSize -= sizeToCopy;
1181 if (dctxPtr->frameInfo.blockMode==LZ4F_blockLinked)
1243 if (dctxPtr->frameInfo.blockMode == LZ4F_blockLinked)
1250 if (dctxPtr->frameInfo.contentChecksumFlag) XXH32_update(&(dctxPtr->xxh), dstPtr, decodedSize);
1251 if (dctxPtr->frameInfo.contentSize) dctxPtr->frameRemainingSize -= decodedSize;
1254 if (dctxPtr->frameInfo.blockMode==LZ4F_blockLinked)
1268 if (dctxPtr->frameInfo.blockMode == LZ4F_blockLinked)
1274 if (dctxPtr->frameInfo.blockMode == LZ4F_blockLinked)
1296 if (dctxPtr->frameInfo.contentChecksumFlag) XXH32_update(&(dctxPtr->xxh), dctxPtr->tmpOut, decodedSize);
1297 if (dctxPtr->frameInfo.contentSize) dctxPtr->frameRemainingSize -= decodedSize;
1311 if (dctxPtr->frameInfo.blockMode==LZ4F_blockLinked)
1330 size_t suffixSize = dctxPtr->frameInfo.contentChecksumFlag * 4;
1415 dctxPtr->frameInfo.contentSize = SFrameSize;
1437 if ( (dctxPtr->frameInfo.blockMode==LZ4F_blockLinked)