[*] whatever
This commit is contained in:
parent
3d9ad0350e
commit
ff0fbed560
@ -26,11 +26,11 @@ namespace Aurora::Compression
|
||||
* LZ4 : N/A
|
||||
* Deflate: 0 <= x >= 9,
|
||||
* recommended: 6
|
||||
* Zip: 0 <= x >= 9,
|
||||
* Zip: 0 <= x <= 9,
|
||||
* recommended: 6
|
||||
* GZip: 0 <= x >= 9,
|
||||
* GZip: 0 <= x <= 9,
|
||||
* recommended: 6
|
||||
* BZIP: 0 <= x >= 9
|
||||
* BZIP: 0 <= x <= 9
|
||||
*
|
||||
*/
|
||||
AuInt8 uCompressionLevel { 6 };
|
||||
@ -115,7 +115,7 @@ namespace Aurora::Compression
|
||||
/**
|
||||
* @brief Flag for headerless decompression streams
|
||||
*/
|
||||
AuOptionalEx<AuInt8> uWindowBits { 15 };
|
||||
AuOptionalEx<AuInt8> uWindowBits { };
|
||||
|
||||
AuUInt8 uThreads { 1 };
|
||||
|
||||
|
@ -47,14 +47,14 @@ namespace Aurora::Compression
|
||||
uRet = ZSTD_CCtx_setParameter(this->cctx_, ZSTD_c_compressionLevel, meta.uCompressionLevel);
|
||||
if (ZSTD_isError(uRet))
|
||||
{
|
||||
SysPushErrorGen("Invalid compression level");
|
||||
SysPushErrorArg("Invalid compression level");
|
||||
return false;
|
||||
}
|
||||
|
||||
uRet = ZSTD_CCtx_setParameter(this->cctx_, ZSTD_c_checksumFlag, meta.bErrorCheck ? 1 : 0);
|
||||
if (ZSTD_isError(uRet))
|
||||
{
|
||||
SysPushErrorGen("Invalid option");
|
||||
SysPushErrorArg("Invalid option");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -63,7 +63,7 @@ namespace Aurora::Compression
|
||||
uRet = ZSTD_CCtx_setParameter(this->cctx_, ZSTD_c_strategy, meta.uQuality.value());
|
||||
if (ZSTD_isError(uRet))
|
||||
{
|
||||
SysPushErrorGen("ZSTD_c_strategy");
|
||||
SysPushErrorArg("ZSTD_c_strategy");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -72,7 +72,7 @@ namespace Aurora::Compression
|
||||
uRet = ZSTD_CCtx_setParameter(this->cctx_, ZSTD_c_nbWorkers, AuMax(meta.uThreads, AuUInt8(1u)));
|
||||
if (ZSTD_isError(uRet))
|
||||
{
|
||||
SysPushErrorGen();
|
||||
SysPushErrorArg();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user