Update inter_mode_cdf tables once per frame.
Move computing the inter_mode_cdf tables per coded inter mode symbol to computing them only when the probabilities are updated. Change-Id: I7a7b059ee75723cb6f278ed82a20cf34c27915d8
This commit is contained in:
@@ -134,9 +134,14 @@ static void read_inter_mode_probs(FRAME_CONTEXT *fc, aom_reader *r) {
|
||||
#endif // CONFIG_EXT_INTER
|
||||
#else
|
||||
int j;
|
||||
for (i = 0; i < INTER_MODE_CONTEXTS; ++i)
|
||||
for (i = 0; i < INTER_MODE_CONTEXTS; ++i) {
|
||||
for (j = 0; j < INTER_MODES - 1; ++j)
|
||||
av1_diff_update_prob(r, &fc->inter_mode_probs[i][j], ACCT_STR);
|
||||
#if CONFIG_DAALA_EC
|
||||
av1_tree_to_cdf(av1_inter_mode_tree, fc->inter_mode_probs[i],
|
||||
fc->inter_mode_cdf[i]);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user