IMFVideoSampleAllocatorEx::InitializeSampleAllocatorEx method (mfidl.h)

Initializes the video sample allocator object.

Syntax

HRESULT InitializeSampleAllocatorEx(
  [in] DWORD         cInitialSamples,
  [in] DWORD         cMaximumSamples,
  [in] IMFAttributes *pAttributes,
  [in] IMFMediaType  *pMediaType
);

Parameters

[in] cInitialSamples

The initial number of samples to allocate.

[in] cMaximumSamples

The maximum number of samples to allocate.

[in] pAttributes

A pointer to the IMFAttributes interface. You can use this interface to configure the allocator. Currently, the following configuration attributes are defined:

[in] pMediaType

A pointer to the IMFMediaType interface of a media type that describes the video format.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h

See also

IMFVideoSampleAllocatorEx