CMSampleBuffer 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
CMSampleBufferCMSampleBuffer
Implements

Properties

DataIsReady DataIsReady
DecodeTimeStamp DecodeTimeStamp
Duration Duration
Handle Handle

Handle (pointer) to the unmanaged object representation.

IsValid IsValid
NumSamples NumSamples
OutputDecodeTimeStamp OutputDecodeTimeStamp
OutputDuration OutputDuration
OutputPresentationTimeStamp OutputPresentationTimeStamp
PresentationTimeStamp PresentationTimeStamp
TotalSampleSize TotalSampleSize

Methods

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

Clones a sample buffer, using the provided timing information.

CreateWithNewTiming(CMSampleBuffer, CMSampleTimingInfo[], nint) CreateWithNewTiming(CMSampleBuffer, CMSampleTimingInfo[], nint)

Clones a sample buffer, using the provided timing information.

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

Releases the resources used by the CMSampleBuffer object.

Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the CMSampleBuffer object.

Finalize() Finalize()

Finalizer for the CMSampleBuffer object

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

Fetches the timing information for the sample buffer.

GetSampleTimingInfo(nint) GetSampleTimingInfo(nint)

Fetches the timing information for the sample buffer.

GetTypeID() GetTypeID()

Type identifier for the CoreMedia.CMSampleBuffer type.

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

Extension Methods

GetAttachment<T>(ICMAttachmentBearer, CMSampleBufferAttachmentKey, CMAttachmentMode) GetAttachment<T>(ICMAttachmentBearer, CMSampleBufferAttachmentKey, CMAttachmentMode)
GetAttachment<T>(ICMAttachmentBearer, String, 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) GetAttachments(ICMAttachmentBearer, CMAttachmentMode)

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

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

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

RemoveAllAttachments(ICMAttachmentBearer) RemoveAllAttachments(ICMAttachmentBearer)

Removes all of target's attachment.'

RemoveAttachment(ICMAttachmentBearer, String) RemoveAttachment(ICMAttachmentBearer, String)

Removes the attachment that is identifed by key.

SetAttachment(ICMAttachmentBearer, String, INativeObject, CMAttachmentMode) SetAttachment(ICMAttachmentBearer, String, INativeObject, CMAttachmentMode)

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

SetAttachments(ICMAttachmentBearer, NSDictionary, CMAttachmentMode) SetAttachments(ICMAttachmentBearer, NSDictionary, CMAttachmentMode)

Attaches theAttachments to the bearer with the specified attachmentMode.

Applies to

See also