pub struct PictureTimingParser { /* private fields */ }Expand description
Parser for picture timing SEI payloads.
Implementations§
Source§impl PictureTimingParser
impl PictureTimingParser
Sourcepub fn new(pic_struct_present: bool, cpb_dpb_delays_present: bool) -> Self
pub fn new(pic_struct_present: bool, cpb_dpb_delays_present: bool) -> Self
Creates a new parser.
pic_struct_present — from SPS VUI pic_struct_present_flag.
cpb_dpb_delays_present — from HRD parameters presence.
Sourcepub fn parse(&self, data: &[u8]) -> Option<PictureTiming>
pub fn parse(&self, data: &[u8]) -> Option<PictureTiming>
Parses a raw SEI payload byte slice into a PictureTiming.
Returns None if the slice is too short to contain valid data.
Trait Implementations§
Source§impl Debug for PictureTimingParser
impl Debug for PictureTimingParser
Source§impl Default for PictureTimingParser
impl Default for PictureTimingParser
Source§fn default() -> PictureTimingParser
fn default() -> PictureTimingParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PictureTimingParser
impl RefUnwindSafe for PictureTimingParser
impl Send for PictureTimingParser
impl Sync for PictureTimingParser
impl Unpin for PictureTimingParser
impl UnsafeUnpin for PictureTimingParser
impl UnwindSafe for PictureTimingParser
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> 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