forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB68cf7a6Tahinli2 months ago2975 commits

lib.rs60 lines, 1.7 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;
29pub mod census;
30mod compound;
31pub mod decode;
32pub mod encode;
33pub mod encoder;
34mod envflags;
35mod film_grain;
36mod filter_search;
37pub mod frame;
38mod gate_coverage;
39mod hits;
40pub mod intra;
41pub mod mc;
42pub mod motion;
43mod motion_field;
44pub mod msac;
45pub mod mvstack;
46pub mod obu;
47mod par;
48pub mod probe;
49pub mod quant;
50mod refusal_inventory;
51pub mod speed;
52mod restoration;
53pub mod sequence;
54mod superres;
55pub mod stream;
56mod timeline;
57pub mod tile;
58pub mod transform;
59mod warp;
60mod wedge;