Commit 8a8c50af authored by Jingning Han's avatar Jingning Han
Browse files

Reduce newmv context model dependency size

Make the newmv context model dependent only on the nearest spatial
neighbors reference motion vectors count and the newmv coded block
counts.

Change-Id: I8db9ca453c4fefddafba5f3476ee0d733f87dfc0
parent 56ad3dd3
......@@ -917,10 +917,10 @@ static void setup_ref_mv_list(const AV1_COMMON *cm, const MACROBLOCKD *xd,
max_col_offset, &processed_cols);
switch (nearest_refmv_count) {
case 0:
mode_context[ref_frame] |= 0;
case 0: mode_context[ref_frame] |= 0;
#if !CONFIG_OPT_REF_MV
if (*refmv_count >= 1) mode_context[ref_frame] |= 1;
#endif
if (*refmv_count == 1)
mode_context[ref_frame] |= (1 << REFMV_OFFSET);
else if (*refmv_count >= 2)
......
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