Edit

Share via


CMSampleBuffer.CreateWithNewTiming Method

Definition

Overloads

CreateWithNewTiming(CMSampleBuffer, CMSampleTimingInfo[])

Clones a sample buffer, using the provided timing information.

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.

public static CoreMedia.CMSampleBuffer CreateWithNewTiming (CoreMedia.CMSampleBuffer original, CoreMedia.CMSampleTimingInfo[] timing);
static member CreateWithNewTiming : CoreMedia.CMSampleBuffer * CoreMedia.CMSampleTimingInfo[] -> CoreMedia.CMSampleBuffer

Parameters

original
CMSampleBuffer

The existing sample buffer providing the default values for the new sample buffer.

timing
CMSampleTimingInfo[]

The timing information for the new sample buffer.

Returns

An identical sample buffer as the original one, except with the provided timing information.

Applies to

CreateWithNewTiming(CMSampleBuffer, CMSampleTimingInfo[], nint)

Clones a sample buffer, using the provided timing information.

public static CoreMedia.CMSampleBuffer CreateWithNewTiming (CoreMedia.CMSampleBuffer original, CoreMedia.CMSampleTimingInfo[] timing, out nint status);
static member CreateWithNewTiming : CoreMedia.CMSampleBuffer * CoreMedia.CMSampleTimingInfo[] *  -> CoreMedia.CMSampleBuffer

Parameters

original
CMSampleBuffer

The existing sample buffer providing the default values for the new sample buffer.

timing
CMSampleTimingInfo[]

The timing information for the new sample buffer.

status
System.System.IntPtr System.nativeint

The error code if an error occurs, 0 otherwise.

Returns

An identical sample buffer as the original one, except with the provided timing information. If an error occurs null will be returned and the 'status' parameter will contain the error code.

Applies to