getDecodeTimeStamp
Client callback that returns a CMTime from a CMBuffer.
Declaration
var getDecodeTimeStamp: CMBufferGetTimeCallback?Discussion
This callback is called once from CMBufferQueueGetFirstDecodeTimeStamp(_:) and multiple times from CMBufferQueueGetMinDecodeTimeStamp(_:).
It should return the decode timestamp of the buffer. If there are multiple samples in the buffer, this callback should return the minimum decode timestamp in the buffer.
This can be NULL (CMBufferQueueGetFirstDecodeTimeStamp(_:) and CMBufferQueueGetMinDecodeTimeStamp(_:) will return kCMTimeInvalid).