Contents

CVBufferCopyAttachments(_:_:)

Returns a copy of all attachments from a Core Video buffer.

Declaration

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

Parameters

  • buffer:

    A buffer with attachments to copy.

  • attachmentMode:

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

Return Value

A dictionary of all attachments identified by their keys, or nil if no attachment is present or you specify an invalid attachment mode.

Discussion

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

See Also

Working with attachments