Record the odd-size straddling-block V desync at the pricer's context site
Browse files at this commit1058fbba2ceb6f8ca5602b972be8816e3635296dParent: 088a162- docs
- record the odd-size straddling-block V desync at the pricer's context site
1 changed file +16 -0
- crates/ec-av1/src/encode.rs +16 -0
crates/ec-av1/src/encode.rsmodified+16 -0
| @@ -1662,6 +1662,22 @@ impl Plane<'_> { | |||
| 1662 | /// | 1662 | /// |
| 1663 | /// A neighbour outside this plane's own TILE does not exist, exactly as | 1663 | /// A neighbour outside this plane's own TILE does not exist, exactly as |
| 1664 | /// the writer's per-tile `Neighbours` bands start blank. | 1664 | /// the writer's per-tile `Neighbours` bands start blank. |
| 1665 | + /// | ||
| 1666 | + /// OPEN (lane-av1skipctx): the decisions this price changes make | ||
| 1667 | + /// `decode_stream_round_trips_an_odd_size_gop` and | ||
| 1668 | + /// `an_odd_size_gop_round_trips_bit_exact_against_the_encoder_reconstruction` | ||
| 1669 | + /// fail at 216x96, frame 0, V plane only -- the last, right-edge- | ||
| 1670 | + /// STRADDLING 32x32 at luma (192, 64), whose writer trace says both | ||
| 1671 | + /// chroma planes code nothing (`EC_RNG`: plane=1 skip_ctx=1, plane=2 | ||
| 1672 | + /// skip_ctx=0, both `eob0=1`) while the decoder reconstructs a different | ||
| 1673 | + /// V; the differing samples are exactly that block plus its deblock halo | ||
| 1674 | + /// (chroma rows 29-47, cols 92-107). It is NOT this map: with `coef_ctx` | ||
| 1675 | + /// ablated no `EC_AV1_PRUNE_K` in 1..=6 and no `EC_AV1_ESTIMATE=1` | ||
| 1676 | + /// reproduces it, and a pricer writes no symbol -- it is a pre-existing | ||
| 1677 | + /// writer/decoder desync in the straddling last block (class: | ||
| 1678 | + /// last-block desync reads as reconstruction) that only a decision | ||
| 1679 | + /// change reaches. Needs a decoder-side `txb_skip` context trace aligned | ||
| 1680 | + /// to the writer's `EC_RNG` one to close. | ||
| 1665 | fn coef_ctx(&self, x: usize, y: usize, side: usize, set: TxbSet) -> (usize, usize) { | 1681 | fn coef_ctx(&self, x: usize, y: usize, side: usize, set: TxbSet) -> (usize, usize) { |
| 1666 | if self.ctx.cells.is_empty() { | 1682 | if self.ctx.cells.is_empty() { |
| 1667 | return (0, 0); | 1683 | return (0, 0); |