pub struct PictureTiming {
pub clock_timestamp_flag: bool,
pub clock_timestamp: u64,
pub presentation_delay: u32,
pub pic_struct: PicStructure,
}Expand description
SEI type 1: picture timing.
Carries HRD clock tick information and picture-structure metadata. Fields correspond to the simplified timing syntax used in royalty-free codec streams (VP8 extension / AV1 metadata).
Fields§
§clock_timestamp_flag: boolClock timestamp flag — true if clock fields are valid.
clock_timestamp: u64Clock units elapsed since the start of the sequence.
presentation_delay: u32Presentation delay in ticks.
pic_struct: PicStructurePicture structure hint.
Implementations§
Source§impl PictureTiming
impl PictureTiming
Sourcepub fn frame(clock_timestamp: u64, presentation_delay: u32) -> Self
pub fn frame(clock_timestamp: u64, presentation_delay: u32) -> Self
Create a simple frame-level timing entry with a clock timestamp.
Sourcepub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Serialise to bytes (16 bytes: flags 1 + clock 8 + delay 4 + pic_struct 1 + pad 2).
Sourcepub fn from_bytes(raw: &[u8]) -> CodecResult<Self>
pub fn from_bytes(raw: &[u8]) -> CodecResult<Self>
Parse from bytes.
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 moreSource§impl Debug for PictureTiming
impl Debug for PictureTiming
Source§impl PartialEq for PictureTiming
impl PartialEq for PictureTiming
impl Eq for PictureTiming
impl StructuralPartialEq for PictureTiming
Auto 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