다음을 통해 공유


IMFVideoSampleAllocatorEx 인터페이스(mfidl.h)

Microsoft Direct3D 11 텍스처 표면을 포함하는 비디오 샘플을 할당합니다.

상속

IMFVideoSampleAllocatorEx 인터페이스는 IMFVideoSampleAllocator에서 상속됩니다. IMFVideoSampleAllocatorEx 에는 다음과 같은 유형의 멤버도 있습니다.

메서드

IMFVideoSampleAllocatorEx 인터페이스에는 이러한 메서드가 있습니다.

 
IMFVideoSampleAllocatorEx::InitializeSampleAllocatorEx

비디오 샘플 할당자 개체를 초기화합니다.

설명

이 인터페이스를 사용하여 텍스처 표면 및 미디어 샘플을 직접 할당하는 대신 Direct3D 11 비디오 샘플을 할당할 수 있습니다. 이 인터페이스에 대한 포인터를 얻으려면 MFCreateVideoSampleAllocatorEx 함수를 호출합니다.

비디오 샘플을 할당하려면 다음 단계를 수행합니다.

  1. IMFDXGIDeviceManager 인터페이스에 대한 포인터를 가져옵니다. MFT(Media Foundation 변환)의 경우 이 단계는 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

미디어 파운데이션 인터페이스