Function

CMBufferQueueGetTotalSize(_:)

Gets the total size of all sample buffers of a CMBufferQueue.

Declaration

func CMBufferQueueGetTotalSize(_ queue: CMBufferQueue) -> Int

Discussion

The total size of the CMBufferQueue is the sum of all the individual buffer sizes, as reported by the getTotalSize callback (provided to CMBufferQueueCreate(allocator:capacity:callbacks:queueOut:)).

This function returns 0 if there are no buffers in the queue.

See Also

Inspecting Buffer Queues

func CMBufferQueueGetCallbacksForSampleBuffersSortedByOutputPTS() -> UnsafePointer<CMBufferCallbacks>

Returns a pointer to a callback struct for CMSampleBuffers sorted by output presentation timestamp.

func CMBufferQueueGetMaxPresentationTimeStamp(CMBufferQueue) -> CMTime

Gets the greatest presentation timestamp of a CMBufferQueue.

func CMBufferQueueGetCallbacksForUnsortedSampleBuffers() -> UnsafePointer<CMBufferCallbacks>

Returns a pointer to a callback struct for unsorted CMSampleBuffers, provided as a convenience.

func CMBufferQueueGetDuration(CMBufferQueue) -> CMTime

Gets the duration of a CMBufferQueue.

func CMBufferQueueGetEndPresentationTimeStamp(CMBufferQueue) -> CMTime

Gets the greatest end presentation timestamp of a CMBufferQueue.

func CMBufferQueueGetFirstDecodeTimeStamp(CMBufferQueue) -> CMTime

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

func CMBufferQueueGetMinDecodeTimeStamp(CMBufferQueue) -> CMTime

Gets the earliest decode timestamp of a CMBufferQueue.

func CMBufferQueueGetFirstPresentationTimeStamp(CMBufferQueue) -> CMTime

Gets the presentation timestamp of the first buffer in a CMBufferQueue.

func CMBufferQueueGetHead(CMBufferQueue) -> CMBuffer?

Retrieves the next-to-dequeue buffer from a CMBufferQueue but leaves it in the queue.

func CMBufferQueueGetMinPresentationTimeStamp(CMBufferQueue) -> CMTime

Gets the earliest presentation timestamp of a CMBufferQueue.

func CMBufferQueueGetTypeID() -> CFTypeID

Returns the CFTypeID of CMBufferQueue objects.

func CMBufferQueueContainsEndOfData(CMBufferQueue) -> Bool

Returns whether or not a CMBufferQueue has been marked with EndOfData.

func CMBufferQueueIsAtEndOfData(CMBufferQueue) -> Bool

Returns whether or not a CMBufferQueue has been marked with EndOfData, and is now empty.

func CMBufferQueueIsEmpty(CMBufferQueue) -> Bool

Returns whether or not a CMBufferQueue is empty.

func CMBufferQueueTestTrigger(CMBufferQueue, triggerToken: CMBufferQueueTriggerToken) -> Bool

Tests whether the trigger condition is true fot the given CMBufferQueue.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software