CMAttachment

An API for attaching additional metadata to a sample buffer.

Overview

This document describes the Core Media attachment protocol. A CMAttachmentBearer is a CF-based object that supports the suite of key/value/mode attachment APIs. You can attach any CF object to a CMAttachmentBearer object to store additional information.

Topics

Processing Attachments

CMGetAttachment

Returns a specific attachment of a CMAttachmentBearer.

CMSetAttachment

Sets or adds an attachment of a CMAttachmentBearer.

CMSetAttachments

Sets a set of attachments for a CMAttachmentBearer.

CMRemoveAttachment

Removes a specific attachment of a CMAttachmentBearer.

CMRemoveAllAttachments

Removes all attachments of a CMAttachmentBearer.

CMPropagateAttachments

Copies all attachments that can be propagated from one CMAttachmentBearer to another.

CMCopyDictionaryOfAttachments

Returns all attachments of a CMAttachmentBearer.

Data Types

CMAttachmentBearerRef

Type for objects that can bear attachments.

CMAttachmentMode

Type to specify attachment modes.

Constants

Attachment Modes

The propagation modes of a CMAttachmentBearerRef attachment.

See Also

Sample Processing

CMSampleBuffer

An object containing zero or more media samples of a uniform media type.

CMBlockBuffer

An object used to move blocks of memory through a processing system.

CMFormatDescription

A media format descriptor that describes the samples in a sample buffer.