Expand description
Video decoding library.
Re-exports§
pub use re_mp4::TrackId;pub use re_mp4::TrackKind;pub use re_quota_channel::Receiver;pub use re_quota_channel::Sender;pub use re_quota_channel::TryRecvError;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.
- Sample
Metadata - A single sample in a video.
- Samples
Statistics - Meta information 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. - Sample
Metadata State - The state of the current sample.
- 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.
Constants§
- AV1_
TEST_ INTER_ FRAME - AV1 inter-frame (non-keyframe) for testing (generated with ffmpeg)
- AV1_
TEST_ KEYFRAME - Small 64x64 AV1 keyframe for testing (generated with ffmpeg)
Traits§
- Async
Decoder - Interface for an asynchronous video decoder.
Functions§
- channel
- Create a channel for use with
new_decoder. - detect_
gop_ start - Try to determine whether a frame chunk is the start of a GOP.
- enabled_
features - 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_ annexb - Write an H.264 chunk to an Annex B stream without state tracking.
- write_
avc_ chunk_ to_ nalu_ stream - write_
hevc_ chunk_ to_ annexb - Write an H.265 chunk to an Annex B stream without state tracking.
- write_
hevc_ chunk_ to_ nalu_ stream
Type Aliases§
- Decode
Result - Frame
Result - Keyframe
Index - An index into
VideoDataDescription::keyframe_indices, not stable between mutations. - Sample
Index - Index used for referencing into
VideoDataDescription::samples.