Expand description
Video decoding library.
Re-exports§
pub use re_mp4::TrackId;pub use re_mp4::TrackKind;pub use re_span::Span;pub use stable_index_deque::StableIndexDeque;pub use time::Time;pub use time::Timescale;
Structs§
- AnnexB
Stream State - Chunk
- One chunk of encoded video data, representing a single
crate::SampleMetadata. - Decode
Settings - Settings for video decoding.
- FFmpeg
Version - A successfully parsed
FFmpegversion. - Frame
- One decoded video frame.
- Frame
Content - Data for a decoded frame on native targets.
- Frame
Info - Meta information about a decoded video frame, as reported by the decoder.
- Group
OfPictures - A Group of Pictures (GOP) always starts with an I(DR)-frame, followed by delta-frames.
- Sample
Metadata - A single sample in a video.
- Samples
Statistics - Meta informationa about the video samples.
- Video
Data Description - Description of video data.
- Video
Encoding Details - Various information about how the video was encoded.
Enums§
- Chroma
Subsampling Modes - Chroma subsampling mode.
- Decode
Error - Decode
Hardware Acceleration - How the video should be decoded.
- Detect
GopStart Error - Failure reason for
detect_gop_start. - FFmpeg
Error - FFmpeg
Version Parse Error - GopStart
Detection - Result of a successful GOP detection.
- Pixel
Format - Pixel format/layout used by
FrameContent::data. - Video
Codec - The basic codec family used to encode the video.
- Video
Delivery Method - Distinguishes static videos from potentially ongoing video streams.
- Video
Load Error - Errors that can occur when loading a video.
- YuvMatrix
Coefficients - Yuv matrix coefficients used by
PixelFormat::Yuv. - YuvPixel
Layout - Pixel layout used by
PixelFormat::Yuv. - YuvRange
- Yuv value range used by
PixelFormat::Yuv.
Traits§
- Async
Decoder - Interface for an asynchronous video decoder.
Functions§
- build_
info - Returns information about this crate
- detect_
gop_ start - Try to determine whether a frame chunk is the start of a GOP.
- ffmpeg_
download_ url - Download URL for the latest version of
FFmpegon the current platform. None if the platform is not supported. - new_
decoder - Creates a new async decoder for the given
videodata. - write_
avc_ chunk_ to_ nalu_ stream - write_
hevc_ chunk_ to_ nalu_ stream
Type Aliases§
- Decode
Result - Frame
Result - GopIndex
- Index used for referencing into
VideoDataDescription::gops. - Sample
Index - Index used for referencing into
VideoDataDescription::samples.