Commit cf9d7c99 authored by Yaowu Xu's avatar Yaowu Xu

misc-fix: add fwd update of kf intra probs

This commit merges the fix that adds forward update of key frame intra
mode probabilities.

Related tracking issue
https://bugs.chromium.org/p/webm/issues/detail?id=1040
point #5
Original libvpx commit:
1eb51a20

Change-Id: If209b300f956ed3280f0249f6122ddfafe87f2a7
parent 127af90c
......@@ -2096,7 +2096,6 @@ static int read_compressed_header(AV1Decoder *pbi, const uint8_t *data,
#if CONFIG_DAALA_EC
av1_copy(cm->kf_y_cdf, av1_kf_y_mode_cdf);
#endif
#if CONFIG_MISC_FIXES
for (k = 0; k < INTRA_MODES; k++)
for (j = 0; j < INTRA_MODES; j++) {
for (i = 0; i < INTRA_MODES - 1; ++i)
......@@ -2106,7 +2105,6 @@ static int read_compressed_header(AV1Decoder *pbi, const uint8_t *data,
cm->kf_y_cdf[k][j]);
#endif
}
#endif
} else {
#if !CONFIG_REF_MV
nmv_context *const nmvc = &fc->nmvc;
......
......@@ -2213,7 +2213,6 @@ static size_t write_compressed_header(AV1_COMP *cpi, uint8_t *data) {
#if CONFIG_DAALA_EC
av1_copy(cm->kf_y_cdf, av1_kf_y_mode_cdf);
#endif
#if CONFIG_MISC_FIXES
for (i = 0; i < INTRA_MODES; ++i)
for (j = 0; j < INTRA_MODES; ++j) {
prob_diff_update(av1_intra_mode_tree, cm->kf_y_prob[i][j],
......@@ -2224,7 +2223,6 @@ static size_t write_compressed_header(AV1_COMP *cpi, uint8_t *data) {
cm->kf_y_cdf[i][j]);
#endif
}
#endif
} else {
#if CONFIG_REF_MV
update_inter_mode_probs(cm, header_bc, counts);
......
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