forge
Explore
Log in

Don't you dare go Hollow

Re-take the encoder's own stream pins at 8381 / 33016

Browse files at this commit

4e28683581d1fdeb22c624627a7b1bdc2d61b460Ahmet Kaan GümüşParent: b6c0331
  • test
    • re-take the encoder's own stream pins at 8381 / 33016
Show full message
test(av1): re-take the encoder's own stream pins at 8381 / 33016

Same reason as the fix itself: every intra block's tx_depth symbol is now
priced at the writer's context row on both frame types, so the
depth-versus-split margins moved. Green at the default preset and at
EC_AV1_SPEED=6.
crates/ec-av1/src/encode.rsmodified+7 -6
@@ -16299,13 +16299,14 @@ mod tests {
1629916299 // pays the `comp_mode = 0` symbol the writer codes ahead of it, so
1630016300 // single and compound are priced against the same syntax -- 8311 ->
1630116301 // 8325 bytes at q=150 and 33087 -> 33014 at q=60. Re-taken again in
16302- // the same lane: a key frame's `tx_depth` symbol is priced off the
16303- // row the writer codes it against (the transform sides its above/left
16304- // neighbours published) instead of row 0, so every intra block's
16305- // depth-versus-split margin moved -- 8325 bytes at q=150 (the same
16306- // size, different depths) and 33014 at q=60, both hashes new.
16302+ // Re-taken on lane-txd: the `tx_depth` symbol is priced at the
16303+ // writer's own row on BOTH frame types (a key frame off the deblock
16304+ // grid, an inter frame's intra block off the TXFM_CONTEXT bands the
16305+ // encoder now publishes), so every intra block's depth-versus-split
16306+ // margin moved -- 8325 -> 8381 bytes at q=150 and 33014 -> 33016 at
16307+ // q=60.
1630716308 let pins: [(u8, usize, u64); 2] =
16308- [(150, 8325, 0x774a_4716_1cc1_b0ed), (60, 33014, 0xa19b_4fa6_cde1_1180)];
16309+ [(150, 8381, 0x36ac_5783_4a20_499a), (60, 33016, 0xfcd0_be7a_3600_34ce)];
1630916310 let coded: Vec<(u8, usize, u64)> = pins
1631016311 .iter()
1631116312 .map(|&(q, _, _)| {