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 [MediaFile::bit_rate].
Trait Implementations§
Source§impl Clone for VideoTrack
impl Clone for VideoTrack
impl Copy for VideoTrack
Source§impl Debug for VideoTrack
impl Debug for VideoTrack
Source§impl<'de> Deserialize<'de> for VideoTrack
impl<'de> Deserialize<'de> for VideoTrack
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VideoTrack
Source§impl PartialEq for VideoTrack
impl PartialEq for VideoTrack
Source§impl Serialize for VideoTrack
impl Serialize for VideoTrack
impl StructuralPartialEq for VideoTrack
Auto Trait Implementations§
impl Freeze for VideoTrack
impl RefUnwindSafe for VideoTrack
impl Send for VideoTrack
impl Sync for VideoTrack
impl Unpin for VideoTrack
impl UnsafeUnpin for VideoTrack
impl UnwindSafe for VideoTrack
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