Share via


VideoFrame.CreateAsDirect3D11SurfaceBacked メソッド

定義

オーバーロード

CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat, Int32, Int32)

イメージ データが既定の Direct3D デバイスによって割り当てられた IDXGISurface に格納される VideoFrame クラスの新しいインスタンスを作成します。

CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat, Int32, Int32, IDirect3DDevice)

指定された Direct3D デバイスによって割り当てられた IDXGISurface にイメージ データが格納される VideoFrame クラスの新しいインスタンスを作成します。

CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat, Int32, Int32)

イメージ データが既定の Direct3D デバイスによって割り当てられた IDXGISurface に格納される VideoFrame クラスの新しいインスタンスを作成します。

public:
 static VideoFrame ^ CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat format, int width, int height);
/// [Windows.Foundation.Metadata.Overload("CreateAsDirect3D11SurfaceBacked")]
 static VideoFrame CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat const& format, int const& width, int const& height);
[Windows.Foundation.Metadata.Overload("CreateAsDirect3D11SurfaceBacked")]
public static VideoFrame CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat format, int width, int height);
function createAsDirect3D11SurfaceBacked(format, width, height)
Public Shared Function CreateAsDirect3D11SurfaceBacked (format As DirectXPixelFormat, width As Integer, height As Integer) As VideoFrame

パラメーター

format
DirectXPixelFormat

DirectXPixelFormat 列挙の値。作成された VideoFrame のピクセル形式を指定します。 すべてのピクセル形式がサポートされているわけではありません。 詳細については、次の「解説」を参照してください。

width
Int32

int

作成された VideoFrame の幅 (ピクセル単位)。

height
Int32

int

作成された VideoFrame の高さ (ピクセル単位)。

戻り値

VideoFrame

属性

Windows の要件

デバイス ファミリ
Windows 10, version 1803 (10.0.17134.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v6.0 で導入)

注釈

DirectXPixelFormat 列挙で定義されている次のピクセル形式は、VideoFrame でサポートされています。

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

その他のすべての形式はサポートされていません。 サポートされていない形式の VideoFrame を作成しようとすると、COM 例外でメソッドが失敗します。

このメソッド CreateAsDirect3D11SurfaceBacked のオーバーロードを使用すると、ビデオ フレームのバッキング サーフェスの割り当てに使用される IDirect3DDevice を指定できます。

適用対象

CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat, Int32, Int32, IDirect3DDevice)

指定された Direct3D デバイスによって割り当てられた IDXGISurface にイメージ データが格納される VideoFrame クラスの新しいインスタンスを作成します。

public:
 static VideoFrame ^ CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat format, int width, int height, IDirect3DDevice ^ device);
/// [Windows.Foundation.Metadata.Overload("CreateAsDirect3D11SurfaceBackedWithDevice")]
 static VideoFrame CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat const& format, int const& width, int const& height, IDirect3DDevice const& device);
[Windows.Foundation.Metadata.Overload("CreateAsDirect3D11SurfaceBackedWithDevice")]
public static VideoFrame CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat format, int width, int height, IDirect3DDevice device);
function createAsDirect3D11SurfaceBacked(format, width, height, device)
Public Shared Function CreateAsDirect3D11SurfaceBacked (format As DirectXPixelFormat, width As Integer, height As Integer, device As IDirect3DDevice) As VideoFrame

パラメーター

format
DirectXPixelFormat

DirectXPixelFormat 列挙の値。作成された VideoFrame のピクセル形式を指定します。 すべてのピクセル形式がサポートされているわけではありません。 詳細については、次の「解説」を参照してください。

width
Int32

int

作成された VideoFrame の幅 (ピクセル単位)。

height
Int32

int

作成された VideoFrame の高さ (ピクセル単位)。

device
IDirect3DDevice

ビデオ フレームのバッキング サーフェスの割り当てに使用される IDirect3DDevice

戻り値

VideoFrame

属性

Windows の要件

デバイス ファミリ
Windows 10, version 1803 (10.0.17134.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v6.0 で導入)

注釈

DirectXPixelFormat 列挙で定義されている次のピクセル形式は、VideoFrame でサポートされています。

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

その他のすべての形式はサポートされていません。 サポートされていない形式の VideoFrame を作成しようとすると、COM 例外でメソッドが失敗します。

device パラメーターが null の場合、既定の Direct3D デバイスを使用して IDXGISurface が割り当てられます。

適用対象