edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits
| 1 | //! The chroma and depth edith does not decode are refused at probe, by name, before |
| 2 | //! anything is exported: `Demuxer::open` (what the probe and import read) and |
| 3 | //! `decode::probe` (what a front-end asks for the decoder) say the same words. |
| 4 | //! |
| 5 | //! One case per format, each with the conversion that makes the file usable. |
| 6 | //! AV1 4:2:2, 4:4:4 and 12-bit, and HEVC 4:2:2 at 10-bit, are carried now, so |
| 7 | //! they probe clean. |
| 8 | //! |
| 9 | //! ```text |
| 10 | //! cargo test -p engine --release --test probe_refusal |
| 11 | //! ``` |
| 12 | |
| 13 | use PathBuf; |
| 14 | use Command; |
| 15 | |
| 16 | use probe; |
| 17 | use Demuxer; |
| 18 | use Scratch; |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | /// A 10-bit RExt 4:2:2 HEVC clip (`hvcC` chroma 2, depth 10), encoded with ffmpeg's |
| 25 | /// libx265 into a scratch directory. `assets/` is gitignored, so the fixture the |
| 26 | /// gen script writes is not on every checkout; the test must not depend on it. |
| 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 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 |