Commit 17dc4c7f authored by Jingning Han's avatar Jingning Han

Simplify mi_row/col rounding in av1_copy_frame_mvs

The right shift covers the bit mask rounding operation.

Change-Id: I9bc994c03bc96bc5d76281eba00d716408ffefa7
parent 15b6ae01
......@@ -22,9 +22,8 @@ void av1_copy_frame_mvs(const AV1_COMMON *const cm, MODE_INFO *mi, int mi_row,
int mi_col, int x_mis, int y_mis) {
#if CONFIG_TMV
const int frame_mvs_stride = ROUND_POWER_OF_TWO(cm->mi_cols, 1);
MV_REF *frame_mvs = cm->cur_frame->mvs +
((mi_row & 0xfffe) >> 1) * frame_mvs_stride +
((mi_col & 0xfffe) >> 1);
MV_REF *frame_mvs =
cm->cur_frame->mvs + (mi_row >> 1) * frame_mvs_stride + (mi_col >> 1);
x_mis = ROUND_POWER_OF_TWO(x_mis, 1);
y_mis = ROUND_POWER_OF_TWO(y_mis, 1);
#else
......
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