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
qlibcamera_controls_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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#ifndef QLIBCAMERA_CONTROLS_P_H
4#define QLIBCAMERA_CONTROLS_P_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 <QtMultimedia/qcamera.h>
18
19namespace libcamera {
20class ControlInfoMap;
21class ControlList;
22} // namespace libcamera
23
24QT_BEGIN_NAMESPACE
25
26namespace QLibCamera {
27
28namespace QLibCameraControls {
29
30QCamera::Features detectSupportedFeatures(const libcamera::ControlInfoMap &controls);
31
32void setAeEnable(libcamera::ControlList &pending, bool enable);
33void setManualExposureTime(libcamera::ControlList &pending, float seconds);
34void setExposureCompensation(libcamera::ControlList &pending, float stops);
35void setAnalogueGainForIso(libcamera::ControlList &pending, int iso);
36void setAwbEnable(libcamera::ControlList &pending, bool enable);
37void setColorTemperature(libcamera::ControlList &pending, int kelvin);
38// crop is in the [0, 1] normalized zoom-window sense: a full-frame crop (zoomFactor 1) has
39// zoomFactor == 1; higher values crop a smaller, centered window of the sensor's pixel array.
40void setZoomFactor(libcamera::ControlList &pending, const libcamera::ControlInfoMap &controls,
41 float zoomFactor);
42
43} // namespace QLibCameraControls
44
45} // namespace QLibCamera
46
47QT_END_NAMESPACE
48
49#endif // QLIBCAMERA_CONTROLS_P_H
void handleRequestCompleted(libcamera::Request *)
QLibCameraCameraStream(std::shared_ptr< libcamera::Camera >, libcamera::Stream *, int bytesPerLine, QVideoFrameFormat, double maxFrameRate)
libcamera::Stream * stream() const
void setExposureCompensation(float compensation) override
void setManualIsoSensitivity(int iso) override
void setActive(bool active) override
void setCamera(const QCameraDevice &) override
void setManualExposureTime(float seconds) override
bool setCameraFormat(const QCameraFormat &) override
void zoomTo(float newZoomFactor, float rate=-1.) override
void setExposureMode(QCamera::ExposureMode) override
QVideoFrameFormat frameFormat() const override
int cameraPixelFormatScore(QVideoFrameFormat::PixelFormat, QVideoFrameFormat::ColorRange) const override
void setColorTemperature(int temperature) override
void setWhiteBalanceMode(QCamera::WhiteBalanceMode) override
bool isExposureModeSupported(QCamera::ExposureMode mode) const override
void setExposureCompensation(ControlList &pending, float stops)
void setAnalogueGainForIso(ControlList &pending, int iso)
void setAwbEnable(ControlList &pending, bool enable)
void setZoomFactor(ControlList &pending, const ControlInfoMap &controls, float zoomFactor)
void setColorTemperature(ControlList &pending, int kelvin)
void setManualExposureTime(ControlList &pending, float seconds)
void setAeEnable(ControlList &pending, bool enable)
QCamera::Features detectSupportedFeatures(const ControlInfoMap &controls)