pub struct VideoStream {
pub pid: u16,
pub codec: Codec,
pub resolution: Resolution,
pub frame_rate: FrameRate,
pub hdr: HdrFormat,
pub color_space: ColorSpace,
pub secondary: bool,
pub label: String,
}Expand description
A video stream.
Fields§
§pid: u16MPEG-TS packet ID
codec: CodecCodec (HEVC, H.264, VC-1, MPEG-2)
resolution: ResolutionResolution
frame_rate: FrameRateFrame rate
hdr: HdrFormatHDR format
color_space: ColorSpaceColor space
secondary: boolWhether this is a secondary stream (PiP, Dolby Vision EL)
label: StringExtra label (e.g. “Dolby Vision EL”)
Trait Implementations§
Source§impl Clone for VideoStream
impl Clone for VideoStream
Source§fn clone(&self) -> VideoStream
fn clone(&self) -> VideoStream
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VideoStream
impl RefUnwindSafe for VideoStream
impl Send for VideoStream
impl Sync for VideoStream
impl Unpin for VideoStream
impl UnsafeUnpin for VideoStream
impl UnwindSafe for VideoStream
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