forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiBcbbd6e2Tahinli2 months ago2369 commits

lib.rs57 lines, 1.6 KiBHistoryRawDownload
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#![deny(unsafe_code)]
24#![warn(missing_docs)]
25
26pub mod bits;
27pub mod cdf;
28mod cdf_state;
29mod compound;
30pub mod decode;
31pub mod encode;
32pub mod encoder;
33mod envflags;
34mod film_grain;
35mod filter_search;
36pub mod frame;
37mod gate_coverage;
38mod hits;
39pub mod intra;
40pub mod mc;
41pub mod motion;
42mod motion_field;
43pub mod msac;
44pub mod mvstack;
45pub mod obu;
46mod par;
47pub mod quant;
48mod refusal_inventory;
49mod restoration;
50pub mod sequence;
51mod superres;
52pub mod stream;
53mod timeline;
54pub mod tile;
55pub mod transform;
56mod warp;
57mod wedge;