ref: 72e22b0bb8d66c37d57bccb95c9c43660e080745
parent: b082790c7d1e16dde329f1baea153c0fe86112d5
author: Paul Wilkins <paulwilkins@google.com>
date: Fri Jan 14 07:07:12 EST 2011
Experimental change to help with ARNR problem. Allow use of other reference frames for the ARF overlay frame when ARNR filtering is enabled Change-Id: Icd6a9fb38977a88fbe7cc9b9c18198eb454c0273
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -1849,7 +1849,10 @@
x->e_mbd.mode_info_context->mbmi.uv_mode = DC_PRED;
x->e_mbd.mode_info_context->mbmi.ref_frame = vp8_ref_frame_order[mode_index];
- //Only consider ZEROMV/ALTREF_FRAME for alt ref frame.
+ // Only consider ZEROMV/ALTREF_FRAME for alt ref frame,
+ // unless ARNR filtering is enabled in which case we want
+ // an unfiltered alternative
+ //if (cpi->is_src_frame_alt_ref && (cpi->oxcf.arnr_max_frames > 0))
if (cpi->is_src_frame_alt_ref)
{
if (this_mode != ZEROMV || x->e_mbd.mode_info_context->mbmi.ref_frame != ALTREF_FRAME)