Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgstvideobuffer_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QGSTVIDEOBUFFER_P_H
5#define QGSTVIDEOBUFFER_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/qtmultimediaglobal_p.h>
19#include <private/qabstractvideobuffer_p.h>
20#include <QtCore/qvariant.h>
21
22#include <common/qgst_p.h>
23#include <gst/video/video.h>
24
28class QOpenGLContext;
29
31{
32public:
36
37 QVideoFrame::MapMode mapMode() const override;
38
40 void unmap() override;
41
42 std::unique_ptr<QVideoFrameTextures> mapTextures(QRhi *) override;
43
44private:
46 const QVideoFrameFormat m_frameFormat;
47 QRhi *m_rhi = nullptr;
48 mutable GstVideoInfo m_videoInfo;
49 mutable GstVideoFrame m_frame{};
50 const QGstBufferHandle m_buffer;
52 Qt::HANDLE eglDisplay = nullptr;
53 QFunctionPointer eglImageTargetTexture2D = nullptr;
54};
55
57
58#endif
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
MemoryFormat
Definition qgst_p.h:353
@ CpuMemory
Definition qgst_p.h:353
std::unique_ptr< QVideoFrameTextures > mapTextures(QRhi *) override
QVideoFrame::MapMode mapMode() const override
void unmap() override
Releases the memory mapped by the map() function.
QGstVideoBuffer(QGstBufferHandle buffer, const GstVideoInfo &info, QGstreamerVideoSink *sink, const QVideoFrameFormat &frameFormat, QGstCaps::MemoryFormat format)
\inmodule QtGui
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
The QVideoFrameFormat class specifies the stream format of a video presentation surface.
MapMode
Enumerates how a video buffer's data is mapped to system memory.
Definition qvideoframe.h:37
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
void * HANDLE
GLenum mode
GLenum GLuint buffer
GLint GLsizei GLsizei GLenum format
GLsizei GLenum GLboolean sink
QHostInfo info
[0]