edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiBb07f07aTahinli3 months ago1061 commits
| 1 | //! A guard over the real-aomenc gates' own encoder recipes. |
| 2 | //! |
| 3 | //! Every gate in [`crate::stream`] that runs a real `aomenc` picks its coding |
| 4 | //! tools with `--enable-*=0/1` flags, and a flag left off the command line |
| 5 | //! takes aomenc's default (on, for the tools this decoder cares about). That |
| 6 | //! makes it possible -- and it happened -- for a coding tool to be switched |
| 7 | //! *off in every single gate*, so that no real stream in this repository ever |
| 8 | //! exercised it and a corner-cut in the decoder survived twenty gates |
| 9 | //! unnoticed: `reconstruct`'s `smooth_neighbor` was hardcoded `false`, wrong |
| 10 | //! whenever a directional block neighbours a smooth-mode one, and invisible |
| 11 | //! because all twenty gates passed `--enable-smooth-intra=0` |
| 12 | //! (lane-chroma r1, 2026-08-30). |
| 13 | //! |
| 14 | //! The test below re-derives that set from the gate source and pins it. A tool |
| 15 | //! that is switched off in every gate and on in none is *provably never |
| 16 | //! exercised* by a real stream, and belongs on [`NEVER_EXERCISED`] with a |
| 17 | //! reason. Landing the decode support for one means enabling it in that |
| 18 | //! feature's gate, which shrinks the derived set and fails this test until the |
| 19 | //! list is updated -- the point being that the shrink is noticed. |
| 20 | |
| 21 | /// aomenc coding tools that no real-`aomenc` gate exercises: switched off in |
| 22 | /// every gate that names them, on in none, defaulted in none. |
| 23 | /// |
| 24 | /// Each entry is `(flag, why)`. Removing an entry is how a lane records that |
| 25 | /// its tool is now covered by a real stream. |
| 26 | |
| 27 | const NEVER_EXERCISED: & = & |
| 28 | |
| 29 | ; |
| 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 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 |