forge
Explore
Log in

Don't you dare go Hollow

Re-take the byte pins on the pyramid default with CfL and angle deltas in

Browse files at this commit

9a6b2f7da765d9ab5563aa12bbba55cc2cdbe6dcAhmet Kaan GümüşParent: 12e6ab7
  • test
    • re-take the byte pins on the pyramid default with CfL and angle deltas in
Show full message
test(av1): re-take the byte pins on the pyramid default with CfL and angle deltas in
crates/ec-av1/src/encode.rsmodified+6 -1
@@ -12835,8 +12835,13 @@ mod tests {
12835 // four frames; four pictures is one short mini-GOP, which is the12835 // four frames; four pictures is one short mini-GOP, which is the
12836 // shape that pays least (the ARF's own quality has no later group to12836 // shape that pays least (the ARF's own quality has no later group to
12837 // carry it), so this is not the BD gate's number.12837 // carry it), so this is not the BD gate's number.
12838+ // Re-taken again on lane-av1cfl: the chroma search offers
12839+ // `UV_CFL_PRED` and directional luma winners search `angle_delta_y`,
12840+ // so every block taking either codes different syntax and different
12841+ // coefficients -- 8194 -> 7321 at q=150 and 28285 -> 27285 at q=60.
12842+ // `EC_AV1_CFL=0` / `EC_AV1_ANGLE=0` restore each half.
12838 let pins: [(u8, usize, u64); 2] =12843 let pins: [(u8, usize, u64); 2] =
12839- [(150, 8194, 0x08ba_a7a8_26f6_f414), (60, 28285, 0x64af_fc52_eef6_2967)];12844+ [(150, 7321, 0x34e2_e4e0_d7c5_09f3), (60, 27285, 0xbfd2_41af_dcac_a0c6)];
12840 for (q, bytes, hash) in pins {12845 for (q, bytes, hash) in pins {
12841 let encoded = encode_sequence(&source, q, 0.5).unwrap();12846 let encoded = encode_sequence(&source, q, 0.5).unwrap();
12842 assert_eq!(12847 assert_eq!(