edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB84fa44cTahinli2 months ago3331 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 | //! # Unsafe |
| 11 | //! |
| 12 | //! This crate contains no `unsafe` code. |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | pub use ; |
| 31 | pub use PersistedState; |
| 32 | |
| 33 | /// Whether `EC_VP8_TRACE` decision tracing is enabled, resolved once per |
| 34 | /// process. A `var_os` per bool read was 46% of the decode profile (each |
| 35 | /// call locks std's ENV lock and allocates); `OnceLock::get_or_init` was |
| 36 | /// no better, so the hot path is a single relaxed atomic load. |
| 37 | pub |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | /// Cached AVX2 availability for the explicit-SIMD kernels (`mc`). |
| 52 | |
| 53 | pub |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | /// Whether `EC_VP8_DEBUG` per-macroblock dumps are enabled (same shape as |
| 60 | /// [`trace_enabled`]; the check sits in the per-MB reconstruct path). |
| 61 | pub |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 |