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
This commit is contained in:
Jingning Han 2015-02-03 15:56:36 -08:00
parent 0c6d3a03e1
commit 4ccfc7d517

View File

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