Contents

CVBufferGetAttachments(_:_:)

Retrieves all attachments of a Core Video buffer.

Declaration

func CVBufferGetAttachments(_ buffer: CVBuffer, _ attachmentMode: CVAttachmentMode) -> CFDictionary?

Parameters

  • buffer:

    The buffer whose attachments you want to retrieve.

  • attachmentMode:

    The mode of the attachments you want to retrieve. See Cvattachmentmode for possible values.

Return Value

A Core Foundation dictionary with all attachments identified by keys, or nil if the attachment mode is invalid. The dictionary is empty if the buffer has no attachments.

See Also

Working with attachments