Struct mpeg2ts_reader::pes::PesParsedContents
source · pub struct PesParsedContents<'buf> { /* private fields */ }Expand description
Extra data which may optionally be present in the PesHeader, potentially including
Presentation Timestamp (PTS) and Decode Timestamp (DTS) values.
Implementations
sourceimpl<'buf> PesParsedContents<'buf>
impl<'buf> PesParsedContents<'buf>
pub fn from_bytes(buf: &'buf [u8]) -> Option<PesParsedContents<'buf>>
sourcepub fn pes_priority(&self) -> u8
pub fn pes_priority(&self) -> u8
value 1 indicates higher priority and 0 indicates lower priority
pub fn data_alignment_indicator(&self) -> DataAlignment
pub fn copyright(&self) -> Copyright
pub fn original_or_copy(&self) -> OriginalOrCopy
pub fn pts_dts(&self) -> Result<PtsDts, PesError>
pub fn escr(&self) -> Result<ClockRef, PesError>
pub fn es_rate(&self) -> Result<EsRate, PesError>
pub fn dsm_trick_mode(&self) -> Result<DsmTrickMode, PesError>
pub fn additional_copy_info(&self) -> Result<u8, PesError>
pub fn previous_pes_packet_crc(&self) -> Result<u16, PesError>
pub fn pes_extension(&self) -> Result<PesExtension<'buf>, PesError>
pub fn payload(&self) -> &'buf [u8] ⓘ
Trait Implementations
Auto Trait Implementations
impl<'buf> RefUnwindSafe for PesParsedContents<'buf>
impl<'buf> Send for PesParsedContents<'buf>
impl<'buf> Sync for PesParsedContents<'buf>
impl<'buf> Unpin for PesParsedContents<'buf>
impl<'buf> UnwindSafe for PesParsedContents<'buf>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more