![]() |
Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qhwvideobuffer_p.h>
Public Member Functions | |
QHwVideoBuffer (QVideoFrame::HandleType type, QRhi *rhi=nullptr) | |
~QHwVideoBuffer () override | |
QVideoFrame::HandleType | handleType () const |
QRhi * | rhi () const |
QVideoFrameFormat | format () const override |
Gets \l QVideoFrameFormat of the underlying video buffer. | |
virtual std::unique_ptr< QVideoFrameTextures > | mapTextures (QRhi *) |
virtual quint64 | textureHandle (QRhi *, int) const |
virtual QMatrix4x4 | externalTextureMatrix () const |
![]() | |
virtual | ~QAbstractVideoBuffer () |
\variable QAbstractVideoBuffer::MapData::planeCount | |
virtual MapData | map (QtVideo::MapMode mode)=0 |
Maps the planes of a video buffer to memory. | |
virtual void | unmap () |
Releases the memory mapped by the map() function. | |
Protected Attributes | |
QVideoFrame::HandleType | m_type |
QRhi * | m_rhi = nullptr |
Definition at line 35 of file qhwvideobuffer_p.h.
QHwVideoBuffer::QHwVideoBuffer | ( | QVideoFrame::HandleType | type, |
QRhi * | rhi = nullptr ) |
Definition at line 10 of file qhwvideobuffer.cpp.
|
overridedefault |
|
inlinevirtual |
Definition at line 49 of file qhwvideobuffer_p.h.
|
inlineoverridevirtual |
Gets \l QVideoFrameFormat of the underlying video buffer.
The format must be available upon construction of \l QVideoFrame. QVideoFrame will contain won instance of the given format, that can be detached and modified.
Implements QAbstractVideoBuffer.
Definition at line 45 of file qhwvideobuffer_p.h.
Referenced by D3D11TextureVideoBuffer::mapTextures().
|
inline |
Definition at line 42 of file qhwvideobuffer_p.h.
Referenced by QVideoFrame::handleType().
|
inlinevirtual |
Reimplemented in QFFmpegVideoBuffer, QGstVideoBuffer, AndroidTextureVideoBuffer, ImageFromVideoFrameHelper, and D3D11TextureVideoBuffer.
Definition at line 47 of file qhwvideobuffer_p.h.
|
inline |
Definition at line 43 of file qhwvideobuffer_p.h.
Referenced by QGstVideoBuffer::mapTextures(), AndroidTextureVideoBuffer::mapTextures(), ImageFromVideoFrameHelper::mapTextures(), D3D11TextureVideoBuffer::mapTextures(), and QFFmpegVideoBuffer::textureHandle().
Reimplemented in AVFVideoBuffer, QOpenGLVideoBuffer, QnxTextureBuffer, and QFFmpegVideoBuffer.
Definition at line 48 of file qhwvideobuffer_p.h.
Referenced by QVideoTextureHelper::createTextureFromHandle().
Definition at line 53 of file qhwvideobuffer_p.h.
Referenced by AVFVideoBuffer::textureHandle().
|
protected |
Definition at line 52 of file qhwvideobuffer_p.h.
Referenced by QFFmpegVideoBuffer::map(), and QFFmpegVideoBuffer::setTextureConverter().