CMSampleBuffer.CreateWithNewTiming Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.