Contents

CMBufferQueueGetFirstDecodeTimeStamp(_:)

Gets the decode timestamp of the first buffer in a buffer queue.

Declaration

func CMBufferQueueGetFirstDecodeTimeStamp(_ queue: CMBufferQueue) -> CMTime

Parameters

  • queue:

    CMBufferQueue being 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