IMFVideoSampleAllocatorEx 介面 (mfidl.h)

配置包含 Microsoft Direct3D 11 紋理表面的影片範例。

繼承

IMFVideoSampleAllocatorEx 介面繼承自 IMFVideoSampleAllocatorIMFVideoSampleAllocatorEx 也有下列類型的成員:

方法

IMFVideoSampleAllocatorEx 介面具有這些方法。

 
IMFVideoSampleAllocatorEx::InitializeSampleAllocatorEx

初始化影片範例配置器物件。

備註

您可以使用這個介面來配置 Direct3D 11 影片範例,而不是直接配置紋理表面和媒體樣本。 若要取得這個介面的指標,請呼叫 MFCreateVideoSampleAllocatorEx 函式。

若要配置影片範例,請執行下列步驟:

  1. 取得 IMFDXGIDeviceManager 介面的指標。 對於媒體基礎轉換 (MFT) ,此步驟會在 MFT_MESSAGE_SET_D3D_MANAGER 事件期間發生。
  2. 呼叫 MFCreateVideoSampleAllocatorEx 以建立配置器物件,並取得 IMFVideoSampleAllocatorEx 介面的指標。
  3. 在配置器上呼叫 IMFVideoSampleAllocator::SetDirectXManager ,在配置器上設定 IMFDXGIDeviceManager 指標。
  4. 呼叫 MFCreateAttributes 以取得 IMFAttributes 介面的指標。
  5. 設定 MF_SA_D3D11_USAGEMF_SA_D3D11_BINDFLAGS 屬性。
  6. 呼叫 IMFVideoSampleAllocator::InitializeSampleAllocatorEx

規格需求

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

另請參閱

IMFVideoSampleAllocator

媒體基礎介面