Skip to content

Latest commit

 

History

History
80 lines (65 loc) · 3.76 KB

nn-mfidl-imfvideosampleallocatorex.md

File metadata and controls

80 lines (65 loc) · 3.76 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NN:mfidl.IMFVideoSampleAllocatorEx
IMFVideoSampleAllocatorEx (mfidl.h)
Allocates video samples that contain Microsoft Direct3D 11 texture surfaces.
IMFVideoSampleAllocatorEx
IMFVideoSampleAllocatorEx interface [Media Foundation]
IMFVideoSampleAllocatorEx interface [Media Foundation]
described
mf.imfvideosampleallocatorex
mfidl/IMFVideoSampleAllocatorEx
mf\imfvideosampleallocatorex.htm
mf
B621F413-001B-4419-8FA7-439C45F97243
12/05/2018
IMFVideoSampleAllocatorEx, IMFVideoSampleAllocatorEx interface [Media Foundation], IMFVideoSampleAllocatorEx interface [Media Foundation],described, mf.imfvideosampleallocatorex, mfidl/IMFVideoSampleAllocatorEx
mfidl.h
Windows
Windows 8 [desktop apps \| UWP apps]
Windows Server 2012 [desktop apps \| UWP apps]
Windows
19H1
IMFVideoSampleAllocatorEx
mfidl/IMFVideoSampleAllocatorEx
c++
APIRef
kbSyntax
COM
mfidl.h
IMFVideoSampleAllocatorEx

IMFVideoSampleAllocatorEx interface

-description

Allocates video samples that contain Microsoft Direct3D 11 texture surfaces.

-inheritance

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

-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.

-see-also

IMFVideoSampleAllocator

Media Foundation Interfaces