提交 656c9664 编写于 作者: T tickduan

less element compress modify from 50 to 10

上级 27079205
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
//prediction mode of temporal dimension based compression //prediction mode of temporal dimension based compression
#define SZ_PREVIOUS_VALUE_ESTIMATE 0 #define SZ_PREVIOUS_VALUE_ESTIMATE 0
#define MIN_NUM_OF_ELEMENTS 50 //if the # elements <= 20, skip the compression #define MIN_NUM_OF_ELEMENTS 10 //if the # elements <= 20, skip the compression
#define SZ_ABS 0 #define SZ_ABS 0
#define REL 1 #define REL 1
......
...@@ -303,7 +303,7 @@ int SZ_compress_args_double(double *oriData, size_t r1, unsigned char* newByteDa ...@@ -303,7 +303,7 @@ int SZ_compress_args_double(double *oriData, size_t r1, unsigned char* newByteDa
// check at least elements count // check at least elements count
if(dataLength <= MIN_NUM_OF_ELEMENTS) if(dataLength <= MIN_NUM_OF_ELEMENTS)
{ {
printf("error, double input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS); printf("warning, double input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS);
return SZ_LITTER_ELEMENT; return SZ_LITTER_ELEMENT;
} }
......
...@@ -305,7 +305,7 @@ int SZ_compress_args_float(float *oriData, size_t r1, unsigned char* newByteData ...@@ -305,7 +305,7 @@ int SZ_compress_args_float(float *oriData, size_t r1, unsigned char* newByteData
// check at least elements count // check at least elements count
if(dataLength <= MIN_NUM_OF_ELEMENTS) if(dataLength <= MIN_NUM_OF_ELEMENTS)
{ {
printf("error, input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS); printf("warning, input elements count=%d less than %d, so need not do compress.\n", (int)dataLength, MIN_NUM_OF_ELEMENTS);
return SZ_LITTER_ELEMENT; return SZ_LITTER_ELEMENT;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册