Pure-Rust H.264 (Constrained Baseline) encoder.
Status: all-intra, I_16x16 DC-predicted macroblocks with the full
transform → quantization → CAVLC pipeline. The Annex-B output is bit-exactly
decodable by reference decoders (verified against ffmpeg). Richer intra modes
(I_4x4), inter prediction, and the in-loop deblocking filter (currently
signalled disabled) are layered in by later generations behind this API.
use ;
use YuvFrame;
let cfg = new;
let mut enc = new.unwrap;
let frame = black;
let bitstream = enc.encode; // Annex-B bytes for one access unit
assert!;