Gm r2 -- add NO_GM_MV to mvstack's own compound test call sites
Browse files at this commitaad87a155d2bfb0f6ae709531481b87cf17058deParent: 9018cff- test
- gm r2 -- add NO_GM_MV to mvstack's own compound test call sites
1 changed file +4 -4
crates/ec-av1/src/mvstack.rsmodified+4 -4
| @@ -2615,7 +2615,7 @@ mod tests { | |||
| 2615 | let (mv0, mv1) = ((2, 2), (-6, 3)); | 2615 | let (mv0, mv1) = ((2, 2), (-6, 3)); |
| 2616 | grid.set(2, 1, comp_inter(mv0, mv1)); | 2616 | grid.set(2, 1, comp_inter(mv0, mv1)); |
| 2617 | 2617 | ||
| 2618 | - let stack = find_mv_stack_compound(&grid, 2, 2, 2, 2, COMP_PAIR, 8, 8, &NO_SIGN_BIAS, None); | 2618 | + let stack = find_mv_stack_compound(&grid, 2, 2, 2, 2, COMP_PAIR, 8, 8, &NO_SIGN_BIAS, &NO_GM_MV, None); |
| 2619 | 2619 | ||
| 2620 | // The exact-pair immediate scan lands one boosted entry; the | 2620 | // The exact-pair immediate scan lands one boosted entry; the |
| 2621 | // compound extension pass (short stack, len < MAX_MV_REF_CANDIDATES) | 2621 | // compound extension pass (short stack, len < MAX_MV_REF_CANDIDATES) |
| @@ -2639,7 +2639,7 @@ mod tests { | |||
| 2639 | grid.set(2, 1, comp_inter(mv0, mv1)); | 2639 | grid.set(2, 1, comp_inter(mv0, mv1)); |
| 2640 | grid.set(3, 1, comp_inter(mv0, mv1)); | 2640 | grid.set(3, 1, comp_inter(mv0, mv1)); |
| 2641 | 2641 | ||
| 2642 | - let stack = find_mv_stack_compound(&grid, 2, 2, 2, 2, COMP_PAIR, 8, 8, &NO_SIGN_BIAS, None); | 2642 | + let stack = find_mv_stack_compound(&grid, 2, 2, 2, 2, COMP_PAIR, 8, 8, &NO_SIGN_BIAS, &NO_GM_MV, None); |
| 2643 | 2643 | ||
| 2644 | // Exact libaom `is_dup` port: with exactly one entry already in the | 2644 | // Exact libaom `is_dup` port: with exactly one entry already in the |
| 2645 | // stack (the four identical-pair neighbours deduped by the | 2645 | // stack (the four identical-pair neighbours deduped by the |
| @@ -2671,7 +2671,7 @@ mod tests { | |||
| 2671 | grid.set(4, 2, comp_inter(left.0, left.1)); | 2671 | grid.set(4, 2, comp_inter(left.0, left.1)); |
| 2672 | grid.set(5, 2, comp_inter(left.0, left.1)); | 2672 | grid.set(5, 2, comp_inter(left.0, left.1)); |
| 2673 | 2673 | ||
| 2674 | - let stack = find_mv_stack_compound(&grid, 3, 3, 2, 3, COMP_PAIR, 8, 8, &NO_SIGN_BIAS, None); | 2674 | + let stack = find_mv_stack_compound(&grid, 3, 3, 2, 3, COMP_PAIR, 8, 8, &NO_SIGN_BIAS, &NO_GM_MV, None); |
| 2675 | 2675 | ||
| 2676 | assert_eq!(stack.entries.len(), 2); | 2676 | assert_eq!(stack.entries.len(), 2); |
| 2677 | assert_eq!(stack.entries[0].mv0, left.0); | 2677 | assert_eq!(stack.entries[0].mv0, left.0); |
| @@ -2760,7 +2760,7 @@ mod tests { | |||
| 2760 | }, | 2760 | }, |
| 2761 | ); | 2761 | ); |
| 2762 | 2762 | ||
| 2763 | - let stack = find_mv_stack_compound(&grid, 2, 2, 2, 2, COMP_PAIR, 8, 8, &NO_SIGN_BIAS, None); | 2763 | + let stack = find_mv_stack_compound(&grid, 2, 2, 2, 2, COMP_PAIR, 8, 8, &NO_SIGN_BIAS, &NO_GM_MV, None); |
| 2764 | 2764 | ||
| 2765 | // The combine step (libaom's real "Handle compound reference frame | 2765 | // The combine step (libaom's real "Handle compound reference frame |
| 2766 | // extension") zips each side's ref_id-then-ref_diff lists | 2766 | // extension") zips each side's ref_id-then-ref_diff lists |