Update uv_mode_cdf tables once per frame.

Move computing the uv_mode_cdf tables per coded intra mode symbol to
 computing them only when the probabilities are updated.

Change-Id: I627b59d30726c913f5d7ba7753cb0446a12655bb
This commit is contained in:
Nathan E. Egge
2016-09-08 10:13:42 -04:00
committed by Yaowu Xu
parent 5710c722af
commit 380cb1a93c
5 changed files with 41 additions and 14 deletions

View File

@@ -3725,9 +3725,14 @@ static int read_compressed_header(AV1Decoder *pbi, const uint8_t *data,
#endif
}
for (j = 0; j < INTRA_MODES; j++)
for (j = 0; j < INTRA_MODES; j++) {
for (i = 0; i < INTRA_MODES - 1; ++i)
av1_diff_update_prob(&r, &fc->uv_mode_prob[j][i], ACCT_STR);
#if CONFIG_DAALA_EC
av1_tree_to_cdf(av1_intra_mode_tree, fc->uv_mode_prob[j],
fc->uv_mode_cdf[j]);
#endif
}
#if CONFIG_EXT_PARTITION_TYPES
for (i = 0; i < PARTITION_TYPES - 1; ++i)