Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
8a8cd6b8
Commit
8a8cd6b8
authored
7 years ago
by
Angie Chiang
Browse files
Options
Downloads
Patches
Plain Diff
Generate lv_map default prob by entropy_stats
Change-Id: Icc104c098264bb033b17ce1ca6caf9c1fe1e0bef
parent
2b38deff
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/aom_entropy_optimizer.c
+56
-0
56 additions, 0 deletions
tools/aom_entropy_optimizer.c
with
56 additions
and
0 deletions
tools/aom_entropy_optimizer.c
+
56
−
0
View file @
8a8cd6b8
...
...
@@ -783,6 +783,62 @@ int main(int argc, const char **argv) {
"static const aom_cdf_prob default_filter_intra_cdf[2][CDF_SIZE(2)]"
);
#endif
#if CONFIG_LV_MAP
cts_each_dim
[
0
]
=
TX_SIZES
;
cts_each_dim
[
1
]
=
PLANE_TYPES
;
cts_each_dim
[
2
]
=
NUM_BASE_LEVELS
;
cts_each_dim
[
3
]
=
COEFF_BASE_CONTEXTS
;
cts_each_dim
[
4
]
=
2
;
optimize_entropy_table
(
&
fc
.
coeff_base
[
0
][
0
][
0
][
0
][
0
],
probsfile
,
5
,
cts_each_dim
,
NULL
,
1
,
"static const aom_prob "
"default_coeff_base[TX_SIZES][PLANE_TYPES][NUM_BASE_"
"LEVELS][COEFF_BASE_CONTEXTS]"
);
optimize_cdf_table
(
&
fc
.
coeff_base
[
0
][
0
][
0
][
0
][
0
],
probsfile
,
5
,
cts_each_dim
,
"static const aom_cdf_prob "
"default_coeff_base_cdf[TX_SIZES][PLANE_TYPES][NUM_BASE_"
"LEVELS][COEFF_BASE_CONTEXTS][CDF_SIZE(2)]"
);
cts_each_dim
[
0
]
=
TX_SIZES
;
cts_each_dim
[
1
]
=
PLANE_TYPES
;
cts_each_dim
[
2
]
=
SIG_COEF_CONTEXTS
;
cts_each_dim
[
3
]
=
2
;
optimize_entropy_table
(
&
fc
.
nz_map
[
0
][
0
][
0
][
0
],
probsfile
,
4
,
cts_each_dim
,
NULL
,
1
,
"static const aom_prob "
"default_nz_map[TX_SIZES][PLANE_TYPES][SIG_COEF_CONTEXTS]"
);
optimize_cdf_table
(
&
fc
.
nz_map
[
0
][
0
][
0
][
0
],
probsfile
,
4
,
cts_each_dim
,
"static const aom_cdf_prob "
"default_nz_map_cdf[TX_SIZES][PLANE_TYPES][SIG_COEF_"
"CONTEXTS][CDF_SIZE(2)]"
);
cts_each_dim
[
0
]
=
TX_SIZES
;
cts_each_dim
[
1
]
=
PLANE_TYPES
;
cts_each_dim
[
2
]
=
EOB_COEF_CONTEXTS
;
cts_each_dim
[
3
]
=
2
;
optimize_entropy_table
(
&
fc
.
eob_flag
[
0
][
0
][
0
][
0
],
probsfile
,
4
,
cts_each_dim
,
NULL
,
1
,
"static const aom_prob "
"default_eob_flag[TX_SIZES][PLANE_TYPES][EOB_COEF_CONTEXTS]"
);
optimize_cdf_table
(
&
fc
.
eob_flag
[
0
][
0
][
0
][
0
],
probsfile
,
4
,
cts_each_dim
,
"static const aom_cdf_prob "
"default_eob_flag_cdf[TX_SIZES][PLANE_TYPES][EOB_COEF_"
"CONTEXTS][CDF_SIZE(2)]"
);
cts_each_dim
[
0
]
=
TX_SIZES
;
cts_each_dim
[
1
]
=
PLANE_TYPES
;
cts_each_dim
[
2
]
=
LEVEL_CONTEXTS
;
cts_each_dim
[
3
]
=
2
;
optimize_entropy_table
(
&
fc
.
coeff_lps
[
0
][
0
][
0
][
0
],
probsfile
,
4
,
cts_each_dim
,
NULL
,
1
,
"static const aom_prob "
"default_coeff_lps[TX_SIZES][PLANE_TYPES][LEVEL_CONTEXTS]"
);
optimize_cdf_table
(
&
fc
.
coeff_lps
[
0
][
0
][
0
][
0
],
probsfile
,
4
,
cts_each_dim
,
"static const aom_cdf_prob "
"default_coeff_lps_cdf[TX_SIZES][PLANE_TYPES][LEVEL_"
"CONTEXTS][CDF_SIZE(2)]"
);
#endif
fclose
(
statsfile
);
fclose
(
logfile
);
fclose
(
probsfile
);
...
...
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