edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB84fa44cTahinli2 months ago3331 commits
| 1 | //! AV1 OBU writer — bit-exact inverse of the [`ec_av1_syntax`] parsers, for |
| 2 | //! the stateless hardware-decoder subset (sequence header and key-frame header |
| 3 | //! OBUs). |
| 4 | //! |
| 5 | //! [`bits`] holds the bit-primitive writers every higher-level OBU writer is |
| 6 | //! built from; each is the direct inverse of the matching reader in |
| 7 | //! [`ec_av1_syntax::obu`] and is roundtripped against that reader in its tests. |
| 8 | //! |
| 9 | //! AV1 is covered by the AOMedia Patent License 1.0; this crate is an |
| 10 | //! independent implementation written from the specification alone. |
| 11 | //! |
| 12 | //! # Unsafe |
| 13 | //! |
| 14 | //! This crate is `deny(unsafe_code)` rather than `forbid`: the two motion |
| 15 | //! compensation inner loops are the largest single share of a decode's time |
| 16 | //! and are hand-vectorised with `std::arch::x86_64` intrinsics, which are |
| 17 | //! unsafe by signature. The exception is confined to [`mc`]'s `simd` module |
| 18 | //! (plus its dispatch and its tests, each carrying its own |
| 19 | //! `#[allow(unsafe_code)]`); every kernel there is checked lane-for-lane |
| 20 | //! against the scalar function it replaces, which stays the reference |
| 21 | //! implementation and is what every other architecture runs. |
| 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 |