Skip to main content

rff_core/
lib.rs

1//! `rff-core` — shared primitives for Remade FFmpeg (Rust).
2//!
3//! This is the equivalent of FFmpeg's `libavutil`: the small, dependency-free
4//! vocabulary that every other crate speaks. Codecs, formats, the engine, the
5//! CLI and the server all build on the types defined here.
6//!
7//! Nothing in this crate performs encoding or decoding — it only defines the
8//! data that flows between those stages (`Packet`s of compressed bytes,
9//! `Frame`s of raw samples) and the way errors are reported (`Error`).
10
11pub mod dict;
12pub mod error;
13pub mod frame;
14pub mod media;
15pub mod packet;
16pub mod rational;
17
18pub use dict::Dictionary;
19pub use error::{Error, Result};
20pub use frame::{AudioFrame, Frame, VideoFrame};
21pub use media::{CodecId, ColorRange, MediaType, PixelFormat, SampleFormat};
22pub use packet::{Packet, PacketFlags};
23pub use rational::Rational;