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
qsgvivantevideonode.h
Go to the documentation of this file.
1// Copyright (C) 2016 Pelagicore AG
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 QSGVIDEONODE_VIVANTE_H
5#define QSGVIDEONODE_VIVANTE_H
6
7#include <private/qsgvideonode_p.h>
8#include <QVideoFrameFormat>
9
12{
13public:
16
19 void setCurrentFrame(const QVideoFrame &frame, FrameFlags flags);
20
21 static const QMap<QVideoFrameFormat::PixelFormat, GLenum>& getVideoFormat2GLFormatMap();
23
24private:
25 QVideoFrameFormat mFormat;
26 QSGVivanteVideoMaterial *mMaterial;
27
28 static QMap<QVideoFrameFormat::PixelFormat, GLenum> static_VideoFormat2GLFormatMap;
29};
30
31#endif // QSGVIDEONODE_VIVANTE_H
QVideoFrame::HandleType handleType() const
void setCurrentFrame(const QVideoFrame &frame, FrameFlags flags)
QSGVivanteVideoNode(const QVideoFrameFormat &format)
QVideoFrameFormat::PixelFormat pixelFormat() const
static int getBytesForPixelFormat(QVideoFrameFormat::PixelFormat pixelformat)
static const QMap< QVideoFrameFormat::PixelFormat, GLenum > & getVideoFormat2GLFormatMap()
The QVideoFrameFormat class specifies the stream format of a video presentation surface.
PixelFormat
Enumerates video data types.
QVideoFrameFormat::PixelFormat pixelFormat() const
Returns the pixel format of frames in a video stream.
The QVideoFrame class represents a frame of video data.
Definition qvideoframe.h:27
HandleType
Identifies the type of a video buffers handle.
Definition qvideoframe.h:31
GLbitfield flags
GLint GLsizei GLsizei GLenum format
QFrame frame
[0]