edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! Non-4:2:0 subsampling and 12-bit witnesses: profiles 1 and 3 (4:4:4 / |
| 2 | //! 4:2:2 / 4:4:0 at 8 and 10 bits) and profile 2/3 12-bit decode byte-exact |
| 3 | //! against ffmpeg's libvpx. |
| 4 | //! |
| 5 | //! Every fixture under `tests/data/` is committed (see the lane report for |
| 6 | //! the exact generator commands), so these cases always run; the two |
| 7 | //! `corpus_*` cases additionally cover the media-gated 4:4:4 corpus streams |
| 8 | //! and print SKIP when the fixture is absent -- RED instead under |
| 9 | //! `EC_REQUIRE_FIXTURES=1`, so a drifted fixture library can never read as a |
| 10 | //! pass. |
| 11 | //! |
| 12 | //! The comparison is the whole flattened plane stream (u16 samples) against |
| 13 | //! ffmpeg's `rawvideo` output for the matching `pix_fmt` — full-resolution |
| 14 | //! chroma for 4:4:4, half-width for 4:2:2, half-height for 4:4:0, and the |
| 15 | //! 16-bit LE sample layout for 10/12-bit. |
| 16 | |
| 17 | use crateivf; |
| 18 | use craterequire_fixture; |
| 19 | |
| 20 | use Decoder; |
| 21 | use ; |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | /// ffmpeg's decoded samples as a flat u16 stream (8-bit zero-extended, |
| 37 | /// 10/12-bit little-endian pairs). |
| 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 | /// Old per-case test names, fixture, ffmpeg `pix_fmt`, bit depth. |
| 95 | const PROFILE_CASES: & = & |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | ; |
| 105 | |
| 106 | /// Runs every profile/subsampling/bit-depth case; a failing case does not |
| 107 | /// stop the others, and all failing case names are reported together. |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 |