forge
Explore
Log in

Don't you dare go Hollow

Mvstack unit test asserts entries are clamped (was pinning the pre-fix behaviour)

Browse files at this commit

578beeec99a874f4d0cb97d3ab94839eaab3b048Ahmet Kaan GümüşParent: e19a868
  • test
    • mvstack unit test asserts entries are clamped (was pinning the pre-fix behaviour)
Show full message
test(av1): mvstack unit test asserts entries are clamped (was pinning the pre-fix behaviour)
crates/ec-av1/src/mvstack.rsmodified+4 -1
@@ -2107,7 +2107,10 @@ mod tests {
2107 // span plus MV_BORDER (128), all in 1/8-pel: (2*4)*8 + 1*4*8 + 128 =2107 // span plus MV_BORDER (128), all in 1/8-pel: (2*4)*8 + 1*4*8 + 128 =
2108 // 64 + 32 + 128 = 224.2108 // 64 + 32 + 128 = 224.
2109 assert_eq!(stack.nearest_mv, (224, 224));2109 assert_eq!(stack.nearest_mv, (224, 224));
2110- assert_ne!(stack.entries[0].mv, stack.nearest_mv);2110+ // libaom `av1_find_mv_refs` clamps every stack ENTRY too -- the DRL
2111+ // reads entries directly, so a raw candidate must not survive
2112+ // (pinned warp-flake-5.obu regression).
2113+ assert_eq!(stack.entries[0].mv, (224, 224));
2111 }2114 }
2112 2115
2113 #[test]2116 #[test]