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

Inheritance

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

Methods

The IMFVideoSampleAllocator interface has these methods.

 
IMFVideoSampleAllocator::AllocateSample

Gets a video sample from the allocator.
IMFVideoSampleAllocator::InitializeSampleAllocator

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

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

Releases all of the video samples that have been allocated.

Requirements

Requirement Value
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