pub struct VideoTrack {
pub codec: VideoCodec,
pub width: u32,
pub height: u32,
pub bit_depth: u32,
pub hdr: Option<HdrFormat>,
pub bit_rate: Option<u64>,
}Expand description
A file’s picture as it is stored, for “4K · HEVC · Dolby Vision · 10-bit”: what the file is, not how it will play.
Fields§
§codec: VideoCodec§width: u32Pixels. A 2.40:1 4K film is 3840 by 1600: go by the width for its class.
height: u32§bit_depth: u32Bits per sample: 8, 10 or 12.
hdr: Option<HdrFormat>The HDR format; None is SDR. Dolby Vision over an HDR10 base is
Dolby Vision. HDR10+ is HDR10 here: its metadata is in the frames,
which the probe does not read.
bit_rate: Option<u64>The picture’s own average bits per second, where the file says:
MP4 does for each stream, Matroska where its muxer wrote
statistics tags (mkvmerge does). As MediaTracks::bit_rate.
Implementations§
Source§impl VideoTrack
impl VideoTrack
Sourcepub fn resolution(&self) -> Option<Resolution>
pub fn resolution(&self) -> Option<Resolution>
Its picture size class, by height and width both, as the server
classes an item for a filter (Resolution::of): a 1920×800
scope film is 1080p. None for a track that gives no size.
Sourcepub fn dynamic_range(&self) -> DynamicRange
pub fn dynamic_range(&self) -> DynamicRange
Its range in a filter’s words: Dolby Vision, HDR for HDR10 and HLG, else SDR.