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>.
Loading...
Searching...
No Matches
QHwVideoBuffer Class Reference

#include <qhwvideobuffer_p.h>

+ Inheritance diagram for QHwVideoBuffer:
+ Collaboration diagram for QHwVideoBuffer:

Public Member Functions

 QHwVideoBuffer (QVideoFrame::HandleType type, QRhi *rhi=nullptr)
 
 ~QHwVideoBuffer () override
 
QVideoFrame::HandleType handleType () const
 
QRhirhi () const
 
QVideoFrameFormat format () const override
 Gets \l QVideoFrameFormat of the underlying video buffer.
 
virtual std::unique_ptr< QVideoFrameTexturesmapTextures (QRhi *)
 
virtual quint64 textureHandle (QRhi *, int) const
 
virtual QMatrix4x4 externalTextureMatrix () const
 
- Public Member Functions inherited from QAbstractVideoBuffer
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
 
QRhim_rhi = nullptr
 

Detailed Description

Definition at line 35 of file qhwvideobuffer_p.h.

Constructor & Destructor Documentation

◆ QHwVideoBuffer()

QHwVideoBuffer::QHwVideoBuffer ( QVideoFrame::HandleType type,
QRhi * rhi = nullptr )

Definition at line 10 of file qhwvideobuffer.cpp.

◆ ~QHwVideoBuffer()

QHwVideoBuffer::~QHwVideoBuffer ( )
overridedefault

Member Function Documentation

◆ externalTextureMatrix()

virtual QMatrix4x4 QHwVideoBuffer::externalTextureMatrix ( ) const
inlinevirtual

Definition at line 49 of file qhwvideobuffer_p.h.

◆ format()

QVideoFrameFormat QHwVideoBuffer::format ( ) const
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().

+ Here is the caller graph for this function:

◆ handleType()

QVideoFrame::HandleType QHwVideoBuffer::handleType ( ) const
inline

Definition at line 42 of file qhwvideobuffer_p.h.

Referenced by QVideoFrame::handleType().

+ Here is the caller graph for this function:

◆ mapTextures()

virtual std::unique_ptr< QVideoFrameTextures > QHwVideoBuffer::mapTextures ( QRhi * )
inlinevirtual

◆ rhi()

QRhi * QHwVideoBuffer::rhi ( ) const
inline

Definition at line 43 of file qhwvideobuffer_p.h.

Referenced by QGstVideoBuffer::mapTextures(), AndroidTextureVideoBuffer::mapTextures(), ImageFromVideoFrameHelper::mapTextures(), D3D11TextureVideoBuffer::mapTextures(), and QFFmpegVideoBuffer::textureHandle().

+ Here is the caller graph for this function:

◆ textureHandle()

virtual quint64 QHwVideoBuffer::textureHandle ( QRhi * ,
int  ) const
inlinevirtual

Reimplemented in AVFVideoBuffer, QOpenGLVideoBuffer, QnxTextureBuffer, and QFFmpegVideoBuffer.

Definition at line 48 of file qhwvideobuffer_p.h.

Referenced by QVideoTextureHelper::createTextureFromHandle().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_rhi

QRhi* QHwVideoBuffer::m_rhi = nullptr
protected

Definition at line 53 of file qhwvideobuffer_p.h.

Referenced by AVFVideoBuffer::textureHandle().

◆ m_type

QVideoFrame::HandleType QHwVideoBuffer::m_type
protected

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