pub struct VideoParams {
pub width: u32,
pub height: u32,
pub profile: u8,
pub level: u8,
pub tier: u8,
pub bit_depth: u8,
}Available on crate feature
codec only.Expand description
Video metadata extracted from a parameter set / sequence header.
Fields are 0 when unknown — matching the convention in
StreamMetadata.
Fields§
§width: u32Coded luma width in pixels (after any conformance cropping).
height: u32Coded luma height in pixels (after any conformance cropping).
profile: u8Codec profile (profile_idc / seq_profile).
level: u8Codec level (e.g. general_level_idc, seq_level_idx).
tier: u8Tier (HEVC/VVC general_tier_flag; 0 elsewhere).
bit_depth: u8Luma bit depth (8, 10, 12); 0 when not parsed.
Trait Implementations§
Source§impl Clone for VideoParams
impl Clone for VideoParams
Source§fn clone(&self) -> VideoParams
fn clone(&self) -> VideoParams
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 moreimpl Copy for VideoParams
Source§impl Debug for VideoParams
impl Debug for VideoParams
Source§impl Default for VideoParams
impl Default for VideoParams
Source§fn default() -> VideoParams
fn default() -> VideoParams
Returns the “default value” for a type. Read more
impl Eq for VideoParams
Source§impl PartialEq for VideoParams
impl PartialEq for VideoParams
Source§fn eq(&self, other: &VideoParams) -> bool
fn eq(&self, other: &VideoParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VideoParams
Auto Trait Implementations§
impl Freeze for VideoParams
impl RefUnwindSafe for VideoParams
impl Send for VideoParams
impl Sync for VideoParams
impl Unpin for VideoParams
impl UnsafeUnpin for VideoParams
impl UnwindSafe for VideoParams
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