4#include <QtGui/QMatrix4x4>
5#include <QtMultimedia/QVideoFrameFormat>
6#include <QtQuick/QQuickItem>
7#include <QtQuick/QSGRenderNode>
19 void setCurrentTexture(QRhiTexture* texture,
const QSize& frameSize, QVideoFrameFormat::PixelFormat pixelFormat,
20 const QMatrix4x4& externalTextureMatrix);
23 QSGNode*
updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData* data)
override;
26 QRhiTexture* _pendingTexture =
nullptr;
28 QVideoFrameFormat::PixelFormat _pixelFormat = QVideoFrameFormat::Format_Invalid;
29 QMatrix4x4 _externalTextureMatrix;
39 void setFrame(QRhiTexture* texture,
const QSize& frameSize, QVideoFrameFormat::PixelFormat pixelFormat,
40 const QMatrix4x4& externalTextureMatrix);
43 RenderingFlags
flags()
const override;
44 QRectF
rect()
const override;
47 void render(
const RenderState* state)
override;
51 QRhiTexture* _texture =
nullptr;
53 QVideoFrameFormat::PixelFormat _pixelFormat = QVideoFrameFormat::Format_Invalid;
54 QMatrix4x4 _externalTextureMatrix;
QSGNode * updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data) override
~QGCVideoNodeItem() override
void setCurrentTexture(QRhiTexture *texture, const QSize &frameSize, QVideoFrameFormat::PixelFormat pixelFormat, const QMatrix4x4 &externalTextureMatrix)
void setFrame(QRhiTexture *texture, const QSize &frameSize, QVideoFrameFormat::PixelFormat pixelFormat, const QMatrix4x4 &externalTextureMatrix)
~QGCVideoRenderNode() override
QRectF rect() const override
StateFlags changedStates() const override
RenderingFlags flags() const override
void releaseResources() override
void render(const RenderState *state) override