CMBufferQueueGetFirstDecodeTimeStamp(_:)
Gets the decode timestamp of the first buffer in a buffer queue.
Declaration
func CMBufferQueueGetFirstDecodeTimeStamp(_ queue: CMBufferQueue) -> CMTimeParameters
- queue:
CMBufferQueuebeing interrogated.
Return Value
The decode timestamp of the first buffer in the interrogated CMBufferQueue.
Discussion
This API is is a faster alternative to CMBufferQueueIsEmpty(_:), but only gives the same answer if your queue is in decode order. If the getDecodeTimeStamp callback is NULL, kCMTimeInvalid will be returned.
See Also
Inspecting Duration and Timing
CMBufferQueueGetDuration(_:)CMBufferQueueGetMinDecodeTimeStamp(_:)CMBufferQueueGetMinPresentationTimeStamp(_:)CMBufferQueueGetFirstPresentationTimeStamp(_:)CMBufferQueueGetEndPresentationTimeStamp(_:)CMBufferQueueGetMaxPresentationTimeStamp(_:)CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS()CMBufferQueueGetCallbacksForUnsortedSampleBuffers()