Sample Buffer Attachment Keys

Buffer-level attachments associated with a sample buffer.

Overview

To get and set a sample buffer’s buffer-level attachments, use the functions described in CMAttachment.

Topics

Constants

kCMSampleBufferAttachmentKey_ForceKeyFrame

Indicates that the current or next video sample buffer should be forced to be encoded as a key frame.

kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo

Indicates information about the lens stabilization applied to the current still image buffer.

kCMSampleBufferAttachmentKey_ResetDecoderBeforeDecoding

Indicates whether the sample buffer should be reset before decoding (type CFBoolean, default false).

kCMSampleBufferAttachmentKey_DrainAfterDecoding

Indicates whether the sample buffer should be drained after decoding type CFBoolean, default false).

kCMSampleBufferAttachmentKey_PostNotificationWhenConsumed

If present, indicates that decode pipelines should post a notification when consuming the sample buffer(type CFDictionary).

kCMSampleBufferAttachmentKey_ResumeOutput

If present, indicates that output should be resumed following a discontinuity CFBoolean, default false).

kCMSampleBufferAttachmentKey_TransitionID

Marks a transition from one source of buffers to another.

kCMSampleBufferAttachmentKey_TrimDurationAtStart

The duration that should be removed at the beginning of the sample buffer, after decoding.

kCMSampleBufferAttachmentKey_TrimDurationAtEnd

The duration that should be removed at the end of the sample buffer, after decoding.

kCMSampleBufferAttachmentKey_SpeedMultiplier

The factor by which the sample buffer's presentation should be accelerated (type CFNumber, default 1.0).

kCMSampleBufferAttachmentKey_Reverse

Indicates that the decoded contents of the sample buffer should be reversed (type CFBoolean, default false).

kCMSampleBufferAttachmentKey_FillDiscontinuitiesWithSilence

Fill the difference between discontiguous sample buffers with silence (type CFBoolean, default false).

kCMSampleBufferAttachmentKey_EmptyMedia

Marks an intentionally empty interval in the sequence of samples (type CFBoolean, default false).

kCMSampleBufferAttachmentKey_PermanentEmptyMedia

Marks the end of the sequence of samples (type CFBoolean, default false).

kCMSampleBufferAttachmentKey_DisplayEmptyMediaImmediately

Tells that the empty marker should be dequeued immediately regardless of its timestamp (type CFBoolean, default false).

kCMSampleBufferAttachmentKey_EndsPreviousSampleDuration

Indicates that sample buffer's decode timestamp may be used to define the previous sample buffer's duration (type CFBoolean, default false).

kCMSampleBufferAttachmentKey_SampleReferenceURL

Indicates the URL where the sample data is (type CFURL).

kCMSampleBufferAttachmentKey_SampleReferenceByteOffset

Indicates the byte offset at which the sample data begins (type CFNumber).

kCMSampleBufferAttachmentKey_GradualDecoderRefresh

Indicates the decoder refresh count (type CFNumber).

kCMSampleBufferAttachmentKey_DroppedFrameReason

Indicates the reason the current video frame was dropped (type CFString).

kCMSampleBufferAttachmentKey_DroppedFrameReasonInfo

Indicates additional information regarding the dropped video frame (type CFString).