CVBufferGetAttachment(_:_:_:)
Retrieves a specific attachment of a Core Video buffer.
Declaration
func CVBufferGetAttachment(_ buffer: CVBuffer, _ key: CFString, _ attachmentMode: UnsafeMutablePointer<CVAttachmentMode>?) -> Unmanaged<CFTypeRef>?Parameters
- buffer:
The buffer whose attachment you want to retrieve.
- key:
A string that identifies the attachment, which can be of any Cftyperef. See Cvbuffer Attachment Keys and Image Buffer Attachment Keys for predefined values.
- attachmentMode:
On output, this value points to the mode of the attachment. See Cvattachmentmode for possible values. This value is Nil 227m0 if the buffer doesn’t define an attachment mode.
Return Value
The specified attachment, if it exists.