Contents

CMSampleBufferGetOutputDecodeTimeStamp(_:)

Returns the output decode timestamp of a sample buffer.

Declaration

func CMSampleBufferGetOutputDecodeTimeStamp(_ sbuf: CMSampleBuffer) -> CMTime

Parameters

  • sbuf:

    The CMSampleBuffer being interrogated.

Return Value

The output decode timestamp of the CMSampleBuffer or kCMTimeInvalid if there is an error.

Discussion

For consistency with CMSampleBufferGetOutputPresentationTimeStamp(_:), this function calculates the returned value as:

OutputPresentationTimeStamp + ((DecodeTimeStamp - PresentationTimeStamp) / SpeedMultiplier)

See Also

Inspecting Duration and Timing