forge
Explore
Log in

Don't you dare go Hollow

Re-pin the encoder's own streams for the 64x64 root

Browse files at this commit

be3d4bca421c486f4cd99e71050496b3f9989850Ahmet Kaan GümüşParent: 5bcc6a5
  • test
    • re-pin the encoder's own streams for the 64x64 root
Show full message
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.rsmodified+7 -1
@@ -13348,8 +13348,14 @@ mod tests {
13348 // the blocks that take one code a filter-intra mode, a different13348 // the blocks that take one code a filter-intra mode, a different
13349 // prediction and different coefficients -- 7321 -> 7373 at q=150 and13349 // prediction and different coefficients -- 7321 -> 7373 at q=150 and
13350 // 27285 -> 27074 at q=60. `EC_AV1_FILTER_INTRA=0` restores these.13350 // 27285 -> 27074 at q=60. `EC_AV1_FILTER_INTRA=0` restores these.
13351+ // Re-taken on lane-b64: the inter search offers the whole superblock
13352+ // as one 64x64 `PARTITION_NONE` block coded skip ([`B64_ROOT`]), and
13353+ // every superblock that takes one codes a single partition symbol,
13354+ // one mode/mv chain and no residual where four quadrants used to --
13355+ // 8076 -> 7291 at q=150 and 27585 -> 27466 at q=60. `EC_AV1_B64=0`
13356+ // restores these.
13351 let pins: [(u8, usize, u64); 2] =13357 let pins: [(u8, usize, u64); 2] =
13352- [(150, 8076, 0x8171_4818_e223_ab21), (60, 27585, 0xdbe7_eecd_6d64_c4f5)];13358+ [(150, 7291, 0xa411_97e8_8a80_2a1b), (60, 27466, 0xdc87_26a3_c625_46ce)];
13353 for (q, bytes, hash) in pins {13359 for (q, bytes, hash) in pins {
13354 let encoded = encode_sequence(&source, q, 0.5).unwrap();13360 let encoded = encode_sequence(&source, q, 0.5).unwrap();
13355 assert_eq!(13361 assert_eq!(