MFSplitSample function (mfapi.h)

Split up a combined media sample back into individual samples.

Syntax

HRESULT MFSplitSample(
  IMFSample *pSample,
  IMFSample **pOutputSamples,
  DWORD     dwOutputSampleMaxCount,
  DWORD     *pdwOutputSampleCount
);

Parameters

pSample

A pointer to an IMFSample representing a combined sample to be split.

pOutputSamples

Receives a pointer to an array of output samples from the split operation.

dwOutputSampleMaxCount

The maximum output array size. Call IMFSample::GetBufferCount on the sample provided in pSample to find out an upper bound.

pdwOutputSampleCount

Output parameter that receives the number of samples contained in the pOutputSamples array.

Remarks

Combine samples by calling MFCombineSamples

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004 (10.0; Build 19041)
Minimum supported server Windows Server, version 2004 (10.0; Build 19041)
Header mfapi.h
Library Mfplat.lib
DLL Mfplat.dll