edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiBdfeffbcTahinli2 months ago3180 commits
| 1 | //! [scratch] Inter-frame syntax dump + count gate. |
| 2 | //! |
| 3 | //! Parses every frame of `INTER_IVF` (default `/tmp/inter1.ivf`, the clean |
| 4 | //! single-tile stream the pinned counts refer to). Keyframes decode as usual; |
| 5 | //! inter frames are parsed syntax-only (no reconstruction). With |
| 6 | //! `EC_VP9_INTERDUMP=1` every block prints one `MODE` line in the oracle's |
| 7 | //! shape, for a by-index diff. Point it at the two-tile-column stream |
| 8 | //! (`INTER_IVF=/tmp/inter.ivf INTER_EXPECT=none`) to exercise the failing- |
| 9 | //! keyframe path: that stream's keyframe desyncs its tile reader and the test |
| 10 | //! is expected to fail there. |
| 11 | //! |
| 12 | //! This is a real gate, not a printer: |
| 13 | //! - any frame error fails the test (keyframe failures are propagated too, |
| 14 | //! because a half-updated frame context would make later dumps meaningless); |
| 15 | //! - every inter frame's mode-info block count must equal `INTER_EXPECT` |
| 16 | //! (default `1213,1851` - the pinned counts of the single-tile fixture |
| 17 | //! `/tmp/inter1.ivf`, sha256 376532734662ba5faba4c4e97a5aac915ce429c11701bcf6 |
| 18 | //! 6439b61a77388fa8; set `INTER_EXPECT=none` for a different stream); |
| 19 | //! - the crate already asserts `overreads() == 0` per tile reader at the end of |
| 20 | //! each tile (decode.rs, "tile bool decoder desync"), which is what would fire |
| 21 | //! if the walk read past the tile's last bool. |
| 22 | //! |
| 23 | //! ```text |
| 24 | //! INTER_IVF=<file> EC_VP9_INTERDUMP=1 \ |
| 25 | //! cargo test -p ec-vp9 --test scratch_interdump -- --nocapture |
| 26 | //! ``` |
| 27 | |
| 28 | |
| 29 | use Decoder; |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 |