![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qwindowsd3d11videoprocessor_p.h>
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) |
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.
|
default |
|
default |
| 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.
|
static |
Definition at line 64 of file qwindowsd3d11videoprocessor.cpp.