Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtMultimediaPrivate::QWindowsD3D11VideoProcessor Class Reference

#include <qwindowsd3d11videoprocessor_p.h>

Collaboration diagram for QtMultimediaPrivate::QWindowsD3D11VideoProcessor:

Public Member Functions

 QWindowsD3D11VideoProcessor ()
 ~QWindowsD3D11VideoProcessor ()
ComPtr< ID3D11Texture2D > convertToBGRA (ID3D11Device *, ID3D11DeviceContext *context, const ComPtr< ID3D11Texture2D > &texture, const QSize &frameSize, QVideoFrameFormat::ColorSpace colorSpace, QVideoFrameFormat::ColorRange colorRange, QVideoFrameFormat::ColorTransfer colorTransfer, UINT subresourceIndex=0)

Static Public Member Functions

static bool isPixelFormatSupported (QVideoFrameFormat::PixelFormat)

Detailed Description

Converts an NV12 or P010 D3D11 texture into a BGRA8 texture on the same D3D11 device, using the fixed-function ID3D11VideoProcessor. Single-plane output is required for import into non-D3D11 QRhi backends (see QWindowsD3D11RhiTextureImporter). HDR input is tone-mapped to SDR by the processor; the output is always 8-bit BGRA8.

Definition at line 36 of file qwindowsd3d11videoprocessor_p.h.

Constructor & Destructor Documentation

◆ QWindowsD3D11VideoProcessor()

QtMultimediaPrivate::QWindowsD3D11VideoProcessor::QWindowsD3D11VideoProcessor ( )
default

◆ ~QWindowsD3D11VideoProcessor()

QtMultimediaPrivate::QWindowsD3D11VideoProcessor::~QWindowsD3D11VideoProcessor ( )
default

Member Function Documentation

◆ convertToBGRA()

ComPtr< ID3D11Texture2D > QtMultimediaPrivate::QWindowsD3D11VideoProcessor::convertToBGRA ( ID3D11Device * device,
ID3D11DeviceContext * context,
const ComPtr< ID3D11Texture2D > & texture,
const QSize & frameSize,
QVideoFrameFormat::ColorSpace colorSpace,
QVideoFrameFormat::ColorRange colorRange,
QVideoFrameFormat::ColorTransfer colorTransfer,
UINT subresourceIndex = 0 )

Definition at line 166 of file qwindowsd3d11videoprocessor.cpp.

◆ isPixelFormatSupported()

bool QtMultimediaPrivate::QWindowsD3D11VideoProcessor::isPixelFormatSupported ( QVideoFrameFormat::PixelFormat pixelFormat)
static

Definition at line 64 of file qwindowsd3d11videoprocessor.cpp.


The documentation for this class was generated from the following files: