Commit 127af90c authored by Yaowu Xu's avatar Yaowu Xu

misc-fix: allow bw update keyframe skip/tx probs

This commit merges the fix that allows backward update of skip/tx
probabilities in key frames.

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

Change-Id: Ia09c289fb431bfa666c578a466446cd4d8cac992
parent 3e3a6bf0
......@@ -2428,14 +2428,9 @@ void av1_decode_frame(AV1Decoder *pbi, const uint8_t *data,
if (!xd->corrupted) {
if (cm->refresh_frame_context == REFRESH_FRAME_CONTEXT_BACKWARD) {
av1_adapt_coef_probs(cm);
#if CONFIG_MISC_FIXES
av1_adapt_intra_frame_probs(cm);
#endif
if (!frame_is_intra_only(cm)) {
#if !CONFIG_MISC_FIXES
av1_adapt_intra_frame_probs(cm);
#endif
av1_adapt_inter_frame_probs(cm);
av1_adapt_mv_probs(cm, cm->allow_high_precision_mv);
}
......
......@@ -3821,11 +3821,7 @@ static void encode_frame_to_data_rate(AV1_COMP *cpi, size_t *size,
if (cm->refresh_frame_context == REFRESH_FRAME_CONTEXT_BACKWARD) {
av1_adapt_coef_probs(cm);
#if CONFIG_MISC_FIXES
av1_adapt_intra_frame_probs(cm);
#else
if (!frame_is_intra_only(cm)) av1_adapt_intra_frame_probs(cm);
#endif
}
if (!frame_is_intra_only(cm)) {
......
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