#[repr(C)]pub struct CMSampleTimingInfo {
pub duration: CMTime,
pub presentationTimeStamp: CMTime,
pub decodeTimeStamp: CMTime,
}CMSampleBuffer and CMTime only.Expand description
Collection of timing info for a sample in a CMSampleBuffer. A single CMSampleTimingInfo struct can describe every individual sample in a CMSampleBuffer, if the samples all have the same duration and are in presentation order with no gaps.
See also Apple’s documentation
Fields§
§duration: CMTimeThe duration of the sample. If a single struct applies to each of the samples, they all will have this duration.
presentationTimeStamp: CMTimeThe time at which the sample will be presented. If a single struct applies to each of the samples, this is the presentationTime of the first sample. The presentationTime of subsequent samples will be derived by repeatedly adding the sample duration.
decodeTimeStamp: CMTimeThe time at which the sample will be decoded. If the samples are in presentation order (eg. audio samples, or video samples from a codec that doesn’t support out-of-order samples), this can be set to kCMTimeInvalid.
Trait Implementations§
Source§impl Clone for CMSampleTimingInfo
impl Clone for CMSampleTimingInfo
Source§fn clone(&self) -> CMSampleTimingInfo
fn clone(&self) -> CMSampleTimingInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CMSampleTimingInfo
impl Debug for CMSampleTimingInfo
Source§impl Encode for CMSampleTimingInfo
Available on crate feature objc2 only.
impl Encode for CMSampleTimingInfo
objc2 only.Source§impl PartialEq for CMSampleTimingInfo
impl PartialEq for CMSampleTimingInfo
Source§impl RefEncode for CMSampleTimingInfo
Available on crate feature objc2 only.
impl RefEncode for CMSampleTimingInfo
objc2 only.