staticconstchar*please_check_str="Please check that the compression parameters match those used to compress the data and that the compressed data are not corrupted.\n";
MAYBE_UNUSEDstaticconstchar*please_check_str=
"Please check that the compression parameters match those used to compress the data and that the compressed data are not corrupted.";
@@ -1874,7 +1890,7 @@ static int decompressed_data_internal(const struct cmp_cfg *cfg)
caseDATA_TYPE_SAT_IMAGETTE_ADAPTIVE:
caseDATA_TYPE_F_CAM_IMAGETTE:
caseDATA_TYPE_F_CAM_IMAGETTE_ADAPTIVE:
err=decompress_imagette(cfg,&dec);
err=decompress_imagette(cfg,&dec,decmp_type);
break;
caseDATA_TYPE_S_FX:
err=decompress_s_fx(cfg,&dec);
...
...
@@ -1930,14 +1946,14 @@ static int decompressed_data_internal(const struct cmp_cfg *cfg)
caseDATA_TYPE_UNKNOWN:
default:
err=-1;
debug_print("Error: Compressed data type not supported.\n");
debug_print("Error: Compressed data type not supported.");
break;
}
switch(bit_refill(&dec)){
caseBIT_OVERFLOW:
if(dec.cursor==dec.limit_ptr)
debug_print("Error: The end of the compressed bit stream has been exceeded. Please check that the compression parameters match those used to compress the data and that the compressed data are not corrupted.\n");
debug_print("Error: The end of the compressed bit stream has been exceeded. Please check that the compression parameters match those used to compress the data and that the compressed data are not corrupted.");
else
debug_print("Error: Data consistency check failed. %s",please_check_str);
break;
...
...
@@ -1947,7 +1963,7 @@ static int decompressed_data_internal(const struct cmp_cfg *cfg)
break;
/* fall through */
caseBIT_UNFINISHED:
debug_print("Warning: Not all compressed data are processed.\n");
debug_print("Warning: Not all compressed data are processed.");