QCameraExposureControl 類允許控製攝像頭曝光參數。 更多...
| 頭: | #include <QCameraExposureControl> |
| qmake: | QT += multimedia |
| 繼承: | QMediaControl |
該類已過時。 提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
| enum | ExposureParameter { ISO, Aperture, ShutterSpeed, ExposureCompensation, FlashPower, …, ExtendedExposureParameter } |
| virtual | ~QCameraExposureControl () |
| virtual QVariant | actualValue (QCameraExposureControl::ExposureParameter parameter ) const = 0 |
| virtual bool | isParameterSupported (QCameraExposureControl::ExposureParameter parameter ) const = 0 |
| virtual QVariant | requestedValue (QCameraExposureControl::ExposureParameter parameter ) const = 0 |
| virtual bool | setValue (QCameraExposureControl::ExposureParameter parameter , const QVariant & value ) = 0 |
| virtual QVariantList | supportedParameterRange (QCameraExposureControl::ExposureParameter parameter , bool * continuous ) const = 0 |
| void | actualValueChanged (int parameter ) |
| void | parameterRangeChanged (int parameter ) |
| void | requestedValueChanged (int parameter ) |
| QCameraExposureControl (QObject * parent = nullptr) |
| QCameraExposureControl_iid |
The QCameraExposure class is the usual method of adjusting exposure related parameters when using camera functionality. This class provides a more complete but less easy to use interface, and also forms the interface to implement when writing a new implementation of QCamera 功能。
You can adjust a number of parameters that will affect images and video taken with the corresponding QCamera object - see the ExposureParameter 枚舉。
The interface name of QCameraExposureControl is
org.qt-project.qt.cameraexposurecontrol/5.0
作為定義在
QCameraExposureControl_iid
.
另請參閱 QCameraExposure and QCamera .
| 常量 | 值 | 描述 |
|---|---|---|
QCameraExposureControl::ISO
|
0
|
Camera ISO sensitivity, specified as integer value. |
QCameraExposureControl::Aperture
|
1
|
Lens aperture is specified as an qreal F number. The supported apertures list can change depending on the focal length, in such a case the exposureParameterRangeChanged() signal is emitted. |
QCameraExposureControl::ShutterSpeed
|
2
|
Shutter speed in seconds, specified as qreal. |
QCameraExposureControl::ExposureCompensation
|
3
|
Exposure compensation, specified as qreal EV value. |
QCameraExposureControl::FlashPower
|
4
|
Manual flash power, specified as qreal value. Accepted power range is [0..1.0], with 0 value means no flash and 1.0 corresponds to full flash power. |
此值僅使用於 手動閃光模式 .
| 常量 | 值 | 描述 |
|---|---|---|
QCameraExposureControl::TorchPower
|
6
|
Manual torch power, specified as qreal value. Accepted power range is [0..1.0], with 0 value means no light and 1.0 corresponds to full torch power. |
此值僅使用於 手電筒閃光模式 .
| 常量 | 值 | 描述 |
|---|---|---|
QCameraExposureControl::FlashCompensation
|
5
|
Flash compensation, specified as qreal EV value. |
QCameraExposureControl::SpotMeteringPoint
|
7
|
The relative frame coordinate of the point to use for exposure metering in spot metering mode, specified as a QPointF . |
QCameraExposureControl::ExposureMode
|
8
|
Camera exposure mode. |
QCameraExposureControl::MeteringMode
|
9
|
Camera metering mode. |
QCameraExposureControl::ExtendedExposureParameter
|
1000
|
The base value for platform specific extended parameters. For such parameters the sequential values starting from ExtendedExposureParameter should be used. |
[protected]
QCameraExposureControl::
QCameraExposureControl
(
QObject
*
parent
= nullptr)
構造攝像頭曝光控製對象采用 parent .
[signal]
void
QCameraExposureControl::
actualValueChanged
(
int
parameter
)
Signal emitted when the actual exposure parameter value has changed, usually in result of auto exposure algorithms or manual exposure parameter applied.
該函數在 Qt 5.0 引入。
[signal]
void
QCameraExposureControl::
parameterRangeChanged
(
int
parameter
)
Signal emitted when the supported range of exposure parameter values has changed.
該函數在 Qt 5.0 引入。
[signal]
void
QCameraExposureControl::
requestedValueChanged
(
int
parameter
)
Signal emitted when the requested exposure parameter value has changed, usually in result of setValue () 調用。
該函數在 Qt 5.0 引入。
[虛擬]
QCameraExposureControl::
~QCameraExposureControl
()
Destroys the camera exposure control object.
[pure virtual]
QVariant
QCameraExposureControl::
actualValue
(
QCameraExposureControl::ExposureParameter
parameter
) const
Returns the actual exposure parameter value, or invalid QVariant() if the value is unknown or not supported.
The actual parameter value may differ for the requested one if automatic mode is selected or camera supports only limited set of values within the supported range.
該函數在 Qt 5.0 引入。
[pure virtual]
bool
QCameraExposureControl::
isParameterSupported
(
QCameraExposureControl::ExposureParameter
parameter
) const
Returns true is exposure parameter is supported by backend.
該函數在 Qt 5.0 引入。
[pure virtual]
QVariant
QCameraExposureControl::
requestedValue
(
QCameraExposureControl::ExposureParameter
parameter
) const
Returns the requested exposure parameter 值。
該函數在 Qt 5.0 引入。
[pure virtual]
bool
QCameraExposureControl::
setValue
(
QCameraExposureControl::ExposureParameter
parameter
, const
QVariant
&
value
)
Set the exposure parameter to value . If a null or invalid QVariant is passed, backend should choose the value automatically, and if possible report the actual value to user with QCameraExposureControl::actualValue ().
Returns true if parameter is supported and value is correct.
該函數在 Qt 5.0 引入。
[pure virtual]
QVariantList
QCameraExposureControl::
supportedParameterRange
(
QCameraExposureControl::ExposureParameter
parameter
,
bool
*
continuous
) const
Returns the list of supported parameter values;
If the camera supports arbitrary exposure parameter value within the supported range, * continuous 被設為 true,否則 * continuous 被設為 false。
該函數在 Qt 5.0 引入。
org.qt-project.qt.cameraexposurecontrol/5.0
定義接口名為 QCameraExposureControl 類。