5#include "private/qcameradevice_p.h"
11 qRegisterMetaType<QVideoFrame>();
21 constexpr float MinSufficientFrameRate = 29.f;
24 const auto resolution =
fmt.resolution();
25 const auto sufficientFrameRate = std::min(
fmt.maxFrameRate(), MinSufficientFrameRate);
26 const auto pixelFormatScore =
29 return std::make_tuple(
32 resolution.width() * resolution.height(),
41 return makeCriteria(fmtA) < makeCriteria(fmtB);
59 if (m_supportedFeatures ==
f)
61 m_supportedFeatures =
f;
67 if (m_minZoom == factor)
75 if (m_maxZoom == factor)
83 if (m_focusMode ==
mode)
91 if (m_customFocusPoint == point)
93 m_customFocusPoint = point;
100 if (m_zoomFactor == zoom)
109 if (m_focusDistance ==
d)
118 if (m_flashReady == ready)
120 m_flashReady = ready;
126 if (m_flashMode ==
mode)
134 if (m_torchMode ==
mode)
142 if (m_exposureMode ==
mode)
144 m_exposureMode =
mode;
150 if (m_exposureCompensation == compensation)
152 m_exposureCompensation = compensation;
158 if (m_minExposureCompensation == min && m_maxExposureCompensation == max)
160 m_minExposureCompensation = min;
161 m_maxExposureCompensation = max;
175 if (m_exposureTime == speed)
177 m_exposureTime = speed;
183 if (m_whiteBalance ==
mode)
185 m_whiteBalance =
mode;
194 if (m_colorTemperature == temperature)
196 m_colorTemperature = temperature;
233#include "moc_qplatformcamera_p.cpp"
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.
@ WhiteBalanceFluorescent
TorchMode
\value TorchOff Torch is Off.
void exposureModeChanged()
void focusDistanceChanged(float)
FocusMode
\value FocusModeAuto Continuous auto focus mode.
void customFocusPointChanged()
void maximumZoomFactorChanged(float)
void exposureCompensationChanged(float)
Signal emitted when the exposure compensation changes to value.
void exposureTimeChanged(float speed)
Signals that a camera's exposure speed has changed.
void supportedFeaturesChanged()
void focusModeChanged()
Signals when the focusMode changes.
void colorTemperatureChanged() QT6_ONLY(const)
void whiteBalanceModeChanged() QT6_ONLY(const)
void minimumZoomFactorChanged(float)
FlashMode
\value FlashOff Flash is Off.
ExposureMode
\value ExposureAuto Automatic mode.
void zoomFactorChanged(float)
bool flashReady
\qmlproperty bool QtMultimedia::Camera::flashReady
Error
This enum holds the last error code.
void isoSensitivityChanged(int)
Signal emitted when sensitivity changes to value.
void setAndNotify(ErrorCode code, QString description, Notifier ¬ifier)
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
QVideoFrameFormat::PixelFormat fmt