edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! Inter-frame pixel witness: a GOP (key frame + inter frames, with and |
| 2 | //! without tile columns) must decode byte-identically to ffmpeg's libvpx |
| 3 | //! decoder, whose rawvideo output is the oracle. Fixtures are generated |
| 4 | //! deterministically with ffmpeg, so the witness is self-contained. |
| 5 | //! |
| 6 | //! The 1080p private streams the lane developed against are compared through |
| 7 | //! `tests/scratch_pixdump.rs` (env-gated) instead; see `lanes/vp9pix.report.md`. |
| 8 | |
| 9 | use crateivf; |
| 10 | use crate; |
| 11 | |
| 12 | use Decoder; |
| 13 | /// Generate a GOP fixture with libvpx: 6 frames of testsrc2 at 320x240, |
| 14 | /// `-g 10` so frames 1..5 are inter frames. |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | /// Decode every frame with our decoder and compare each SHOWN frame's planes |
| 52 | /// against ffmpeg's stream; returns the number of shown frames compared. |
| 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 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | /// Real-content regression for the last-partial-SB-row context bug: this |
| 116 | /// 120-frame 1080p stream used to abort at input frame 72 with |
| 117 | /// `tile bool decoder desync`, because a chroma transform block whose |
| 118 | /// write-back window runs past the frame bottom edge kept the window's |
| 119 | /// TAIL slot set (`write_tx_context`), and the next row of blocks read it |
| 120 | /// as an entropy context. Every shown frame must match ffmpeg. |
| 121 | /// |
| 122 | /// Media-gated: the corpus fixture is not versioned, so the witness prints |
| 123 | /// SKIP when `fixtures/bitstreams/vp9-1080p-60-8bit.ivf` is absent -- and goes |
| 124 | /// RED instead under `EC_REQUIRE_FIXTURES=1`. |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 |