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

virtual ~QVideoFrameTextures ()
 
virtual QRhiTexturetexture (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 ()
 
void setSourceFrame (QVideoFrame sourceFrame)
 Sets the source frame. It is a temporary solution to delegate frame's shared ownership to the instance. Ideally, the creators of QVideoFrameTextures's or QVideoFrameTexturesHandles's instances should manage ownership.
 

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 ( )
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 65 of file qhwvideobuffer_p.h.

◆ setSourceFrame()

void QVideoFrameTextures::setSourceFrame ( QVideoFrame sourceFrame)
inline

Sets the source frame. It is a temporary solution to delegate frame's shared ownership to the instance. Ideally, the creators of QVideoFrameTextures's or QVideoFrameTexturesHandles's instances should manage ownership.

Definition at line 75 of file qhwvideobuffer_p.h.

◆ takeHandles()

virtual QVideoFrameTexturesHandlesUPtr QVideoFrameTextures::takeHandles ( )
inlinevirtual

Reimplemented in QVideoTextureHelper::QVideoFrameTexturesFromHandlesSet.

Definition at line 67 of file qhwvideobuffer_p.h.

◆ texture()


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