pub struct StreamInfo {
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>,
}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.
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