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
qvideoframetexturefromsource_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QVIDEOFRAMETEXTUREFROMSOURCE_P_H
5#define QVIDEOFRAMETEXTUREFROMSOURCE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "private/qhwvideobuffer_p.h"
20
21#include <rhi/qrhi.h>
22
24
26
28
30{
31public:
32 explicit QVideoFrameTexturesFromRhiTextureArray(RhiTextureArray &&rhiTextures,
33 QVideoFrame sourceFrame = {});
35
37
38 QRhiTexture *texture(uint plane) const override;
39
40 const RhiTextureArray &textureArray() const { return m_rhiTextures; }
41 [[nodiscard]] RhiTextureArray takeTextureArray() &&;
42
43private:
44 RhiTextureArray m_rhiTextures;
45};
46
48{
49public:
50 explicit QVideoFrameTexturesFromMemory(RhiTextureArray &&rhiTextures,
51 QVideoFrame mappedFrame = {});
53
55
57
58private:
59 QVideoFrame m_mappedFrame;
60};
61
63{
64public:
65 explicit QVideoFrameTexturesFromHandlesSet(RhiTextureArray &&rhiTextures,
66 QVideoFrameTexturesHandlesUPtr handles,
67 QVideoFrame sourceFrame = {});
69
71
72 [[nodiscard]] QVideoFrameTexturesHandlesUPtr takeHandles() override;
73
74private:
75 QVideoFrameTexturesHandlesUPtr m_textureHandles;
76};
77
78} // namespace QVideoTextureHelper
79
80QT_END_NAMESPACE
81
82#endif // QVIDEOFRAMETEXTUREFROMSOURCE_P_H
QVideoFrameTexturesFromHandlesSet(RhiTextureArray &&rhiTextures, QVideoFrameTexturesHandlesUPtr handles, QVideoFrame sourceFrame={})
void onFrameEndInvoked() override
The virtual method should be invoked after QRhi::endFrame to unmap and free internal resources that a...
QVideoFrameTexturesFromMemory(RhiTextureArray &&rhiTextures, QVideoFrame mappedFrame={})
QVideoFrameTexturesFromRhiTextureArray(RhiTextureArray &&rhiTextures, QVideoFrame sourceFrame={})
Combined button and popup list for selecting options.