Lines Matching refs:best_mode
61 } BEST_MODE;
633 B_PREDICTION_MODE *best_mode,
691 *best_mode = mode;
698 b->bmi.as_mode = *best_mode;
733 B_PREDICTION_MODE best_mode = 0;
745 mb, mb->block + i, xd->block + i, &best_mode, bmode_costs,
753 mic->bmi[i].as_mode = best_mode;
1916 static void update_best_mode(BEST_MODE* best_mode, int this_rd,
1925 best_mode->yrd = RDCOST(x->rdmult, x->rddiv, (rd->rate2-rd->rate_uv-other_cost),
1928 best_mode->rd = this_rd;
1929 vpx_memcpy(&best_mode->mbmode, &x->e_mbd.mode_info_context->mbmi, sizeof(MB_MODE_INFO));
1930 vpx_memcpy(&best_mode->partition, x->partition_info, sizeof(PARTITION_INFO));
1937 best_mode->bmodes[i] = x->e_mbd.block[i].bmi;
1956 BEST_MODE best_mode;
1988 best_mode.rd = INT_MAX;
1989 best_mode.yrd = INT_MAX;
1990 best_mode.intra_rd = INT_MAX;
1992 vpx_memset(&best_mode.mbmode, 0, sizeof(best_mode.mbmode));
1993 vpx_memset(&best_mode.bmodes, 0, sizeof(best_mode.bmodes));
2031 if (best_mode.rd <= x->rd_threshes[mode_index])
2156 tmp_rd = rd_pick_intra4x4mby_modes(x, &rate, &rd.rate_y, &distortion, best_mode.yrd);
2160 if(tmp_rd < best_mode.yrd)
2187 best_mode.yrd, mdcounts,
2196 if (tmp_rd < best_mode.yrd)
2418 (this_rd < best_mode.intra_rd) )
2420 best_mode.intra_rd = this_rd;
2459 if (this_rd < best_mode.rd || x->skip)
2471 update_best_mode(&best_mode, this_rd, &rd, other_cost, x);
2522 x->best_sse_inter_mode = best_mode.mbmode.mode;
2523 x->best_sse_mv = best_mode.mbmode.mv;
2524 x->need_to_clamp_best_mvs = best_mode.mbmode.need_to_clamp_mvs;
2525 x->best_reference_frame = best_mode.mbmode.ref_frame;
2533 if (best_mode.mbmode.ref_frame == INTRA_FRAME &&
2558 if (this_rd < best_mode.rd || x->skip)
2564 update_best_mode(&best_mode, this_rd, &rd, other_cost, x);
2572 (best_mode.mbmode.mode != ZEROMV || best_mode.mbmode.ref_frame != ALTREF_FRAME))
2586 vpx_memcpy(&x->e_mbd.mode_info_context->mbmi, &best_mode.mbmode, sizeof(MB_MODE_INFO));
2588 if (best_mode.mbmode.mode == B_PRED)
2591 xd->mode_info_context->bmi[i].as_mode = best_mode.bmodes[i].as_mode;
2594 if (best_mode.mbmode.mode == SPLITMV)
2597 xd->mode_info_context->bmi[i].mv.as_int = best_mode.bmodes[i].mv.as_int;
2599 vpx_memcpy(x->partition_info, &best_mode.partition, sizeof(PARTITION_INFO));