VideoFrame.CreateWithDirect3D11Surface(IDirect3DSurface) 메서드

정의

제공된 IDXGISurface에 이미지 데이터가 저장되는 VideoFrame 클래스의 새 instance 만듭니다.

public:
 static VideoFrame ^ CreateWithDirect3D11Surface(IDirect3DSurface ^ surface);
 static VideoFrame CreateWithDirect3D11Surface(IDirect3DSurface const& surface);
public static VideoFrame CreateWithDirect3D11Surface(IDirect3DSurface surface);
function createWithDirect3D11Surface(surface)
Public Shared Function CreateWithDirect3D11Surface (surface As IDirect3DSurface) As VideoFrame

매개 변수

surface
IDirect3DSurface

이미지 데이터가 저장되는 IDXGISurface 입니다.

반환

VideoFrame.

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1803 (10.0.17134.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v6.0에서 도입되었습니다.)

설명

surface 매개 변수가 null이면 인수 예외가 발생합니다. 제공된 IDXGISurface 는 지원되는 픽셀 형식 중 하나를 사용해야 합니다. VideoFrame 은 다음 DirectXPixelFormat 값에 해당하는 형식을 지원합니다.

  • DirectXPixelFormat_R16G16B16A16UIntNormalized
  • DirectXPixelFormat_R8G8B8A8UIntNormalized
  • DirectXPixelFormat_B8G8R8X8UIntNormalized
  • DirectXPixelFormat_B8G8R8A8UIntNormalized
  • DirectXPixelFormat_NV12
  • DirectXPixelFormat_P010
  • DirectXPixelFormat_Yuy2
  • DirectXPixelFormat_R16UIntNormalized
  • DirectXPixelFormat_R8UIntNormalized

다른 모든 형식은 지원되지 않습니다. 지원되지 않는 형식의 표면을 지정하면 COM 예외가 throw됩니다.

적용 대상