Skip to main content

Module codec

Module codec 

Source

Structs§

AudioDrain
Packets and metadata emitted while draining an audio encoder.
AudioEncoderConfig
Backend-neutral audio encoder configuration.
AudioEncoderFormat
Audio format accepted by an audio encoder.
AudioGapless
Gapless audio metadata produced when an encoder is drained.
CancellationToken
A cheap cloneable cancellation signal shared with a running codec operation.
DecodeStatistics
Observable counters for validating cache and decoder reuse behavior.
DecodedVideoFrame
One normalized decoder output, independent of backend-private image types.
EncodedSample
One encoded access unit with exact decode and presentation timing.
EncodedVideoSample
One owned compressed sample in decode order with its presentation identity.
EncoderConfig
Codec and sample-entry information needed to declare an MP4 track.
ExactFrameReader
Presentation-indexed exact-frame access over decode-order compressed samples.
SampleDependency
Dependency information written to the MP4 sample dependency table.
VideoDecoderConfig
Backend-neutral video decoder configuration.
VideoEncoderConfig
Backend-neutral video encoder configuration.
VideoEncoderFormat
Video format accepted by a video encoder.

Enums§

CodecImplementation
The implementation class selected by a codec factory.
CodecProfile
A normalized codec profile that can be compared across backend implementations.
CodecSupport
The result of querying a factory with a complete normalized configuration.
HardwarePreference
Whether a caller permits or requires a hardware codec implementation.
Seek
What a constant-time ExactFrameReader::seek could answer with.
TrackKind
The kind of media carried by an encoded track.

Constants§

SEEK_LATENCY_BUDGET
The longest a seek to any position of any track may take.

Traits§

AudioEncoder
Backend-neutral audio encoder contract.
AudioEncoderFactory
Discovers and creates audio encoders using the normalized capability model, the audio counterpart to VideoEncoderFactory.
SampleProvider
Supplies ExactFrameReader with compressed video samples by decode index, so a reader does not have to own every sample of a track up front.
SeekPreviewSource
Already-decoded pictures spread over a track, which a seek may answer from.
VideoDecoder
A stateful video decoder that may retain reference and reorder state.
VideoDecoderFactory
Discovers and creates video decoders without exposing backend-specific types.
VideoEncoder
Backend-neutral video encoder contract.
VideoEncoderFactory
Discovers and creates video encoders using the normalized capability model.

Functions§

uncompressed_video_decoder_factory
Returns the portable, software-only uncompressed Gray8 decoder backend.

Type Aliases§

EncoderFuture
A non-Send encoder future that works on native and single-threaded WASM.