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
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
virtual QRhirhi () const
QVideoFrameFormat format () const override
 Gets \l QVideoFrameFormat of the underlying video buffer.
virtual QMatrix4x4 externalTextureMatrix () const
virtual QVideoFrameTexturesUPtr mapTextures (QRhi &, QVideoFrameTexturesUPtr &)
virtual void initTextureConverter (QRhi &)
virtual bool isDmaBuf () const
Public Member Functions inherited from QAbstractVideoBuffer
virtual ~QAbstractVideoBuffer ()
 \variable QAbstractVideoBuffer::MapData::planeCount
virtual MapData map (QVideoFrame::MapMode mode)=0
 Maps the planes of a video buffer to memory.
virtual void unmap ()
 Releases the memory mapped by the map() function.
Public Member Functions inherited from QVideoFrameTexturesHandles
virtual ~QVideoFrameTexturesHandles ()
virtual quint64 textureHandle (QRhi &, int)

Protected Attributes

QVideoFrame::HandleType m_type
QRhim_rhi = nullptr

Detailed Description

Definition at line 82 of file qhwvideobuffer_p.h.

Constructor & Destructor Documentation

◆ QHwVideoBuffer()

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

Definition at line 12 of file qhwvideobuffer.cpp.

◆ ~QHwVideoBuffer()

QHwVideoBuffer::~QHwVideoBuffer ( )
overridedefault

Member Function Documentation

◆ externalTextureMatrix()

virtual QMatrix4x4 QHwVideoBuffer::externalTextureMatrix ( ) const
inlinevirtual

Definition at line 95 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 93 of file qhwvideobuffer_p.h.

◆ handleType()

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

Definition at line 90 of file qhwvideobuffer_p.h.

◆ initTextureConverter()

virtual void QHwVideoBuffer::initTextureConverter ( QRhi & )
inlinevirtual

Reimplemented in QFFmpegVideoBuffer.

Definition at line 99 of file qhwvideobuffer_p.h.

◆ isDmaBuf()

virtual bool QHwVideoBuffer::isDmaBuf ( ) const
inlinevirtual

Reimplemented in QGstVideoBuffer.

Definition at line 101 of file qhwvideobuffer_p.h.

◆ mapTextures()

◆ rhi()

virtual QRhi * QHwVideoBuffer::rhi ( ) const
inlinevirtual

Reimplemented in QFFmpegVideoBuffer.

Definition at line 91 of file qhwvideobuffer_p.h.

Member Data Documentation

◆ m_rhi

QRhi* QHwVideoBuffer::m_rhi = nullptr
protected

Definition at line 105 of file qhwvideobuffer_p.h.

◆ m_type

QVideoFrame::HandleType QHwVideoBuffer::m_type
protected

Definition at line 104 of file qhwvideobuffer_p.h.


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