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#include <QtMultimedia/private/qtmultimediaglobal_p.h>
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
21
22int xioctl(int fd, int request, void *arg);
23
25{
26public:
27 QV4L2FileDescriptor(int descriptor);
28
30
31 bool call(int request, void *arg) const;
32
33 int get() const { return m_descriptor; }
34
35 bool requestBuffers(quint32 memoryType, quint32 &buffersCount) const;
36
37 bool startStream();
38
39 bool stopStream();
40
41 bool streamStarted() const { return m_streamStarted; }
42
43private:
44 int m_descriptor;
45 bool m_streamStarted = false;
46};
47
48QT_END_NAMESPACE
49
50#endif // QV4L2FILEDESCRIPTOR_P_H
void zoomTo(float, float=-1.) override
void setManualIsoSensitivity(int) override
void setColorTemperature(int) override
bool isActive() const override
void setFocusMode(QCamera::FocusMode) override
QVideoFrameFormat frameFormat() const override
bool setCameraFormat(const QCameraFormat &format) override
void setTorchMode(QCamera::TorchMode) override
void setFocusDistance(float) override
bool isFocusModeSupported(QCamera::FocusMode mode) const override
void setExposureMode(QCamera::ExposureMode) override
void setActive(bool active) override
bool isWhiteBalanceModeSupported(QCamera::WhiteBalanceMode mode) const override
bool isFlashReady() const override
bool resolveCameraFormat(const QCameraFormat &format)
int isoSensitivity() const override
void setExposureCompensation(float) override
void setFlashMode(QCamera::FlashMode) override
bool isFlashModeSupported(QCamera::FlashMode mode) const override
bool isTorchModeSupported(QCamera::TorchMode mode) const override
void setWhiteBalanceMode(QCamera::WhiteBalanceMode) override
~QV4L2Camera() override
bool isExposureModeSupported(QCamera::ExposureMode mode) const override
void setCamera(const QCameraDevice &camera) override
float exposureTime() const override
void setManualExposureTime(float) override
QV4L2FileDescriptor(int descriptor)
bool call(int request, void *arg) const
bool requestBuffers(quint32 memoryType, quint32 &buffersCount) const
#define qCWarning(category,...)
#define qCDebug(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)
uint32_t v4l2FormatForPixelFormat(QVideoFrameFormat::PixelFormat format)
QVideoFrameFormat::PixelFormat fmt
uint32_t v4l2Format
QVideoFrameFormat::PixelFormat formatForV4L2Format(uint32_t v4l2Format)
QT_BEGIN_NAMESPACE int xioctl(int fd, int request, void *arg)
bool autoExposureSupported
bool colorTemperatureSupported
bool manualExposureSupported
bool autoWhiteBalanceSupported
qint32 minExposureAdjustment
qint32 maxExposureAdjustment