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
qqnxcameraframebuffer_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QQNXCAMERAFRAMEBUFFER_H
4#define QQNXCAMERAFRAMEBUFFER_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <private/qabstractvideobuffer_p.h>
18
19#include <QtCore/qsize.h>
20
21#include <camera/camera_api.h>
22
23#include <memory>
24
26
27class QRhi;
28
30{
31public:
32 explicit QQnxCameraFrameBuffer(const camera_buffer_t *buffer, QRhi *rhi = nullptr);
33
36
37 QVideoFrame::MapMode mapMode() const override;
39 void unmap() override;
40
42
43 QSize size() const;
44
45private:
46 QRhi *m_rhi;
47
49
50 std::unique_ptr<unsigned char[]> m_data;
51
52 size_t m_dataSize;
53
54 MapData m_mapData;
55
56 QSize m_frameSize;
57};
58
60
61#endif
The QAbstractVideoBuffer class is an abstraction for video data. \inmodule QtMultimedia.
QRhi * rhi() const
Returns the QRhi instance.
QQnxCameraFrameBuffer(const camera_buffer_t *buffer, QRhi *rhi=nullptr)
QQnxCameraFrameBuffer & operator=(const QQnxCameraFrameBuffer &)=delete
QQnxCameraFrameBuffer(const QQnxCameraFrameBuffer &)=delete
QVideoFrameFormat::PixelFormat pixelFormat() const
void unmap() override
Releases the memory mapped by the map() function.
QVideoFrame::MapMode mapMode() const override
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
\inmodule QtCore
Definition qsize.h:25
PixelFormat
Enumerates video data types.
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.
GLenum mode
GLenum GLuint buffer