IMFVideoSampleAllocator interface (mfidl.h)

Allocates video samples for a video media sink.

The stream sinks on the enhanced video renderer (EVR) expose this interface as a service. To obtain a pointer to the interface, call IMFGetService::GetService using the service identifier MR_VIDEO_ACCELERATION_SERVICE. Custom media sinks can also implement this interface. The Media Session uses this interface to allocate samples for the EVR, unless the upstream decoder supports DirectX Video Acceleration (DXVA).


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


The IMFVideoSampleAllocator interface has these methods.


Gets a video sample from the allocator.

Specifies the number of samples to allocate and the media type for the samples.

Specifies the Direct3D device manager for the video media sink to use.

Releases all of the video samples that have been allocated.


Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h

See also

Media Foundation Interfaces