pub struct VideoTrack { /* private fields */ }Expand description
An owned description of one video track, not a decoded pixel layout.
A recorder’s events describe the source’s declared format, and a probe the
track header of the file. A value the SDK does not know yet is zero or
None.
Implementations§
Source§impl VideoTrack
impl VideoTrack
Sourcepub fn tier(&self) -> StreamTier
pub fn tier(&self) -> StreamTier
Which of the source’s streams the track recorded: the full-quality program stream or the low-bandwidth preview (proxy) stream.
Sourcepub fn frame_rate(&self) -> Option<FrameRate>
pub fn frame_rate(&self) -> Option<FrameRate>
The frame rate, or None while it is not known.
Sourcepub fn fourcc(&self) -> FourCc
pub fn fourcc(&self) -> FourCc
The codec or packing identifier, including one this crate does not know.
Sourcepub fn scan_type(&self) -> Option<ScanType>
pub fn scan_type(&self) -> Option<ScanType>
The scan type, or None for a value this crate does not know.
A file recorded before the SDK stored the scan type reports
ScanType::Interlaced, the SDK’s zero value.
Sourcepub fn picture_aspect_ratio(&self) -> Option<PictureAspectRatio>
pub fn picture_aspect_ratio(&self) -> Option<PictureAspectRatio>
The display aspect ratio of the full frame, such as 16/9, or None
when it is not known, in which case the pixels are square.