From be3d4bca421c486f4cd99e71050496b3f9989850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 7 Sep 2026 07:55:17 +0300 Subject: [PATCH] test(av1): re-pin the encoder's own streams for the 64x64 root 8076 -> 7291 bytes at q=150 and 27585 -> 27466 at q=60 over the four-frame pin clip. The native gate keeps the lever: every row improves on both columns (film A +44.2/+15.7 -> +43.0/+15.0, film B +70.5/+35.2 -> +64.7/+34.0, screen +48.2/-16.4 -> +33.4/-23.8, bars 2160p +20.7/-3.8 -> +13.3/-9.9). EC_AV1_B64=0 restores the old pins byte for byte. --- crates/ec-av1/src/encode.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index 588a35a3..ec187f2c 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -13348,8 +13348,14 @@ mod tests { // the blocks that take one code a filter-intra mode, a different // prediction and different coefficients -- 7321 -> 7373 at q=150 and // 27285 -> 27074 at q=60. `EC_AV1_FILTER_INTRA=0` restores these. + // Re-taken on lane-b64: the inter search offers the whole superblock + // as one 64x64 `PARTITION_NONE` block coded skip ([`B64_ROOT`]), and + // every superblock that takes one codes a single partition symbol, + // one mode/mv chain and no residual where four quadrants used to -- + // 8076 -> 7291 at q=150 and 27585 -> 27466 at q=60. `EC_AV1_B64=0` + // restores these. let pins: [(u8, usize, u64); 2] = - [(150, 8076, 0x8171_4818_e223_ab21), (60, 27585, 0xdbe7_eecd_6d64_c4f5)]; + [(150, 7291, 0xa411_97e8_8a80_2a1b), (60, 27466, 0xdc87_26a3_c625_46ce)]; for (q, bytes, hash) in pins { let encoded = encode_sequence(&source, q, 0.5).unwrap(); assert_eq!(