Skip to main content

Module decoder

Module decoder 

Source
Expand description

Video decoder with hardware acceleration support.

Implements FFmpeg-based video decoding with automatic hardware acceleration detection (VAAPI, NVDEC, VideoToolbox) and graceful fallback to software decoding. Decoding runs on a dedicated thread and pushes frames through a bounded channel so memory stays flat no matter how long the video is.

The decode thread also listens on a control channel, so pause, resume and seek take effect immediately instead of waiting for the consumer.

Structs§

DecoderInfo
Information about the active decoder.
VideoDecoder
Video decoder with hardware acceleration support.
VideoFrame
Video frame ready for texture upload.
VideoMetadata
Video metadata extracted from the file.

Enums§

HwAccel
Hardware acceleration backend.

Traits§

VideoSource
Trait for video sources - allows different format implementations.