![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qwindowsd3d11planesplitter_p.h>
Classes | |
| struct | Plane |
Public Member Functions | |
| ~QWindowsD3D11PlaneSplitter () | |
| std::optional< std::vector< Plane > > | split (ID3D11Device *, ID3D11DeviceContext *, const ComPtr< ID3D11Texture2D > &texture, UINT subresourceIndex, const QSize &frameSize, QVideoFrameFormat::PixelFormat pixelFormat) |
Static Public Member Functions | |
| static std::unique_ptr< QWindowsD3D11PlaneSplitter > | create (ID3D11Device *device) |
| static bool | isPixelFormatSupported (QVideoFrameFormat::PixelFormat) |
Splits one array slice of a multi-planar D3D11 texture (NV12, P010) into one single-plane texture per plane, cropped to a given frame size, for import into single-plane-only QRhi backends. Planes are copied with a texel-fetch shader because D3D11 rejects direct copies between planar and single-channel formats. Instances are bound to one device: create them with create(), which returns null if the shaders cannot be created.
Definition at line 41 of file qwindowsd3d11planesplitter_p.h.
|
default |
|
static |
Definition at line 53 of file qwindowsd3d11planesplitter.cpp.
|
static |
Definition at line 41 of file qwindowsd3d11planesplitter.cpp.
| std::optional< std::vector< QWindowsD3D11PlaneSplitter::Plane > > QtMultimediaPrivate::QWindowsD3D11PlaneSplitter::split | ( | ID3D11Device * | device, |
| ID3D11DeviceContext * | context, | ||
| const ComPtr< ID3D11Texture2D > & | texture, | ||
| UINT | subresourceIndex, | ||
| const QSize & | frameSize, | ||
| QVideoFrameFormat::PixelFormat | pixelFormat ) |
Definition at line 132 of file qwindowsd3d11planesplitter.cpp.