![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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>
Public Member Functions | |
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 () |
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. | |
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.
|
virtualdefault |
|
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.
|
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.
|
inlinevirtual |
Reimplemented in QVideoTextureHelper::QVideoFrameTexturesFromHandlesSet.
Definition at line 67 of file qhwvideobuffer_p.h.
|
pure virtual |