pub struct StreamInfo {
pub codec: String,
pub width: u32,
pub height: u32,
pub frame_rate: f64,
pub duration: f64,
pub pixel_format: PixelFormat,
pub color_space: ColorSpace,
pub total_frames: u64,
pub bitrate: u64,
pub color_metadata: ColorMetadata,
}Fields§
§codec: String§width: u32§height: u32§frame_rate: f64§duration: f64§pixel_format: PixelFormat§color_space: ColorSpace§total_frames: u64§bitrate: u64§color_metadata: ColorMetadataHDR-relevant metadata. Bundled into one sub-struct that defaults
to SDR BT.709 so every existing StreamInfo { ... } literal in
the codebase compiles unchanged via ..Default::default() or
direct field init; only HDR-aware sites (nvdec sequence_callback,
HEVC/AV1 SPS/VUI parsers, MP4 mux colr nclx writer) populate
non-default values.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§fn clone(&self) -> StreamInfo
fn clone(&self) -> StreamInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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