edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! Native VP8 (RFC 6386) decoder — the future replacement for edith's |
| 2 | //! runtime-dlopen'd libvpx seat. |
| 3 | //! |
| 4 | //! The crate is written from the specification ([RFC 6386]) alone; libvpx's |
| 5 | //! output is used only as a test oracle (sample-exactness witnesses), never |
| 6 | //! as code to port. Every module documents the spec section it implements. |
| 7 | //! |
| 8 | //! [RFC 6386]: https://www.rfc-editor.org/rfc/rfc6386 |
| 9 | //! |
| 10 | //! # Safety |
| 11 | //! |
| 12 | //! Every SIMD kernel is a safe `#[arcane]` function taking a `X64V3Token` |
| 13 | //! proof of AVX2, obtained at runtime; the crate-level `forbid` below keeps it so. |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | pub use ; |
| 32 | pub use PersistedState; |
| 33 | |
| 34 | /// Whether `EC_VP8_TRACE` decision tracing is enabled, resolved once per |
| 35 | /// process. A `var_os` per bool read was 46% of the decode profile (each |
| 36 | /// call locks std's ENV lock and allocates); `OnceLock::get_or_init` was |
| 37 | /// no better, so the hot path is a single relaxed atomic load. |
| 38 | pub |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | /// Whether `EC_VP8_DEBUG` per-macroblock dumps are enabled (same shape as |
| 53 | /// [`trace_enabled`]; the check sits in the per-MB reconstruct path). |
| 54 | pub |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 |