Class DirectX
DirectX interoperability
public static class DirectX
- Inheritance
-
DirectX
- Inherited Members
Methods
ConvertFromD3D10Texture2D(nint, IOutputArray)
Converts ID3D10Texture2D to OutputArray.
public static void ConvertFromD3D10Texture2D(nint pD3D10Texture2D, IOutputArray dst)
Parameters
pD3D10Texture2D
nintSource D3D10 texture
dst
IOutputArrayDestination OutputArray
ConvertFromD3D11Texture2D(nint, IOutputArray)
Converts ID3D11Texture2D to OutputArray. If input texture format is DXGI_FORMAT_NV12 then data will be upsampled and color-converted to BGR format.
public static void ConvertFromD3D11Texture2D(nint pD3D11Texture2D, IOutputArray dst)
Parameters
pD3D11Texture2D
nintSource D3D11 texture
dst
IOutputArrayDestination OutputArray
ConvertFromDirect3DSurface9(nint, IOutputArray, nint)
Converts IDirect3DSurface9 to OutputArray.
public static void ConvertFromDirect3DSurface9(nint pDirect3DSurface9, IOutputArray dst, nint surfaceSharedHandle)
Parameters
pDirect3DSurface9
nintSource texture
dst
IOutputArrayDestination OutputArray
surfaceSharedHandle
nintShared handle
ConvertToD3D10Texture2D(IInputArray, nint)
Converts InputArray to ID3D10Texture2D.
public static void ConvertToD3D10Texture2D(IInputArray src, nint pD3D10Texture2D)
Parameters
src
IInputArraySource InputArray
pD3D10Texture2D
nintDestination D3D10 texture
ConvertToD3D11Texture2D(IInputArray, nint)
Converts InputArray to ID3D11Texture2D. If destination texture format is DXGI_FORMAT_NV12 then input UMat expected to be in BGR format and data will be downsampled and color-converted to NV12.
public static void ConvertToD3D11Texture2D(IInputArray src, nint pD3D11Texture2D)
Parameters
src
IInputArraySource InputArray
pD3D11Texture2D
nintDestination D3D11 texture
ConvertToDirect3DSurface9(IInputArray, nint, nint)
Converts InputArray to IDirect3DSurface9
public static void ConvertToDirect3DSurface9(IInputArray src, nint pDirect3DSurface9, nint surfaceSharedHandle)
Parameters
src
IInputArraySource InputArray
pDirect3DSurface9
nintDestination D3D10 texture
surfaceSharedHandle
nintShared handle