Expand description
rff-codec — the codec abstraction layer (FFmpeg’s libavcodec core,
minus the codecs themselves).
It defines:
- the
DecoderandEncodertraits, using the same send / receive shape as modern FFmpeg (avcodec_send_packet/avcodec_receive_frame), - a
Codecdescriptor that advertises a codec’s identity and which directions (decode/encode) it supports, - a
CodecRegistrythat individual codec crates register into.
Concrete codecs live in their own crates (rff-codec-h264, …) and are
pulled together by the rff facade.
Structs§
- Codec
- Static description of a codec and the implementations available for it.
- Codec
Params - Stream parameters handed to a decoder before the first packet. Self-describing codecs (AV1, PNG, …) can ignore these; raw/parametric codecs (PCM, and codecs that carry config out of band like H.264 SPS/PPS) need them.
- Codec
Registry - Holds every codec known to a running engine. Codec crates call
registerto add themselves.
Traits§
- Decoder
- Decodes compressed
Packets into rawFrames. - Encoder
- Encodes raw
Frames into compressedPackets. Mirror ofDecoder.
Type Aliases§
- Decoder
Factory - Factory function producing a fresh decoder instance.
- Encoder
Factory - Factory function producing a fresh encoder instance.