pub struct PictureTiming {
pub cpb_dpb_delays_present: bool,
pub cpb_removal_delay: u32,
pub dpb_output_delay: u32,
pub pic_struct: Option<PicStruct>,
pub clock_timestamps: Vec<ClockTimestamp>,
pub repeat_first_field: bool,
}Expand description
Picture timing SEI payload.
Fields§
§cpb_dpb_delays_present: boolCpbDpbDelaysPresentFlag controls whether cpb/dpb removal delays appear.
cpb_removal_delay: u32Cpb removal delay in ticks.
dpb_output_delay: u32Dpb output delay in ticks.
pic_struct: Option<PicStruct>PicStruct field (present when pic_struct_present_flag is set in VUI).
clock_timestamps: Vec<ClockTimestamp>Up to 3 optional clock timestamps.
repeat_first_field: boolrepeat_first_field flag extracted from the SEI.
Implementations§
Source§impl PictureTiming
impl PictureTiming
Sourcepub fn new(cpb_removal_delay: u32, dpb_output_delay: u32) -> Self
pub fn new(cpb_removal_delay: u32, dpb_output_delay: u32) -> Self
Creates a minimal PictureTiming with no clock timestamps.
Sourcepub fn is_repeat_first_field(&self) -> bool
pub fn is_repeat_first_field(&self) -> bool
Returns true when the repeat_first_field flag is set.
Sourcepub fn pic_struct(&self) -> Option<PicStruct>
pub fn pic_struct(&self) -> Option<PicStruct>
Returns the PicStruct if present.
Sourcepub fn timestamp_count(&self) -> usize
pub fn timestamp_count(&self) -> usize
Number of clock timestamps attached.
Trait Implementations§
Source§impl Clone for PictureTiming
impl Clone for PictureTiming
Source§fn clone(&self) -> PictureTiming
fn clone(&self) -> PictureTiming
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 PictureTiming
impl RefUnwindSafe for PictureTiming
impl Send for PictureTiming
impl Sync for PictureTiming
impl Unpin for PictureTiming
impl UnsafeUnpin for PictureTiming
impl UnwindSafe for PictureTiming
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