Contents

CVBufferCopyAttachment(_:_:_:)

Returns a copy of an attachment from a Core Video buffer.

Declaration

func CVBufferCopyAttachment(_ buffer: CVBuffer, _ key: CFString, _ attachmentMode: UnsafeMutablePointer<CVAttachmentMode>?) -> CFTypeRef?

Parameters

Return Value

The requested attachment, or nil if no attachment for the specified key exists.

Discussion

This function returns a retained attachment value, which you need to release when you’re done with it.

See Also

Working with attachments