Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
bdef4288
Commit
bdef4288
authored
Oct 21, 2022
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
Update test cases with new contains names
parent
81004a38
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!12
increase code coverage, general code refactoring
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/cmp_icu/test_cmp_decmp.c
+18
-18
18 additions, 18 deletions
test/cmp_icu/test_cmp_decmp.c
with
18 additions
and
18 deletions
test/cmp_icu/test_cmp_decmp.c
+
18
−
18
View file @
bdef4288
...
@@ -435,30 +435,30 @@ void generate_random_cmp_par(struct cmp_cfg *cfg)
...
@@ -435,30 +435,30 @@ void generate_random_cmp_par(struct cmp_cfg *cfg)
cfg
->
ap1_golomb_par
=
random_between
(
MIN_IMA_GOLOMB_PAR
,
MAX_IMA_GOLOMB_PAR
);
cfg
->
ap1_golomb_par
=
random_between
(
MIN_IMA_GOLOMB_PAR
,
MAX_IMA_GOLOMB_PAR
);
cfg
->
ap2_golomb_par
=
random_between
(
MIN_IMA_GOLOMB_PAR
,
MAX_IMA_GOLOMB_PAR
);
cfg
->
ap2_golomb_par
=
random_between
(
MIN_IMA_GOLOMB_PAR
,
MAX_IMA_GOLOMB_PAR
);
cfg
->
cmp_par_exp_flags
=
random_between
(
MIN_
ICU
_GOLOMB_PAR
,
MAX_
ICU
_GOLOMB_PAR
);
cfg
->
cmp_par_exp_flags
=
random_between
(
MIN_
NON_IMA
_GOLOMB_PAR
,
MAX_
NON_IMA
_GOLOMB_PAR
);
cfg
->
cmp_par_fx
=
random_between
(
MIN_
ICU
_GOLOMB_PAR
,
MAX_
ICU
_GOLOMB_PAR
);
cfg
->
cmp_par_fx
=
random_between
(
MIN_
NON_IMA
_GOLOMB_PAR
,
MAX_
NON_IMA
_GOLOMB_PAR
);
cfg
->
cmp_par_ncob
=
random_between
(
MIN_
ICU
_GOLOMB_PAR
,
MAX_
ICU
_GOLOMB_PAR
);
cfg
->
cmp_par_ncob
=
random_between
(
MIN_
NON_IMA
_GOLOMB_PAR
,
MAX_
NON_IMA
_GOLOMB_PAR
);
cfg
->
cmp_par_efx
=
random_between
(
MIN_
ICU
_GOLOMB_PAR
,
MAX_
ICU
_GOLOMB_PAR
);
cfg
->
cmp_par_efx
=
random_between
(
MIN_
NON_IMA
_GOLOMB_PAR
,
MAX_
NON_IMA
_GOLOMB_PAR
);
cfg
->
cmp_par_ecob
=
random_between
(
MIN_
ICU
_GOLOMB_PAR
,
MAX_
ICU
_GOLOMB_PAR
);
cfg
->
cmp_par_ecob
=
random_between
(
MIN_
NON_IMA
_GOLOMB_PAR
,
MAX_
NON_IMA
_GOLOMB_PAR
);
cfg
->
cmp_par_fx_cob_variance
=
random_between
(
MIN_
ICU
_GOLOMB_PAR
,
MAX_
ICU
_GOLOMB_PAR
);
cfg
->
cmp_par_fx_cob_variance
=
random_between
(
MIN_
NON_IMA
_GOLOMB_PAR
,
MAX_
NON_IMA
_GOLOMB_PAR
);
cfg
->
cmp_par_mean
=
random_between
(
MIN_
ICU
_GOLOMB_PAR
,
MAX_
ICU
_GOLOMB_PAR
);
cfg
->
cmp_par_mean
=
random_between
(
MIN_
NON_IMA
_GOLOMB_PAR
,
MAX_
NON_IMA
_GOLOMB_PAR
);
cfg
->
cmp_par_variance
=
random_between
(
MIN_
ICU
_GOLOMB_PAR
,
MAX_
ICU
_GOLOMB_PAR
);
cfg
->
cmp_par_variance
=
random_between
(
MIN_
NON_IMA
_GOLOMB_PAR
,
MAX_
NON_IMA
_GOLOMB_PAR
);
cfg
->
cmp_par_pixels_error
=
random_between
(
MIN_
ICU
_GOLOMB_PAR
,
MAX_
ICU
_GOLOMB_PAR
);
cfg
->
cmp_par_pixels_error
=
random_between
(
MIN_
NON_IMA
_GOLOMB_PAR
,
MAX_
NON_IMA
_GOLOMB_PAR
);
cfg
->
spill
=
random_between
(
MIN_IMA_SPILL
,
cmp_ima_max_spill
(
cfg
->
golomb_par
));
cfg
->
spill
=
random_between
(
MIN_IMA_SPILL
,
cmp_ima_max_spill
(
cfg
->
golomb_par
));
cfg
->
ap1_spill
=
random_between
(
MIN_IMA_SPILL
,
cmp_ima_max_spill
(
cfg
->
ap1_golomb_par
));
cfg
->
ap1_spill
=
random_between
(
MIN_IMA_SPILL
,
cmp_ima_max_spill
(
cfg
->
ap1_golomb_par
));
cfg
->
ap2_spill
=
random_between
(
MIN_IMA_SPILL
,
cmp_ima_max_spill
(
cfg
->
ap2_golomb_par
));
cfg
->
ap2_spill
=
random_between
(
MIN_IMA_SPILL
,
cmp_ima_max_spill
(
cfg
->
ap2_golomb_par
));
cfg
->
spill_exp_flags
=
random_between
(
MIN_
ICU
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_exp_flags
));
cfg
->
spill_exp_flags
=
random_between
(
MIN_
NON_IMA
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_exp_flags
));
cfg
->
spill_fx
=
random_between
(
MIN_
ICU
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_fx
));
cfg
->
spill_fx
=
random_between
(
MIN_
NON_IMA
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_fx
));
cfg
->
spill_ncob
=
random_between
(
MIN_
ICU
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_ncob
));
cfg
->
spill_ncob
=
random_between
(
MIN_
NON_IMA
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_ncob
));
cfg
->
spill_efx
=
random_between
(
MIN_
ICU
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_efx
));
cfg
->
spill_efx
=
random_between
(
MIN_
NON_IMA
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_efx
));
cfg
->
spill_ecob
=
random_between
(
MIN_
ICU
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_ecob
));
cfg
->
spill_ecob
=
random_between
(
MIN_
NON_IMA
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_ecob
));
cfg
->
spill_fx_cob_variance
=
random_between
(
MIN_
ICU
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_fx_cob_variance
));
cfg
->
spill_fx_cob_variance
=
random_between
(
MIN_
NON_IMA
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_fx_cob_variance
));
cfg
->
spill_mean
=
random_between
(
MIN_
ICU
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_mean
));
cfg
->
spill_mean
=
random_between
(
MIN_
NON_IMA
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_mean
));
cfg
->
spill_variance
=
random_between
(
MIN_
ICU
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_variance
));
cfg
->
spill_variance
=
random_between
(
MIN_
NON_IMA
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_variance
));
cfg
->
spill_pixels_error
=
random_between
(
MIN_
ICU
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_pixels_error
));
cfg
->
spill_pixels_error
=
random_between
(
MIN_
NON_IMA
_SPILL
,
cmp_icu_max_spill
(
cfg
->
cmp_par_pixels_error
));
#if 0
#if 0
if (cfg->cmp_mode == CMP_MODE_STUFF) {
if (cfg->cmp_mode == CMP_MODE_STUFF) {
/* cfg->golomb_par = random_between(16, MAX_STUFF_CMP_PAR); */
/* cfg->golomb_par = random_between(16, MAX_STUFF_CMP_PAR); */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment