Commit 2f24ad9e authored by John Koleszar's avatar John Koleszar
Browse files

Use alt-ref frame context for keyframes

This matches the behavior prior to generalizing the frame context
selection, and intuitively makes sense in that the first forward ref
is immediately after the keyframe, so it's quality is improved a bit
by using the keyframe's entropy context rather than the default.

Change-Id: Ia82cef79382b9d8cfafdc44ba0533d4dc3e44053
parent 26bd81b9
......@@ -286,6 +286,13 @@ void vp9_setup_key_frame(VP9_COMP *cpi) {
/* Choose which entropy context to use. When using a forward reference
* frame, it immediately follows the keyframe, and thus benefits from
* using the same entropy context established by the keyframe. Otherwise,
* use the default context 0.
cm->frame_context_idx = cpi->oxcf.play_alternate;
void vp9_setup_inter_frame(VP9_COMP *cpi) {
Supports Markdown
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