forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB552edc4Tahinli2 months ago2048 commits

lib.rs53 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;
35pub mod frame;
36mod gate_coverage;
37pub mod intra;
38pub mod mc;
39pub mod motion;
40mod motion_field;
41pub mod msac;
42pub mod mvstack;
43pub mod obu;
44pub mod quant;
45mod refusal_inventory;
46mod restoration;
47pub mod sequence;
48mod superres;
49pub mod stream;
50pub mod tile;
51pub mod transform;
52mod warp;
53mod wedge;