IMFVideoSampleAllocatorEx interface (mfidl.h)

Allocates video samples that contain Microsoft Direct3D 11 texture surfaces.

Inheritance

The IMFVideoSampleAllocatorEx interface inherits from IMFVideoSampleAllocator. IMFVideoSampleAllocatorEx also has these types of members:

Methods

The IMFVideoSampleAllocatorEx interface has these methods.

 
IMFVideoSampleAllocatorEx::InitializeSampleAllocatorEx

Initializes the video sample allocator object.

Remarks

You can use this interface to allocate Direct3D 11 video samples, rather than allocate the texture surfaces and media samples directly. To get a pointer to this interface, call the MFCreateVideoSampleAllocatorEx function.

To allocate video samples, perform the following steps:

  1. Obtain a pointer to the IMFDXGIDeviceManager interface. For a Media Foundation transform (MFT), this step occurs during the MFT_MESSAGE_SET_D3D_MANAGER event.
  2. Call MFCreateVideoSampleAllocatorEx to create the allocator object and get a pointer to the IMFVideoSampleAllocatorEx interface.
  3. Call IMFVideoSampleAllocator::SetDirectXManager on the allocator to set the IMFDXGIDeviceManager pointer on the allocator.
  4. Call MFCreateAttributes to get a pointer to the IMFAttributes interface.
  5. Set the MF_SA_D3D11_USAGE and MF_SA_D3D11_BINDFLAGS attributes.
  6. Call IMFVideoSampleAllocator::InitializeSampleAllocatorEx.

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

IMFVideoSampleAllocator

Media Foundation Interfaces