Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
<
QtCore
/
qtclasshelpermacros
.
h
>
19
#
include
<
QtCore
/
private
/
quniquehandle_types_p
.
h
>
20
#
include
<
QtCore
/
private
/
qexpected_p
.
h
>
21
22
#
include
<
QtMultimedia
/
private
/
qtmultimediaglobal_p
.
h
>
23
24
#
include
<
linux
/
videodev2
.
h
>
25
26
#
include
<
system_error
>
27
28
QT_BEGIN_NAMESPACE
29
30
namespace
QtV4L2
{
31
32
class
QV4L2FileDescriptor
:
public
QUniqueFileDescriptorHandle
33
{
34
public
:
35
explicit
QV4L2FileDescriptor
(QUniqueFileDescriptorHandle descriptor);
36
37
Q_DISABLE_COPY_MOVE
(
QV4L2FileDescriptor
)
38
39
q23
::
expected
<
int
,
std
::
error_code
>
call
(
int
request
,
void
*
arg
)
const
;
40
41
q23
::
expected
<
int
,
std
::
error_code
>
requestBuffers
(v4l2_memory memoryType,
42
uint32_t bufferCount)
const
;
43
q23
::
expected
<
void
,
std
::
error_code
>
releaseAllBuffers
(v4l2_memory)
const
;
44
45
bool
startStream
();
46
47
bool
stopStream
();
48
49
bool
streamStarted
()
const
{
return
m_streamStarted; }
50
51
private
:
52
bool
m_streamStarted =
false
;
53
};
54
55
}
// namespace QtV4L2
56
57
QT_END_NAMESPACE
58
59
#
endif
// QV4L2FILEDESCRIPTOR_P_H
QtV4L2::QV4L2FileDescriptor
Definition
qv4l2filedescriptor_p.h:33
QtV4L2::QV4L2FileDescriptor::requestBuffers
q23::expected< int, std::error_code > requestBuffers(v4l2_memory memoryType, uint32_t bufferCount) const
Definition
qv4l2filedescriptor.cpp:28
QtV4L2::QV4L2FileDescriptor::stopStream
bool stopStream()
Definition
qv4l2filedescriptor.cpp:61
QtV4L2::QV4L2FileDescriptor::streamStarted
bool streamStarted() const
Definition
qv4l2filedescriptor_p.h:49
QtV4L2::QV4L2FileDescriptor::releaseAllBuffers
q23::expected< void, std::error_code > releaseAllBuffers(v4l2_memory) const
Definition
qv4l2filedescriptor.cpp:43
QtV4L2::QV4L2FileDescriptor::startStream
bool startStream()
Definition
qv4l2filedescriptor.cpp:51
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:22
qtmultimedia
src
multimedia
v4l2
qv4l2filedescriptor_p.h
Generated on
for Qt by
1.18.0