CMSampleBuffer Class

Definition

A container of zero-or-more samples of a particular media type.

public class CMSampleBuffer : CoreMedia.ICMAttachmentBearer, IDisposable
type CMSampleBuffer = class
    interface ICMAttachmentBearer
    interface INativeObject
    interface IDisposable
Inheritance
CMSampleBuffer
Implements

Properties

DataIsReady
DecodeTimeStamp
Duration
Handle

Handle (pointer) to the unmanaged object representation.

IsValid
NumSamples
OutputDecodeTimeStamp
OutputDuration
OutputPresentationTimeStamp
PresentationTimeStamp
TotalSampleSize

Methods

CallForEachSample(Func<CMSampleBuffer,Int32,CMSampleBufferError>)
CopyPCMDataIntoAudioBufferList(Int32, Int32, AudioBuffers)
CreateForImageBuffer(CVImageBuffer, Boolean, CMVideoFormatDescription, CMSampleTimingInfo, CMSampleBufferError)
CreateReady(CMBlockBuffer, CMFormatDescription, Int32, CMSampleTimingInfo[], nuint[], CMSampleBufferError)
CreateReadyWithImageBuffer(CVImageBuffer, CMFormatDescription, CMSampleTimingInfo, CMSampleBufferError)
CreateReadyWithImageBuffer(CVImageBuffer, CMFormatDescription, CMSampleTimingInfo[], CMSampleBufferError)
CreateReadyWithPacketDescriptions(CMBlockBuffer, CMFormatDescription, Int32, CMTime, AudioStreamPacketDescription[], CMSampleBufferError)
CreateWithNewTiming(CMSampleBuffer, CMSampleTimingInfo[], nint)

Clones a sample buffer, using the provided timing information.

CreateWithNewTiming(CMSampleBuffer, CMSampleTimingInfo[])

Clones a sample buffer, using the provided timing information.

CreateWithPacketDescriptions(CMBlockBuffer, CMFormatDescription, Int32, CMTime, AudioStreamPacketDescription[], CMSampleBufferError)
Dispose()

Releases the resources used by the CMSampleBuffer object.

Dispose(Boolean)

Releases the resources used by the CMSampleBuffer object.

Finalize()

Finalizer for the CMSampleBuffer object

GetAudioFormatDescription()
GetDataBuffer()
GetImageBuffer()
GetSampleAttachments(Boolean)
GetSampleSize(nint)
GetSampleTimingInfo()

Fetches the timing information for the sample buffer.

GetSampleTimingInfo(nint)

Fetches the timing information for the sample buffer.

GetTypeID()

Type identifier for the CoreMedia.CMSampleBuffer type.

GetVideoFormatDescription()
Invalidate()
MakeDataReady()
SetDataBuffer(CMBlockBuffer)
SetDataReady()
SetInvalidateCallback(Action<CMSampleBuffer>)
TrackDataReadiness(CMSampleBuffer)

Extension Methods

GetAttachment<T>(ICMAttachmentBearer, CMSampleBufferAttachmentKey, CMAttachmentMode)
GetAttachment<T>(ICMAttachmentBearer, String, CMAttachmentMode)

Returns the attachment that is identifed by key and writes the attachment propagation mode to attachmentModeOut.

GetAttachments(ICMAttachmentBearer, CMAttachmentMode)

Returns an array of all the bearer's attachments and the attachment propagation mode to attachmentMode.

GetAttachments<TKey,TValue>(ICMAttachmentBearer, CMAttachmentMode)
PropagateAttachments(ICMAttachmentBearer, ICMAttachmentBearer)

Propagates the attachments that belong to source and are allowed to propagate to destination.

RemoveAllAttachments(ICMAttachmentBearer)

Removes all of target's attachment.'

RemoveAttachment(ICMAttachmentBearer, String)

Removes the attachment that is identifed by key.

SetAttachment(ICMAttachmentBearer, String, INativeObject, CMAttachmentMode)

Attaches value to the bearer with the specified key and attachmentMode.

SetAttachments(ICMAttachmentBearer, NSDictionary, CMAttachmentMode)

Attaches theAttachments to the bearer with the specified attachmentMode.

Applies to

See also