11 #ifndef ZSTDMT_COMPRESS_H
12 #define ZSTDMT_COMPRESS_H
14 #if defined (__cplusplus)
29#include "../common/zstd_deps.h"
30#define ZSTD_STATIC_LINKING_ONLY
35#ifndef ZSTDMT_NBWORKERS_MAX
36# define ZSTDMT_NBWORKERS_MAX ((sizeof(void*)==4) ? 64 : 256)
38#ifndef ZSTDMT_JOBSIZE_MIN
39# define ZSTDMT_JOBSIZE_MIN (512 KB)
41#define ZSTDMT_JOBLOG_MAX (MEM_32bits() ? 29 : 30)
42#define ZSTDMT_JOBSIZE_MAX (MEM_32bits() ? (512 MB) : (1024 MB))
55 ZSTD_threadPool *pool);
73 const void* dict,
size_t dictSize, ZSTD_dictContentType_e dictContentType,
75 ZSTD_CCtx_params
params,
unsigned long long pledgedSrcSize);
109#if defined (__cplusplus)
size_t ZSTDMT_toFlushNow(ZSTDMT_CCtx *mtctx)
size_t ZSTDMT_compressStream_generic(ZSTDMT_CCtx *mtctx, ZSTD_outBuffer *output, ZSTD_inBuffer *input, ZSTD_EndDirective endOp)
ZSTD_frameProgression ZSTDMT_getFrameProgression(ZSTDMT_CCtx *mtctx)
void ZSTDMT_updateCParams_whileCompressing(ZSTDMT_CCtx *mtctx, const ZSTD_CCtx_params *cctxParams)
size_t ZSTDMT_nextInputSizeHint(const ZSTDMT_CCtx *mtctx)
size_t ZSTDMT_freeCCtx(ZSTDMT_CCtx *mtctx)
size_t ZSTDMT_sizeof_CCtx(ZSTDMT_CCtx *mtctx)
size_t ZSTDMT_initCStream_internal(ZSTDMT_CCtx *mtctx, const void *dict, size_t dictSize, ZSTD_dictContentType_e dictContentType, const ZSTD_CDict *cdict, ZSTD_CCtx_params params, unsigned long long pledgedSrcSize)
ZSTDMT_CCtx * ZSTDMT_createCCtx_advanced(unsigned nbWorkers, ZSTD_customMem cMem, ZSTD_threadPool *pool)