Commit 6da42301 authored by Yaowu Xu's avatar Yaowu Xu Committed by Cheng Chen
Browse files

Add ALT_MIN_LAG

This is the minimum lag-in-frames to allow auto_alt_ref.

BuG=aomedia:648

Change-Id: Idb5eb839463e8257de1cce9c8d6590409d0cc60c
parent 855f0fc7
......@@ -766,8 +766,9 @@ void av1_set_temporal_mv_prediction(AV1_COMP *cpi, int allow_tempmv_prediction);
void av1_apply_encoding_flags(AV1_COMP *cpi, aom_enc_frame_flags_t flags);
#define ALT_MIN_LAG 3
static INLINE int is_altref_enabled(const AV1_COMP *const cpi) {
return cpi->oxcf.lag_in_frames > 0 && cpi->oxcf.enable_auto_arf;
return cpi->oxcf.lag_in_frames >= ALT_MIN_LAG && cpi->oxcf.enable_auto_arf;
}
// TODO(zoeliu): To set up cpi->oxcf.enable_auto_brf
......
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