CVBuffer

An abstract base class that defines how to interact with data buffers.

Overview

A CVBuffer serves as an abstract base class that defines how to interact with buffers of data. A buffer object can hold video, audio, or possibly other types of data. All the other buffer types defined by Core Video, such as CVImageBuffer and CVPixelBuffer, are derived from CVBuffer. You can use the CVBuffer programming interface on any Core Video buffer.

Topics

Working with Attachments

CVBufferGetAttachment

Retrieves a specific attachment of a Core Video buffer .

CVBufferGetAttachments

Retrieves all attachments of a Core Video buffer.

CVBufferSetAttachment

Sets or adds an attachment to a Core Video buffer.

CVBufferSetAttachments

Sets a dictionary of attachments on a Core Video buffer.

CVBufferRemoveAttachment

Removes a specific attachment from a Core Video buffer.

CVBufferRemoveAllAttachments

Removes all attachments from a Core Video buffer.

CVBufferPropagateAttachments

Copies all attachments that can be propagated from one Core Video buffer to another.

Retaining and Releasing Buffers

CVBufferRetain

Retains a Core Video buffer.

CVBufferRelease

Releases a Core Video buffer.

Data Types

CVBufferRef

A reference to a Core Video buffer.

CVAttachmentMode

The propagation modes of a Core Video buffer attachment.

Constants

CVBuffer Attribute Keys

The attributes associated with Core Video buffers.

CVBuffer Attachment Keys

The attachment types for a Core Video buffer.

See Also

Data Processing

CVImageBuffer

An interface for managing different types of image data.

CVPixelBuffer

An image buffer that holds pixels in main memory.

CVPixelBufferPool

A utility object for managing a recyclable set of pixel buffer objects.

CVPixelFormatDescription

An API that provides functions and types for defining custom pixel formats.