Creates an object that allocates video samples that are compatible with Microsoft DirectX Graphics Infrastructure (DXGI).
HRESULT MFCreateVideoSampleAllocatorEx(
REFIID riid,
void **ppSampleAllocator
)
riid
Type: REFIID
[in] The identifier of the interface to retrieve. Specify one of the following values.
ppSampleAllocator
Type: void **
[out] Receives a pointer to the requested interface. The caller must release the interface.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Refer to Media Foundation return codes.
This function creates an allocator for Microsoft DirectX Graphics Infrastructure (DXGI) video surfaces. The buffers created by this allocator expose the IMFDXGIBuffer interface. To create an allocator for Microsoft Direct3D 9 video surfaces, call MFCreateVideoSampleAllocator.
Header: Declared in mfapi.h.
Library: Use mfplat.lib.