Enum mpeg2ts_reader::pes::PtsDts
source · pub enum PtsDts {
None,
PtsOnly(Result<Timestamp, TimestampError>),
Invalid,
Both {
pts: Result<Timestamp, TimestampError>,
dts: Result<Timestamp, TimestampError>,
},
}Expand description
Contains some combination of PTS and DTS timestamps (or maybe neither).
The timestamps will be wrapped in Result, in case an error in the stored timestamp syntax
means that it can’t be decoded.
Variants§
None
There are no timestamps present
PtsOnly(Result<Timestamp, TimestampError>)
Only Presentation Time Stamp is present
Invalid
the pts_dts_flags field contained an invalid value
Both
Fields
§
pts: Result<Timestamp, TimestampError>Presentation Time Stamp
§
dts: Result<Timestamp, TimestampError>Decode Time Stamp
Both Presentation and Decode Time Stamps are present
Trait Implementations§
source§impl PartialEq for PtsDts
impl PartialEq for PtsDts
impl Eq for PtsDts
impl StructuralPartialEq for PtsDts
Auto Trait Implementations§
impl RefUnwindSafe for PtsDts
impl Send for PtsDts
impl Sync for PtsDts
impl Unpin for PtsDts
impl UnwindSafe for PtsDts
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