Commit 4ccfc7d5 authored by Jingning Han's avatar Jingning Han
Browse files

Save an extra call for setup_pred_plane function

Reuse the yv12_mb array to fetch the buffer pointers/strides
corresponding to the current reference frame.

Change-Id: I5276b7494158b2cccef15213be2dc189e9036851
parent 0c6d3a03
......@@ -723,10 +723,8 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
// Select prediction reference frames.
xd->plane[0].pre[0] = yv12_mb[ref_frame][0];
vp9_setup_pre_planes(xd, 0, get_ref_frame_buffer(cpi, ref_frame),
mi_row, mi_col, &cm->frame_refs[ref_frame - 1].sf);
for (i = 0; i < MAX_MB_PLANE; i++)
xd->plane[i].pre[0] = yv12_mb[ref_frame][i];
clamp_mv2(&frame_mv[NEARESTMV][ref_frame].as_mv, xd);
clamp_mv2(&frame_mv[NEARMV][ref_frame].as_mv, xd);
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