Home
last modified time | relevance | path

Searched refs:pledgedSrcSize (Results 1 – 11 of 11) sorted by relevance

/external/zstd/lib/deprecated/
Dzbuff_compress.c73 ZSTD_parameters params, unsigned long long pledgedSrcSize) in ZBUFF_compressInit_advanced() argument
75 …if (pledgedSrcSize==0) pledgedSrcSize = ZSTD_CONTENTSIZE_UNKNOWN; /* preserve "0 == unknown" beha… in ZBUFF_compressInit_advanced()
76 return ZSTD_initCStream_advanced(zbc, dict, dictSize, params, pledgedSrcSize); in ZBUFF_compressInit_advanced()
Dzbuff.h205 … ZSTD_parameters params, unsigned long long pledgedSrcSize);
/external/zstd/lib/compress/
Dzstd_compress.c944 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize) in ZSTD_CCtx_setPledgedSrcSize() argument
946 DEBUGLOG(4, "ZSTD_CCtx_setPledgedSrcSize to %u bytes", (U32)pledgedSrcSize); in ZSTD_CCtx_setPledgedSrcSize()
949 cctx->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_CCtx_setPledgedSrcSize()
1304 const U64 pledgedSrcSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal() argument
1306 size_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << cParams->windowLog), pledgedSrcSize)); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1602 U64 const pledgedSrcSize, in ZSTD_resetCCtx_internal() argument
1608 (U32)pledgedSrcSize, params.cParams.windowLog); in ZSTD_resetCCtx_internal()
1621 …ize_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << params.cParams.windowLog), pledgedSrcSize)); in ZSTD_resetCCtx_internal()
1640 buffInSize, buffOutSize, pledgedSrcSize); in ZSTD_resetCCtx_internal()
1683 zc->pledgedSrcSizePlusOne = pledgedSrcSize+1; in ZSTD_resetCCtx_internal()
[all …]
Dzstdmt_compress.h72 ZSTD_CCtx_params params, unsigned long long pledgedSrcSize);
Dzstdmt_compress.c694 U64 const pledgedSrcSize = job->firstJob ? job->fullFrameSize : job->src.size; in ZSTDMT_compressionJob() local
702 &jobParams, pledgedSrcSize); in ZSTDMT_compressionJob()
1193 unsigned long long pledgedSrcSize) in ZSTDMT_initCStream_internal() argument
1196 (U32)pledgedSrcSize, params.nbWorkers, mtctx->cctxPool->totalCCtx); in ZSTDMT_initCStream_internal()
1218 mtctx->frameContentSize = pledgedSrcSize; in ZSTDMT_initCStream_internal()
Dzstd_compress_internal.h1152 const ZSTD_CCtx_params* params, unsigned long long pledgedSrcSize);
1168 unsigned long long pledgedSrcSize);
/external/zstd/lib/
Dzstd.h483 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize);
2029 unsigned long long pledgedSrcSize);
2067 unsigned long long pledgedSrcSize);
2098 unsigned long long pledgedSrcSize);
2115 ZSTDLIB_API size_t ZSTD_resetCStream(ZSTD_CStream* zcs, unsigned long long pledgedSrcSize);
2228 …d* dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize); /**< pledged…
2230 … cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize); /* compres…
2231 …x(ZSTD_CCtx* cctx, const ZSTD_CCtx* preparedCCtx, unsigned long long pledgedSrcSize); /**< note: …
/external/zstd/zlibWrapper/
Dzstd_zlibwrapper.c165 unsigned long long pledgedSrcSize; member
202 …alizeCStream(ZWRAP_CCtx* zwc, const void* dict, size_t dictSize, unsigned long long pledgedSrcSize) in ZWRAP_initializeCStream() argument
207 if (!pledgedSrcSize) pledgedSrcSize = zwc->pledgedSrcSize; in ZWRAP_initializeCStream()
208 …{ ZSTD_parameters const params = ZSTD_getParams(zwc->compressionLevel, pledgedSrcSize, dictSize); in ZWRAP_initializeCStream()
211 …(int)pledgedSrcSize, params.cParams.windowLog, params.cParams.chainLog, params.cParams.hashLog, pa… in ZWRAP_initializeCStream()
212 initErr = ZSTD_initCStream_advanced(zwc->zbc, dict, dictSize, params, pledgedSrcSize); in ZWRAP_initializeCStream()
239 int ZWRAP_setPledgedSrcSize(z_streamp strm, unsigned long long pledgedSrcSize) in ZWRAP_setPledgedSrcSize() argument
244 zwc->pledgedSrcSize = pledgedSrcSize; in ZWRAP_setPledgedSrcSize()
375 …resetErr = ZSTD_resetCStream(zwc->zbc, (flush == Z_FINISH) ? strm->avail_in : zwc->pledgedSrcSize); in z_deflate()
Dzstd_zlibwrapper.h52 int ZWRAP_setPledgedSrcSize(z_streamp strm, unsigned long long pledgedSrcSize);
/external/zstd/tests/
Dzstreamtest.c1839 { U64 const pledgedSrcSize = (FUZ_rand(&lseed) & 3) ? 0 : maxTestSize; in fuzzerTests() local
1840 CHECK_Z( ZSTD_resetCStream(zc, pledgedSrcSize) ); in fuzzerTests()
1857 … { U64 const pledgedSrcSize = (FUZ_rand(&lseed) & 3) ? ZSTD_CONTENTSIZE_UNKNOWN : maxTestSize; in fuzzerTests() local
1858 ZSTD_parameters params = ZSTD_getParams(cLevel, pledgedSrcSize, dictSize); in fuzzerTests()
1862 CHECK_Z ( ZSTD_initCStream_advanced(zc, dict, dictSize, params, pledgedSrcSize) ); in fuzzerTests()
2065 U64 pledgedSrcSize = ZSTD_CONTENTSIZE_UNKNOWN; in fuzzerTests_newAPI() local
2136 pledgedSrcSize = (FUZ_rand(&lseed) & 3) ? ZSTD_CONTENTSIZE_UNKNOWN : maxTestSize; in fuzzerTests_newAPI()
2137 … { ZSTD_compressionParameters cParams = ZSTD_getCParams(cLevel, pledgedSrcSize, dictSize); in fuzzerTests_newAPI()
2152 cParams = ZSTD_adjustCParams(cParams, pledgedSrcSize, dictSize); in fuzzerTests_newAPI()
2191 … DISPLAYLEVEL(5, "t%u: pledgedSrcSize : %u \n", testNb, (unsigned)pledgedSrcSize); in fuzzerTests_newAPI()
[all …]
/external/zstd/
DCHANGELOG274 api : change : when setting `pledgedSrcSize`, use `ZSTD_CONTENTSIZE_UNKNOWN` macro value to mean "u…
346 API : fix : enforced consistent rules for pledgedSrcSize==0 (#641)