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
QVideoFrameTextures Class Referenceabstract

QVideoFrameTextures is the base class representing an abstraction layer between QVideoFrame's texture(s) and rhi's plane textures. QVideoFrameTextures must own the inner rhi textures or share ownership. QVideoFrameTextures instances are propagated to QVideoFrameTexturesPool, where their lifetime is managed according to results of QRhi::currentFrameSlot upon rendering. More...

#include <qhwvideobuffer_p.h>

Inheritance diagram for QVideoFrameTextures:
Collaboration diagram for QVideoFrameTextures:

Public Member Functions

 QVideoFrameTextures (QVideoFrame sourceFrame={})
virtual ~QVideoFrameTextures ()
virtual QRhiTexture * texture (uint plane) const =0
virtual void onFrameEndInvoked ()
 The virtual method should be invoked after QRhi::endFrame to unmap and free internal resources that are not needed anymore.
virtual QVideoFrameTexturesHandlesUPtr takeHandles ()

Detailed Description

QVideoFrameTextures is the base class representing an abstraction layer between QVideoFrame's texture(s) and rhi's plane textures. QVideoFrameTextures must own the inner rhi textures or share ownership. QVideoFrameTextures instances are propagated to QVideoFrameTexturesPool, where their lifetime is managed according to results of QRhi::currentFrameSlot upon rendering.

Definition at line 55 of file qhwvideobuffer_p.h.

Constructor & Destructor Documentation

◆ QVideoFrameTextures()

QT_BEGIN_NAMESPACE QVideoFrameTextures::QVideoFrameTextures ( QVideoFrame sourceFrame = {})
explicit

Definition at line 8 of file qhwvideobuffer.cpp.

◆ ~QVideoFrameTextures()

QVideoFrameTextures::~QVideoFrameTextures ( )
virtualdefault

Member Function Documentation

◆ onFrameEndInvoked()

virtual void QVideoFrameTextures::onFrameEndInvoked ( )
inlinevirtual

The virtual method should be invoked after QRhi::endFrame to unmap and free internal resources that are not needed anymore.

Reimplemented in QVideoTextureHelper::QVideoFrameTexturesFromMemory.

Definition at line 66 of file qhwvideobuffer_p.h.

◆ takeHandles()

virtual QVideoFrameTexturesHandlesUPtr QVideoFrameTextures::takeHandles ( )
inlinevirtual

Reimplemented in QVideoTextureHelper::QVideoFrameTexturesFromHandlesSet.

Definition at line 68 of file qhwvideobuffer_p.h.

◆ texture()


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