edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB231663eTahinli3 months ago1475 commits
| 1 | //! Typed errors. Nothing in this crate panics on a driver or bitstream fault. |
| 2 | //! |
| 3 | //! That is a hard requirement rather than a style preference: edith loads the |
| 4 | //! VA-API path as a `dlopen`ed plugin behind `catch_unwind`, and its |
| 5 | //! fall-back-to-software guarantee is only as good as this crate's promise to |
| 6 | //! return instead of unwinding. Every `VAStatus` becomes an [`Error::Va`], |
| 7 | //! every malformed bitstream an [`Error::Stream`], and every capability this |
| 8 | //! GPU does not have an [`Error::Unsupported`] naming what and why. |
| 9 | |
| 10 | use fmt; |
| 11 | |
| 12 | /// Result alias for this crate. |
| 13 | pub type Result<T> = Result; |
| 14 | |
| 15 | /// Everything that can go wrong on the hardware path. |
| 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 | |
| 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 |