Share via


IMFVideoSampleAllocator 介面 (mfidl.h)

為視訊媒體接收配置影片範例。

增強式視訊轉譯器上的數據流接收 (EVR) 將此介面公開為服務。 若要取得介面的指標,請使用服務標識符MR_VIDEO_ACCELERATION_SERVICE呼叫 IMFGetService::GetService 。 自定義媒體接收也可以實作這個介面。 除非上游譯碼器支援 DirectX 影片加速 (DXVA) ,否則媒體會話會使用此介面來配置 EVR 的範例。

繼承

IMFVideoSampleAllocator 介面繼承自 IUnknown 介面。 IMFVideoSampleAllocator 也有下列類型的成員:

方法

IMFVideoSampleAllocator 介面具有這些方法。

 
IMFVideoSampleAllocator::AllocateSample

從配置器取得影片範例。
IMFVideoSampleAllocator::InitializeSampleAllocator

指定要配置的樣本數目,以及樣本的媒體類型。
IMFVideoSampleAllocator::SetDirectXManager

指定要使用之視訊媒體接收的 Direct3D 設備管理員。
IMFVideoSampleAllocator::UninitializeSampleAllocator

釋放已配置的所有影片範例。

規格需求

需求
最低支援的用戶端 Windows Vista [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 mfidl.h

另請參閱

媒體基礎介面