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
qv4l2filedescriptor_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 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 QV4L2FILEDESCRIPTOR_P_H
5#define QV4L2FILEDESCRIPTOR_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 <QtMultimedia/private/qtmultimediaglobal_p.h>
19#include <QtCore/private/quniquehandle_types_p.h>
20#include <QtCore/qtclasshelpermacros.h>
21
22#include <linux/videodev2.h>
23
24QT_BEGIN_NAMESPACE
25
26namespace QtV4L2 {
27
29{
30public:
31 explicit QV4L2FileDescriptor(QUniqueFileDescriptorHandle descriptor);
32
34
35 bool call(int request, void *arg) const;
36
37 bool requestBuffers(v4l2_memory memoryType, quint32 &buffersCount) const;
38
39 bool startStream();
40
41 bool stopStream();
42
43 bool streamStarted() const { return m_streamStarted; }
44
45private:
46 bool m_streamStarted = false;
47};
48
49} // namespace QtV4L2
50
51QT_END_NAMESPACE
52
53#endif // QV4L2FILEDESCRIPTOR_P_H
bool requestBuffers(v4l2_memory memoryType, quint32 &buffersCount) const
QV4L2FileDescriptor(QUniqueFileDescriptorHandle descriptor)
Combined button and popup list for selecting options.