| Index: source/libvpx/vp8/encoder/onyx_if.c
|
| ===================================================================
|
| --- source/libvpx/vp8/encoder/onyx_if.c (revision 60257)
|
| +++ source/libvpx/vp8/encoder/onyx_if.c (working copy)
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
|
| + * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
| *
|
| * Use of this source code is governed by a BSD-style license
|
| * that can be found in the LICENSE file in the root of the source
|
| @@ -1344,8 +1344,8 @@
|
| cpi->max_gf_interval = 12;
|
|
|
|
|
| - // Special conditions when altr ref frame enabled
|
| - if (cpi->oxcf.play_alternate)
|
| + // Special conditions when altr ref frame enabled in lagged compress mode
|
| + if (cpi->oxcf.play_alternate && cpi->oxcf.lag_in_frames)
|
| {
|
| if (cpi->max_gf_interval > cpi->oxcf.lag_in_frames - 1)
|
| cpi->max_gf_interval = cpi->oxcf.lag_in_frames - 1;
|
| @@ -1652,13 +1652,6 @@
|
| else if (cpi->oxcf.lag_in_frames > MAX_LAG_BUFFERS)
|
| cpi->oxcf.lag_in_frames = MAX_LAG_BUFFERS;
|
|
|
| - // force play_alternate to 0 if allow_lag is 0, lag_in_frames is too small, Mode is real time or one pass compress enabled.
|
| - if (cpi->oxcf.allow_lag == 0 || cpi->oxcf.lag_in_frames <= 5 || (cpi->oxcf.Mode < MODE_SECONDPASS))
|
| - {
|
| - cpi->oxcf.play_alternate = 0;
|
| - cpi->ref_frame_flags = cpi->ref_frame_flags & ~VP8_ALT_FLAG;
|
| - }
|
| -
|
| // YX Temp
|
| cpi->last_alt_ref_sei = -1;
|
| cpi->is_src_frame_alt_ref = 0;
|
| @@ -1937,13 +1930,6 @@
|
| else if (cpi->oxcf.lag_in_frames > MAX_LAG_BUFFERS)
|
| cpi->oxcf.lag_in_frames = MAX_LAG_BUFFERS;
|
|
|
| - // force play_alternate to 0 if allow_lag is 0, lag_in_frames is too small, Mode is real time or one pass compress enabled.
|
| - if (cpi->oxcf.allow_lag == 0 || cpi->oxcf.lag_in_frames <= 5 || (cpi->oxcf.Mode < MODE_SECONDPASS))
|
| - {
|
| - cpi->oxcf.play_alternate = 0;
|
| - cpi->ref_frame_flags = cpi->ref_frame_flags & ~VP8_ALT_FLAG;
|
| - }
|
| -
|
| // YX Temp
|
| cpi->last_alt_ref_sei = -1;
|
| cpi->is_src_frame_alt_ref = 0;
|
| @@ -5223,8 +5209,6 @@
|
| {
|
|
|
| // return to normal state
|
| - cpi->ref_frame_flags = VP8_ALT_FLAG | VP8_GOLD_FLAG | VP8_LAST_FLAG;
|
| -
|
| cm->refresh_entropy_probs = 1;
|
| cm->refresh_alt_ref_frame = 0;
|
| cm->refresh_golden_frame = 0;
|
|
|