IMFVideoSampleAllocator interface

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

Members

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

Methods

The IMFVideoSampleAllocator interface has these methods.

MethodDescription
AllocateSample

Gets a video sample from the allocator.

InitializeSampleAllocator

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

SetDirectXManager

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

UninitializeSampleAllocator

Releases all of the video samples that have been allocated.

 

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

Media Foundation Interfaces

 

 

Community Additions

ADD
Show:
© 2014 Microsoft