pub struct StreamInfo {Show 15 fields
pub index: usize,
pub kind: StreamKind,
pub codec: String,
pub duration: Option<MediaTime>,
pub dimensions: Option<(u32, u32)>,
pub frame_rate: Option<FrameRate>,
pub sample_rate: Option<u32>,
pub channels: Option<u32>,
pub orientation: Orientation,
pub sample_aspect_ratio: SampleAspectRatio,
pub color: Option<ColorMetadata>,
pub frame_bytes: Option<u64>,
pub alpha: Option<SourceAlpha>,
pub language: Option<String>,
pub title: Option<String>,
}Expand description
Platform-neutral probe result for one stream.
Fields§
§index: usizeDemuxer stream index.
kind: StreamKindStream domain.
codec: StringCodec short name when available.
duration: Option<MediaTime>Stream duration when known.
dimensions: Option<(u32, u32)>Video dimensions.
frame_rate: Option<FrameRate>Video frame rate.
sample_rate: Option<u32>Audio sample rate.
channels: Option<u32>Audio channel count.
orientation: OrientationHow the stream’s pictures are shown upright.
sample_aspect_ratio: SampleAspectRatioSample aspect ratio.
color: Option<ColorMetadata>Declared video color.
frame_bytes: Option<u64>Bytes per decoded picture in the decoder’s output format (av_image_get_buffer_size at
the coded size), or None when the format is unknown.
alpha: Option<SourceAlpha>How a video stream carries alpha, when it does; None for an opaque stream.
language: Option<String>The stream’s language tag, when tagged.
title: Option<String>The stream’s title tag, when tagged.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§impl Debug for StreamInfo
impl Debug for StreamInfo
Source§impl PartialEq for StreamInfo
impl PartialEq for StreamInfo
impl StructuralPartialEq for StreamInfo
Auto Trait Implementations§
impl Freeze for StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnsafeUnpin for StreamInfo
impl UnwindSafe for StreamInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more