From f2d15421c6a2f56e1a6970843591967635b7e7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 6 Sep 2026 13:42:11 +0300 Subject: [PATCH] test(av1): repin the encoder streams and widen the own-decoder fixture for the leaf second-reference search q=150 keeps its 7084 bytes with a moved hash; q=60 falls 26116 -> 25905. The own-decoder round trip moves to 256x128: at 128x64 every var-tx-eligible block now goes to a compound winner (which commits its flat transform), so the split-fired guard had nothing left to see. --- crates/ec-av1/src/encode.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index b8ac34df..26e9fb8a 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -8690,7 +8690,13 @@ mod tests { #[test] fn every_frame_of_a_sequence_decodes_through_our_own_decoder() { let fctx = &crate::decode::FrameCtx::new(); - let (width, height) = (128usize, 64usize); + // 256x128, not the 128x64 this started at: once a leaf could search + // its second reference (lane-av1comp4) the small card's every + // eligible block went to a compound winner, which commits its flat + // transform, and the split below stopped firing on content that + // still splits at every larger size ([[gate-blind-to-feature]] -- + // the guard is right, the fixture had shrunk under it). + let (width, height) = (256usize, 128usize); let pictures: Vec = (0..5).map(|i| panned_test_card(width, height, i * 3)).collect(); let _ = take_inter_tx_split_hits(); @@ -9707,7 +9713,7 @@ mod tests { }) }; let pins: [(u8, usize, u64); 2] = - [(150, 7084, 0xe6a9_2f62_3855_0eee), (60, 26116, 0xa831_9866_b799_80fc)]; + [(150, 7084, 0x00bc_da74_e540_28d7), (60, 25905, 0x1623_f794_727e_0716)]; for (q, bytes, hash) in pins { let encoded = encode_sequence(&source, q, 0.5).unwrap(); assert_eq!(