Skip to content
Snippets Groups Projects
Commit 16d97d9a authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

Relax compression parameters limits for imagette ICU compression

parent 82e9a5a5
No related branches found
No related tags found
1 merge request!26Adapt cmp_tool to the chunk decompression
...@@ -702,6 +702,7 @@ int cmp_cfg_imagette_is_invalid(const struct cmp_cfg *cfg, enum check_opt opt) ...@@ -702,6 +702,7 @@ int cmp_cfg_imagette_is_invalid(const struct cmp_cfg *cfg, enum check_opt opt)
{ {
int cfg_invalid = 0; int cfg_invalid = 0;
enum cmp_mode cmp_mode; enum cmp_mode cmp_mode;
enum cmp_data_type data_type;
if (!cfg) if (!cfg)
return 1; return 1;
...@@ -717,8 +718,14 @@ int cmp_cfg_imagette_is_invalid(const struct cmp_cfg *cfg, enum check_opt opt) ...@@ -717,8 +718,14 @@ int cmp_cfg_imagette_is_invalid(const struct cmp_cfg *cfg, enum check_opt opt)
else else
cmp_mode = cfg->cmp_mode; cmp_mode = cfg->cmp_mode;
if (opt == ICU_CHECK)
data_type = DATA_TYPE_CHUNK;
else
data_type = cfg->data_type;
cfg_invalid += cmp_pars_are_invalid(cfg->golomb_par, cfg->spill, cmp_mode, cfg_invalid += cmp_pars_are_invalid(cfg->golomb_par, cfg->spill, cmp_mode,
cfg->data_type, "imagette"); data_type, "imagette");
/* for the RDCU the adaptive parameters have to be always valid */ /* for the RDCU the adaptive parameters have to be always valid */
if (opt == RDCU_CHECK || cmp_ap_imagette_data_type_is_used(cfg->data_type)) { if (opt == RDCU_CHECK || cmp_ap_imagette_data_type_is_used(cfg->data_type)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment