Commit e09a9a6c authored by Thomas Daede's avatar Thomas Daede

Update entropy optimizer for new AOM_CDF* macros.

Change-Id: If0b45997af5c0b209b48db9bd78ed6be204acb7c
parent e82e5774
...@@ -251,9 +251,12 @@ static int parse_counts_for_cdf_opt(aom_count_type **ct_ptr, ...@@ -251,9 +251,12 @@ static int parse_counts_for_cdf_opt(aom_count_type **ct_ptr,
(*ct_ptr) += total_modes; (*ct_ptr) += total_modes;
if (tabs > 0) fprintf(probsfile, "%*c", tabs * SPACES_PER_TAB, ' '); if (tabs > 0) fprintf(probsfile, "%*c", tabs * SPACES_PER_TAB, ' ');
for (int k = 0; k < total_modes; ++k) fprintf(probsfile, "AOM_CDF%d( ", total_modes);
fprintf(probsfile, " AOM_ICDF(%d),", cdfs[k]); for (int k = 0; k < total_modes - 1; ++k) {
fprintf(probsfile, " 0 "); fprintf(probsfile, "%d", cdfs[k]);
if (k < total_modes - 2) fprintf(probsfile, ",");
}
fprintf(probsfile, " )");
} else { } else {
for (int k = 0; k < cts_each_dim[0]; ++k) { for (int k = 0; k < cts_each_dim[0]; ++k) {
int tabs_next_level; int tabs_next_level;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment