Change-Id: Id93565cca41e00d4ab5de4c6de30accabf2adc52
#if CONFIG_NON_GREEDY_MV
// lambda is used to adjust the importance of motion vector consitency.
// TODO(angiebird): Figure out lambda's proper value.
- double lambda = 10000;
+ double lambda = cpi->tpl_stats[frame_idx].lambda;
int_mv nb_full_mvs[NB_MVS_NUM];
#endif
vp9_frame_init_quantizer(cpi);
#if CONFIG_NON_GREEDY_MV
+ tpl_frame->lambda = 250;
for (rf_idx = 0; rf_idx < 3; ++rf_idx) {
tpl_frame->mv_dist_sum[rf_idx] = 0;
tpl_frame->mv_cost_sum[rf_idx] = 0;
int mi_cols;
int base_qindex;
#if CONFIG_NON_GREEDY_MV
+ double lambda;
double mv_dist_sum[3];
double mv_cost_sum[3];
#endif