rusty_h264-encoder 0.2.0

Pure-Rust H.264 (Constrained Baseline) encoder.
Documentation

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 rusty_h264_encoder::{Encoder, EncoderConfig};
use rusty_h264_common::YuvFrame;

let cfg = EncoderConfig::new(16, 16);
let mut enc = Encoder::new(cfg).unwrap();
let frame = YuvFrame::black(16, 16);
let bitstream = enc.encode(&frame); // Annex-B bytes for one access unit
assert!(!bitstream.is_empty());