InitializeSampleAllocatorEx
Collapse the table of content
Expand the table of content

IMFVideoSampleAllocatorEx::InitializeSampleAllocatorEx method

Initializes the video sample allocator object.

Syntax


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

Parameters

cInitialSamples [in]

The initial number of samples to allocate.

cMaximumSamples [in]

The maximum number of samples to allocate.

pAttributes [in]

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

pMediaType [in]

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

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfidl.h

See also

IMFVideoSampleAllocatorEx

 

 

Show:
© 2016 Microsoft