The QCameraExposureControl class supplies control for exposure related camera parameters. More...
#include <QCameraExposureControl>
This class is under development and is subject to change.
Inherits QMediaControl.
enum | ExposureParameter { InvalidParameter, ISO, Aperture, ShutterSpeed, ..., ExtendedExposureParameter } |
enum | ParameterFlag { AutomaticValue, ReadOnly, ContinuousRange } |
flags | ParameterFlags |
~QCameraExposureControl () | |
virtual QCameraExposure::ExposureMode | exposureMode () const = 0 |
virtual QVariant | exposureParameter ( ExposureParameter parameter ) const = 0 |
virtual ParameterFlags | exposureParameterFlags ( ExposureParameter parameter ) const = 0 |
virtual QString | extendedParameterName ( ExposureParameter parameter ) = 0 |
virtual bool | isExposureModeSupported ( QCameraExposure::ExposureMode mode ) const = 0 |
virtual bool | isMeteringModeSupported ( QCameraExposure::MeteringMode mode ) const = 0 |
virtual bool | isParameterSupported ( ExposureParameter parameter ) const = 0 |
virtual QCameraExposure::MeteringMode | meteringMode () const = 0 |
virtual void | setExposureMode ( QCameraExposure::ExposureMode mode ) = 0 |
virtual bool | setExposureParameter ( ExposureParameter parameter, const QVariant & value ) = 0 |
virtual void | setMeteringMode ( QCameraExposure::MeteringMode mode ) = 0 |
virtual QVariantList | supportedParameterRange ( ExposureParameter parameter ) const = 0 |
void | exposureParameterChanged ( int parameter ) |
void | exposureParameterRangeChanged ( int parameter ) |
void | flashReady ( bool ready ) |
QCameraExposureControl ( QObject * parent = 0 ) |
QCameraExposureControl_iid |
The QCameraExposureControl class supplies control for exposure related camera parameters.
The interface name of QCameraExposureControl is com.nokia.Qt.QCameraExposureControl/1.0 as defined in QCameraExposureControl_iid.
The Camera API of Qt Mobility is still in Technology Preview. It has not undergone the same level of review and testing as the rest of the APIs.
The API exposed by the classes in this component are not stable, and will undergo modification or removal prior to the final release of Qt Mobility.
See also QCamera.
Constant | Value | Description |
---|---|---|
QCameraExposureControl::InvalidParameter | 0 | Parameter is invalid. |
QCameraExposureControl::ISO | 1 | Camera ISO sensitivity, specified as integer value. |
QCameraExposureControl::Aperture | 2 | 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 emited. |
QCameraExposureControl::ShutterSpeed | 3 | Shutter speed in seconds, specified as qreal. |
QCameraExposureControl::ExposureCompensation | 4 | Exposure compensation, specified as qreal EV value. |
QCameraExposureControl::FlashPower | 5 | 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. |
This value is only used in the manual flash mode.
Constant | Value | Description |
---|---|---|
QCameraExposureControl::FlashCompensation | 6 | Flash compensation, specified as qreal EV value. |
QCameraExposureControl::ExtendedExposureParameter | 1000 | The base value for platform specific extended parameters. For such parameters the sequential values starting from ExtendedExposureParameter shuld be used. |
Constant | Value | Description |
---|---|---|
QCameraExposureControl::AutomaticValue | 0x01 | Use the automatic values for parameters. |
QCameraExposureControl::ReadOnly | 0x02 | Parameters are read only. |
QCameraExposureControl::ContinuousRange | 0x04 | Parameters are continous in their range. |
The ParameterFlags type is a typedef for QFlags<ParameterFlag>. It stores an OR combination of ParameterFlag values.
Constructs a camera exposure control object with parent.
Destruct the camera control object.
Returns the exposure mode.
See also setExposureMode().
Returns the exposure parameter value, or invalid QVariant() if the value is unknown or not supported.
See also setExposureParameter().
Signal emitted when the exposure parameter has changed.
Returns the properties of exposure parameter.
Signal emitted when the exposure parameter range has changed.
Returns the extended exposure parameter name.
Signal emitted when flash state changes, flash is charged ready.
Returns true if the exposure mode is supported.
Returns true if the metering mode is supported.
Returns true is exposure parameter is supported by backend.
Returns the current metering mode.
See also setMeteringMode().
Set the exposure mode to mode.
See also exposureMode().
Set the exposure parameter to value. If a null or invalid QVariant is passed, backend should choose the value automaticaly, and if possible report the actual value to user with QCameraExposureControl::exposureParameter().
Returns true if parameter is supported and value is correct.
See also exposureParameter().
Set the metering mode to mode.
See also meteringMode().
Returns the list of supported parameter values;
com.nokia.Qt.QCameraExposureControl/1.0
Defines the interface name of the QCameraExposureControl class.