Redirect the 854x480 pad desync hunt from CDF desync to Reach
Browse files at this commitf1da65782995e2a567500435d1c6bc2e0121ae10Parent: 77b8ab9- docs
- redirect the 854x480 pad desync hunt from CDF desync to Reach
1 changed file +33 -10
- crates/ec-av1/src/encode.rs +33 -10
crates/ec-av1/src/encode.rsmodified+33 -10
| @@ -2161,17 +2161,40 @@ mod tests { | |||
| 2161 | /// Reproduces an open defect this lane's sweep found: 854x480 (padded to | 2161 | /// Reproduces an open defect this lane's sweep found: 854x480 (padded to |
| 2162 | /// 864x480, an *edge-replication* padded key frame -- not a preexisting | 2162 | /// 864x480, an *edge-replication* padded key frame -- not a preexisting |
| 2163 | /// bug, since 864x480 coded directly with no padding involved is | 2163 | /// bug, since 864x480 coded directly with no padding involved is |
| 2164 | - /// bit-exact) desyncs against ffmpeg's decode starting at luma (row 161, | 2164 | + /// bit-exact) diverges from ffmpeg's decode starting at luma (row 161, |
| 2165 | /// col 369), well inside the real (non-padded) region, not at the | 2165 | /// col 369), well inside the real (non-padded) region, not at the |
| 2166 | - /// padding edge. 640x352, 1280x720, 854x480's own height (480, already | 2166 | + /// padding edge. |
| 2167 | - /// 32-aligned) and 1920x1080 all round-trip clean, and the padding/crop | 2167 | + /// |
| 2168 | - /// plumbing itself is exercised bit-exact by | 2168 | + /// NOT an arithmetic-coder desync: an EC_RNG-per-symbol trace against a |
| 2169 | - /// `a_frame_round_trips_at_its_own_size` and the 64x64-superblock | 2169 | + /// debug libaom decoder (od_ec_decode_cdf_q15/od_ec_decode_bool_q15 |
| 2170 | - /// sequence case, so this looks like a content-triggered desync inside | 2170 | + /// instrumented) showed the encoder's and the decoder's rng_before/ |
| 2171 | - /// the coefficient/intra coding this lane was told not to touch | 2171 | + /// rng_after/nsyms/symbol sequences are byte-for-byte identical across |
| 2172 | - /// (`tile.rs`), not a padding-wiring bug. Left `#[ignore]`d rather than | 2172 | + /// all 51188 symbols of this frame -- the bitstream itself decodes |
| 2173 | - /// silently dropped from the charter's size list -- next lane should | 2173 | + /// exactly as written. The divergence is a reconstruction/prediction |
| 2174 | - /// start from the row/col this test prints. | 2174 | + /// mismatch: our own `Encoded::reconstruction` reports 147 at (161,369) |
| 2175 | + /// where both a debug `aomdec` decode of our own bitstream and ffmpeg | ||
| 2176 | + /// agree on 148, an exact off-by-one that then cascades rightward | ||
| 2177 | + /// (diff dump: every mismatch in the frame is `ours == ffmpeg - 1`, | ||
| 2178 | + /// starting at (161,369) and spreading through the rest of that 16x16/ | ||
| 2179 | + /// 32x32 block and everything predicted from it). That points at | ||
| 2180 | + /// `encode.rs`'s `Reach::of`/`Reach::top_right`/`Reach::bottom_left` | ||
| 2181 | + /// (the `HAS_TOP_RIGHT`/`HAS_BOTTOM_LEFT` pinned tables used only to | ||
| 2182 | + /// decide how far a directional intra predictor may read past a block's | ||
| 2183 | + /// own edges) computing a different above-right/below-left availability | ||
| 2184 | + /// than the real decoder does for this specific block position, so our | ||
| 2185 | + /// own search-time prediction differs from the decoder's by one preset | ||
| 2186 | + /// intensity step -- not the partition/column-edge superblock code this | ||
| 2187 | + /// lane suspected first (`sb_coeff_key_frame_tile`'s `(has_cols, | ||
| 2188 | + /// has_rows)` match at tile.rs:783-795 is exercised correctly by this | ||
| 2189 | + /// same test: the rng trace over that exact superblock matches | ||
| 2190 | + /// libaom's). 640x352, 1280x720, 854x480's own height (480, already | ||
| 2191 | + /// 32-aligned), 1920x1080 and 864x480 coded directly all round-trip | ||
| 2192 | + /// clean, so this needs a specific directional-mode block position | ||
| 2193 | + /// (content-dependent) to fire. Left `#[ignore]`d -- next lane should | ||
| 2194 | + /// start from `Reach::top_right`/`bottom_left` in `encode.rs` against | ||
| 2195 | + /// libaom's `has_tr_16x16`/`has_tr_32x32`/`has_bl_*` source tables, | ||
| 2196 | + /// checked at the exact position `Reach::position` computes for the | ||
| 2197 | + /// block covering (row 160ish, col 368ish) in this test's superblock. | ||
| 2175 | #[test] | 2198 | #[test] |
| 2176 | #[ignore = "open defect: content-dependent desync at 854x480 padded, not padding wiring -- see doc comment"] | 2199 | #[ignore = "open defect: content-dependent desync at 854x480 padded, not padding wiring -- see doc comment"] |
| 2177 | fn open_defect_854x480_padded_key_frame_desyncs() { | 2200 | fn open_defect_854x480_padded_key_frame_desyncs() { |