![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qwindowsd3d11texturereadback_p.h>
Public Member Functions | |
| QAbstractVideoBuffer::MapData | map (const ComPtr< ID3D11Device > &, const ComPtr< ID3D11Texture2D > &, const QSize &frameSize) |
| void | unmap () |
Copies a D3D11 texture into a CPU-accessible staging texture so that its pixels can be read back, e.g. to implement QAbstractVideoBuffer::map() as a fallback when GPU import into the sink's QRhi is unavailable.
Definition at line 35 of file qwindowsd3d11texturereadback_p.h.
| QAbstractVideoBuffer::MapData QtMultimediaPrivate::QWindowsD3D11TextureReadback::map | ( | const ComPtr< ID3D11Device > & | device, |
| const ComPtr< ID3D11Texture2D > & | texture, | ||
| const QSize & | frameSize ) |
Maps 'texture', owned by 'device', for CPU read access. 'frameSize' is the region of the texture that holds valid frame data. Returns an empty MapData on failure. Must be paired with a call to unmap(). Only one mapping may be active at a time.
Definition at line 18 of file qwindowsd3d11texturereadback.cpp.
| void QtMultimediaPrivate::QWindowsD3D11TextureReadback::unmap | ( | ) |
Definition at line 63 of file qwindowsd3d11texturereadback.cpp.