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
qwasmgltexturevideobuffer.cpp
Go to the documentation of this file.
1// Copyright (C) 2026 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
5#include <private/qhwvideobuffer_p.h>
6
8
9
11 const QSize &size)
12 : QHwVideoBuffer(QVideoFrame::RhiTextureHandle),
13 m_videoFrameFormat(size, QVideoFrameFormat::Format_RGBA8888),
14 m_glTextureHandle(std::move(textureHandle)),
15 m_size(size)
16{
17}
18
23
27
29{
30 if (plane != 0 || !m_glTextureHandle)
31 return 0;
32 return static_cast<quint64>(m_glTextureHandle.get());
33}
34
35QT_END_NAMESPACE
quint64 textureHandle(QRhi &, int plane) override
void unmap() override
Releases the memory mapped by the map() function.
QWasmGLTextureVideoBuffer::MapData map(QVideoFrame::MapMode) override
Maps the planes of a video buffer to memory.
Combined button and popup list for selecting options.