pub struct SeiMessage {
pub payload_type: SeiPayloadType,
pub payload: Vec<u8>,
}Expand description
A single SEI message: a payload type tag plus the encoded bytes.
Fields§
§payload_type: SeiPayloadTypePayload type discriminant.
payload: Vec<u8>Raw serialised payload bytes.
Implementations§
Source§impl SeiMessage
impl SeiMessage
Sourcepub fn new(payload_type: SeiPayloadType, payload: Vec<u8>) -> Self
pub fn new(payload_type: SeiPayloadType, payload: Vec<u8>) -> Self
Create a raw SEI message with the given type and payload.
Sourcepub fn user_data_unregistered(udu: &UserDataUnregistered) -> Self
pub fn user_data_unregistered(udu: &UserDataUnregistered) -> Self
Build a UserDataUnregistered SEI message.
Sourcepub fn picture_timing(pt: &PictureTiming) -> Self
pub fn picture_timing(pt: &PictureTiming) -> Self
Build a PictureTiming SEI message.
Sourcepub fn as_user_data_unregistered(&self) -> CodecResult<UserDataUnregistered>
pub fn as_user_data_unregistered(&self) -> CodecResult<UserDataUnregistered>
Parse the payload as UserDataUnregistered.
Sourcepub fn as_picture_timing(&self) -> CodecResult<PictureTiming>
pub fn as_picture_timing(&self) -> CodecResult<PictureTiming>
Parse the payload as PictureTiming.
Trait Implementations§
Source§impl Clone for SeiMessage
impl Clone for SeiMessage
Source§fn clone(&self) -> SeiMessage
fn clone(&self) -> SeiMessage
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 moreSource§impl Debug for SeiMessage
impl Debug for SeiMessage
Source§impl PartialEq for SeiMessage
impl PartialEq for SeiMessage
Source§fn eq(&self, other: &SeiMessage) -> bool
fn eq(&self, other: &SeiMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SeiMessage
impl StructuralPartialEq for SeiMessage
Auto Trait Implementations§
impl Freeze for SeiMessage
impl RefUnwindSafe for SeiMessage
impl Send for SeiMessage
impl Sync for SeiMessage
impl Unpin for SeiMessage
impl UnsafeUnpin for SeiMessage
impl UnwindSafe for SeiMessage
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