pub struct Sps {Show 17 fields
pub profile_idc: u8,
pub level_idc: u8,
pub sps_id: u32,
pub chroma_format_idc: u32,
pub bit_depth_luma: u32,
pub bit_depth_chroma: u32,
pub log2_max_frame_num: u32,
pub pic_order_cnt_type: u32,
pub max_num_ref_frames: u32,
pub pic_width_in_mbs: u32,
pub pic_height_in_map_units: u32,
pub frame_mbs_only_flag: bool,
pub mb_adaptive_frame_field_flag: bool,
pub frame_crop_left: u32,
pub frame_crop_right: u32,
pub frame_crop_top: u32,
pub frame_crop_bottom: u32,
}Expand description
Parsed Sequence Parameter Set (subset of fields needed for frame dimensions).
Fields§
§profile_idc: u8§level_idc: u8§sps_id: u32§chroma_format_idc: u32§bit_depth_luma: u32§bit_depth_chroma: u32§log2_max_frame_num: u32§pic_order_cnt_type: u32§max_num_ref_frames: u32§pic_width_in_mbs: u32§pic_height_in_map_units: u32§frame_mbs_only_flag: bool§mb_adaptive_frame_field_flag: bool§frame_crop_left: u32§frame_crop_right: u32§frame_crop_top: u32§frame_crop_bottom: u32Implementations§
Source§impl Sps
impl Sps
Sourcepub fn cropped_width(&self) -> usize
pub fn cropped_width(&self) -> usize
Cropped frame width.
Returns the full width if cropping would underflow (malformed SPS).
Sourcepub fn cropped_height(&self) -> usize
pub fn cropped_height(&self) -> usize
Cropped frame height.
Returns the full height if cropping would underflow (malformed SPS).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sps
impl RefUnwindSafe for Sps
impl Send for Sps
impl Sync for Sps
impl Unpin for Sps
impl UnsafeUnpin for Sps
impl UnwindSafe for Sps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more