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::QWindowsD3D11TextureReadback Class Reference

#include <qwindowsd3d11texturereadback_p.h>

Collaboration diagram for QtMultimediaPrivate::QWindowsD3D11TextureReadback:

Public Member Functions

QAbstractVideoBuffer::MapData map (const ComPtr< ID3D11Device > &, const ComPtr< ID3D11Texture2D > &, const QSize &frameSize)
void unmap ()

Detailed Description

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.

Member Function Documentation

◆ map()

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.

◆ unmap()

void QtMultimediaPrivate::QWindowsD3D11TextureReadback::unmap ( )

Definition at line 63 of file qwindowsd3d11texturereadback.cpp.


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