forge
Explore
Log in

Don't you dare go Hollow

Repin the encoder streams and widen the own-decoder fixture for the leaf second-reference search

Browse files at this commit

f2d15421c6a2f56e1a6970843591967635b7e7ddAhmet Kaan GümüşParent: e83e29a
  • test
    • repin the encoder streams and widen the own-decoder fixture for the leaf second-reference search
Show full message
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.rsmodified+8 -2
@@ -8690,7 +8690,13 @@ mod tests {
8690 #[test]8690 #[test]
8691 fn every_frame_of_a_sequence_decodes_through_our_own_decoder() {8691 fn every_frame_of_a_sequence_decodes_through_our_own_decoder() {
8692 let fctx = &crate::decode::FrameCtx::new();8692 let fctx = &crate::decode::FrameCtx::new();
8693- let (width, height) = (128usize, 64usize);8693+ // 256x128, not the 128x64 this started at: once a leaf could search
8694+ // its second reference (lane-av1comp4) the small card's every
8695+ // eligible block went to a compound winner, which commits its flat
8696+ // transform, and the split below stopped firing on content that
8697+ // still splits at every larger size ([[gate-blind-to-feature]] --
8698+ // the guard is right, the fixture had shrunk under it).
8699+ let (width, height) = (256usize, 128usize);
8694 let pictures: Vec<Picture> =8700 let pictures: Vec<Picture> =
8695 (0..5).map(|i| panned_test_card(width, height, i * 3)).collect();8701 (0..5).map(|i| panned_test_card(width, height, i * 3)).collect();
8696 let _ = take_inter_tx_split_hits();8702 let _ = take_inter_tx_split_hits();
@@ -9707,7 +9713,7 @@ mod tests {
9707 })9713 })
9708 };9714 };
9709 let pins: [(u8, usize, u64); 2] =9715 let pins: [(u8, usize, u64); 2] =
9710- [(150, 7084, 0xe6a9_2f62_3855_0eee), (60, 26116, 0xa831_9866_b799_80fc)];9716+ [(150, 7084, 0x00bc_da74_e540_28d7), (60, 25905, 0x1623_f794_727e_0716)];
9711 for (q, bytes, hash) in pins {9717 for (q, bytes, hash) in pins {
9712 let encoded = encode_sequence(&source, q, 0.5).unwrap();9718 let encoded = encode_sequence(&source, q, 0.5).unwrap();
9713 assert_eq!(9719 assert_eq!(