Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
e09a9a6c
Commit
e09a9a6c
authored
Nov 06, 2017
by
Thomas Daede
Browse files
Update entropy optimizer for new AOM_CDF* macros.
Change-Id: If0b45997af5c0b209b48db9bd78ed6be204acb7c
parent
e82e5774
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/aom_entropy_optimizer.c
View file @
e09a9a6c
...
...
@@ -251,9 +251,12 @@ static int parse_counts_for_cdf_opt(aom_count_type **ct_ptr,
(
*
ct_ptr
)
+=
total_modes
;
if
(
tabs
>
0
)
fprintf
(
probsfile
,
"%*c"
,
tabs
*
SPACES_PER_TAB
,
' '
);
for
(
int
k
=
0
;
k
<
total_modes
;
++
k
)
fprintf
(
probsfile
,
" AOM_ICDF(%d),"
,
cdfs
[
k
]);
fprintf
(
probsfile
,
" 0 "
);
fprintf
(
probsfile
,
"AOM_CDF%d( "
,
total_modes
);
for
(
int
k
=
0
;
k
<
total_modes
-
1
;
++
k
)
{
fprintf
(
probsfile
,
"%d"
,
cdfs
[
k
]);
if
(
k
<
total_modes
-
2
)
fprintf
(
probsfile
,
","
);
}
fprintf
(
probsfile
,
" )"
);
}
else
{
for
(
int
k
=
0
;
k
<
cts_each_dim
[
0
];
++
k
)
{
int
tabs_next_level
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment