10 qRegisterMetaType<QVideoFrame>();
20 constexpr float MinSufficientFrameRate = 29.f;
23 const auto resolution =
fmt.resolution();
24 const auto sufficientFrameRate = std::min(
fmt.maxFrameRate(), MinSufficientFrameRate);
26 return std::make_tuple(
29 resolution.width() * resolution.height(),
38 return makeCriteria(fmtA) < makeCriteria(fmtB);
56 if (m_supportedFeatures ==
f)
58 m_supportedFeatures =
f;
64 if (m_minZoom == factor)
72 if (m_maxZoom == factor)
80 if (m_focusMode ==
mode)
88 if (m_customFocusPoint == point)
90 m_customFocusPoint = point;
97 if (m_zoomFactor == zoom)
106 if (m_focusDistance ==
d)
115 if (m_flashReady == ready)
117 m_flashReady = ready;
123 if (m_flashMode ==
mode)
131 if (m_torchMode ==
mode)
139 if (m_exposureMode ==
mode)
141 m_exposureMode =
mode;
147 if (m_exposureCompensation == compensation)
149 m_exposureCompensation = compensation;
155 if (m_minExposureCompensation == min && m_maxExposureCompensation == max)
157 m_minExposureCompensation = min;
158 m_maxExposureCompensation = max;
172 if (m_exposureTime == speed)
174 m_exposureTime = speed;
180 if (m_whiteBalance ==
mode)
182 m_whiteBalance =
mode;
191 if (m_colorTemperature == temperature)
193 m_colorTemperature = temperature;
223#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
void isoSensitivityChanged(int)
Signal emitted when sensitivity changes to value.
\inmodule QtCore\reentrant
Combined button and popup list for selecting options.
QVideoFrameFormat::PixelFormat fmt
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent