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
qabstractvideobuffer.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 QABSTRACTVIDEOBUFFER_H
5#define QABSTRACTVIDEOBUFFER_H
6
7#include <QtMultimedia/qtmultimediaexports.h>
8#include <QtMultimedia/qvideoframeformat.h>
9#include <QtMultimedia/qtvideo.h>
10
12
13class Q_MULTIMEDIA_EXPORT QAbstractVideoBuffer
14{
15public:
16 struct MapData
17 {
18 int planeCount = 0;
19 int bytesPerLine[4] = {};
20 uchar *data[4] = {};
21 int dataSize[4] = {};
22 };
23
26 virtual void unmap() { }
27 virtual QVideoFrameFormat format() const = 0;
28};
29
31
32#endif
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
virtual void unmap()
Releases the memory mapped by the map() function.
virtual ~QAbstractVideoBuffer()
\variable QAbstractVideoBuffer::MapData::planeCount
virtual MapData map(QtVideo::MapMode mode)=0
Maps the planes of a video buffer to memory.
virtual QVideoFrameFormat format() const =0
Gets \l QVideoFrameFormat of the underlying video buffer.
The QVideoFrameFormat class specifies the stream format of a video presentation surface.
Combined button and popup list for selecting options.
MapMode
Enumerates how a video buffer's data is mapped to system memory.
Definition qtvideo.h:25
GLenum mode
GLenum GLsizei dataSize
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
unsigned char uchar
Definition qtypes.h:32
The QAbstractVideoBuffer::MapData structure describes the mapped plane layout.