4#ifndef QGSTREAMERCAMERACONTROL_H
5#define QGSTREAMERCAMERACONTROL_H
19#include <private/qplatformcamera_p.h>
20#include <private/qmultimediautils_p.h>
41#if QT_CONFIG(gstreamer_photography)
42 GstPhotography *photography()
const;
71 void updateCameraProperties();
72#if QT_CONFIG(linux_v4l)
73 void initV4L2Controls();
74 int setV4L2ColorTemperature(
int temperature);
76 int getV4L2Parameter(
quint32 id)
const;
78 bool v4l2AutoWhiteBalanceSupported =
false;
79 bool v4l2ColorTemperatureSupported =
false;
80 bool v4l2AutoExposureSupported =
false;
81 bool v4l2ManualExposureSupported =
false;
82 qint32 v4l2MinColorTemp = 5600;
83 qint32 v4l2MaxColorTemp = 5600;
84 qint32 v4l2MinExposure = 0;
85 qint32 v4l2MaxExposure = 0;
86 qint32 v4l2MinExposureAdjustment = 0;
87 qint32 v4l2MaxExposureAdjustment = 0;
88 int v4l2FileDescriptor = -1;
100 bool m_active =
false;
The QCameraDevice class provides general information about camera devices.
The QCamera class provides interface for system camera devices.
WhiteBalanceMode
\value WhiteBalanceAuto Auto white balance mode.
FocusMode
\value FocusModeAuto Continuous auto focus mode.
FlashMode
\value FlashOff Flash is Off.
ExposureMode
\value ExposureAuto Automatic mode.
GstElement * element() const
void setWhiteBalanceMode(QCamera::WhiteBalanceMode mode) override
bool isFocusModeSupported(QCamera::FocusMode mode) const override
bool isActive() const override
bool isV4L2Camera() const
virtual ~QGstreamerCamera()
bool isFlashModeSupported(QCamera::FlashMode mode) const override
bool isExposureModeSupported(QCamera::ExposureMode mode) const override
bool setCameraFormat(const QCameraFormat &format) override
void setColorTemperature(int temperature) override
void setExposureMode(QCamera::ExposureMode) override
bool isFlashReady() const override
QString v4l2Device() const
int isoSensitivity() const override
float exposureTime() const override
bool isWhiteBalanceModeSupported(QCamera::WhiteBalanceMode mode) const override
void setFlashMode(QCamera::FlashMode mode) override
void setFocusMode(QCamera::FocusMode mode) override
void setActive(bool active) override
void setManualIsoSensitivity(int) override
void setCamera(const QCameraDevice &camera) override
void setManualExposureTime(float) override
QGstElement gstElement() const
void setExposureCompensation(float) override
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLint GLsizei GLsizei GLenum format