Fix #103 and comments for level and version numbers

This commit is contained in:
Tino Reichardt
2020-04-10 14:28:15 +02:00
parent 26cca533b1
commit d17138af60
6 changed files with 11 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#define MY_VER_MAJOR 19
#define MY_VER_MINOR 00
#define MY_VER_BUILD 0
#define MY_VERSION_NUMBERS "19.00 ZS v1.4.4 R1"
#define MY_VERSION_NUMBERS "19.00 ZS v1.4.4 R2"
#define MY_VERSION MY_VERSION_NUMBERS
#ifdef MY_CPU_NAME
@@ -10,12 +10,12 @@
#define MY_VERSION_CPU MY_VERSION
#endif
#define MY_DATE "2019-11-13"
#define MY_DATE "2020-04-10"
#undef MY_COPYRIGHT
#undef MY_VERSION_COPYRIGHT_DATE
#define MY_AUTHOR_NAME "Igor Pavlov, Tino Reichardt"
#define MY_COPYRIGHT_PD "Igor Pavlov : Public domain"
#define MY_COPYRIGHT_CR "Copyright (c) 1999-2019 Igor Pavlov, 2016-2019 Tino Reichardt"
#define MY_COPYRIGHT_CR "Copyright (c) 1999-2019 Igor Pavlov, 2016-2020 Tino Reichardt"
#ifdef USE_COPYRIGHT_CR
#define MY_COPYRIGHT MY_COPYRIGHT_CR

View File

@@ -48,6 +48,8 @@ struct writelist {
};
struct BROTLIMT_CCtx_s {
/* levels: 1..BROTLIMT_LEVEL_MAX */
int level;
/* threads: 1..BROTLIMT_THREAD_MAX */

View File

@@ -51,7 +51,7 @@ struct writelist {
struct LIZARDMT_CCtx_s {
/* level: 1..22 */
/* level: 1..LIZARDMT_LEVEL_MAX */
int level;
/* threads: 1..LIZARDMT_THREAD_MAX */
@@ -111,7 +111,7 @@ LIZARDMT_CCtx *LIZARDMT_createCCtx(int threads, int level, int inputsize)
if (inputsize)
ctx->inputsize = inputsize;
else
ctx->inputsize = 1024 * 1024;
ctx->inputsize = 1024 * 1024 * 4;
/* setup ctx */
ctx->level = level;

View File

@@ -51,7 +51,7 @@ struct writelist {
struct LZ5MT_CCtx_s {
/* level: 1..22 */
/* level: 1..LZ5MT_LEVEL_MAX */
int level;
/* threads: 1..LZ5MT_THREAD_MAX */
@@ -111,7 +111,7 @@ LZ5MT_CCtx *LZ5MT_createCCtx(int threads, int level, int inputsize)
if (inputsize)
ctx->inputsize = inputsize;
else
ctx->inputsize = 1024 * 64;
ctx->inputsize = 1024 * 1024 * 4;
/* setup ctx */
ctx->level = level;

View File

@@ -1,4 +1,4 @@
// (C) 2016 Tino Reichardt
// (C) 2016 - 2020 Tino Reichardt
#include "StdAfx.h"
#include "Lz4Encoder.h"
@@ -40,7 +40,6 @@ STDMETHODIMP CEncoder::SetCoderProperties(const PROPID * propIDs, const PROPVARI
if (prop.vt != VT_UI4)
return E_INVALIDARG;
/* level 1..22 */
_props._level = static_cast < Byte > (prop.ulVal);
Byte mylevel = static_cast < Byte > (LZ4MT_LEVEL_MAX);
if (_props._level > mylevel)

View File

@@ -1,4 +1,4 @@
// (C) 2016 Tino Reichardt
// (C) 2016 - 2020 Tino Reichardt
#include "StdAfx.h"
#include "Lz5Encoder.h"
@@ -40,7 +40,6 @@ STDMETHODIMP CEncoder::SetCoderProperties(const PROPID * propIDs, const PROPVARI
if (prop.vt != VT_UI4)
return E_INVALIDARG;
/* level 1..22 */
_props._level = static_cast < Byte > (prop.ulVal);
Byte mylevel = static_cast < Byte > (LZ5MT_LEVEL_MAX);
if (_props._level > mylevel)