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
24
QT_BEGIN_NAMESPACE
25
26
namespace
QtV4L2
{
27
28
class
QV4L2FileDescriptor
:
public
QUniqueFileDescriptorHandle
29
{
30
public
:
31
explicit
QV4L2FileDescriptor
(QUniqueFileDescriptorHandle descriptor);
32
33
Q_DISABLE_COPY_MOVE
(
QV4L2FileDescriptor
)
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
45
private
:
46
bool
m_streamStarted =
false
;
47
};
48
49
}
// namespace QtV4L2
50
51
QT_END_NAMESPACE
52
53
#
endif
// QV4L2FILEDESCRIPTOR_P_H
QtV4L2::QV4L2FileDescriptor
Definition
qv4l2filedescriptor_p.h:29
QtV4L2::QV4L2FileDescriptor::stopStream
bool stopStream()
Definition
qv4l2filedescriptor.cpp:48
QtV4L2::QV4L2FileDescriptor::streamStarted
bool streamStarted() const
Definition
qv4l2filedescriptor_p.h:43
QtV4L2::QV4L2FileDescriptor::requestBuffers
bool requestBuffers(v4l2_memory memoryType, quint32 &buffersCount) const
Definition
qv4l2filedescriptor.cpp:24
QtV4L2::QV4L2FileDescriptor::startStream
bool startStream()
Definition
qv4l2filedescriptor.cpp:38
QtV4L2::QV4L2FileDescriptor::QV4L2FileDescriptor
QV4L2FileDescriptor(QUniqueFileDescriptorHandle descriptor)
Definition
qv4l2filedescriptor.cpp:13
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtV4L2
Definition
qv4l2camera.cpp:18
qtmultimedia
src
multimedia
v4l2
qv4l2filedescriptor_p.h
Generated on
for Qt by
1.16.1