diff options
author | Michael Goddard <michael.goddard@nokia.com> | 2012-01-06 15:21:38 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-06 07:26:59 +0100 |
commit | 6b67a11032779ff3a7a78a57e8d2bb2cd8b7e525 (patch) | |
tree | a40f277b1df310f2a83223d24f0e1f11b69da7f7 /src/multimedia/camera/qcameraexposure.cpp | |
parent | c97f5f8c2e91c1b76d42583efaf232487d490060 (diff) |
Add the spot for spot metering mode.
Not yet fully documented in QML - needs a bit of an overhaul first.
Change-Id: Ic11684858fb872d0b4dcedf60b390571371db252
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Diffstat (limited to 'src/multimedia/camera/qcameraexposure.cpp')
-rw-r--r-- | src/multimedia/camera/qcameraexposure.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/multimedia/camera/qcameraexposure.cpp b/src/multimedia/camera/qcameraexposure.cpp index 5c75ad9e2..a618fa317 100644 --- a/src/multimedia/camera/qcameraexposure.cpp +++ b/src/multimedia/camera/qcameraexposure.cpp @@ -312,6 +312,33 @@ void QCameraExposure::setMeteringMode(QCameraExposure::MeteringMode mode) } /*! + \property QCameraExposure::spotMeteringPoint + + When supported, this property is the (normalized) position of the point of the image + where exposure metering will be performed. This is typically used to indicate an + "interesting" area of the image that should be exposed properly. + + The coordinates are relative frame coordinates: + QPointF(0,0) points to the left top frame point, QPointF(0.5,0.5) points to the frame center, + which is typically the default spot metering point. + + The spot metering point is only used with spot metering mode. + \since 1.1 + */ + +QPointF QCameraExposure::spotMeteringPoint() const +{ + return d_func()->exposureControl ? d_func()->exposureControl->exposureParameter(QCameraExposureControl::SpotMeteringPoint).toPointF() : QPointF(); +} + +void QCameraExposure::setSpotMeteringPoint(const QPointF &point) +{ + if (d_func()->exposureControl) + d_func()->exposureControl->setExposureParameter(QCameraExposureControl::SpotMeteringPoint, point); +} + + +/*! Returns true if the metering \a mode is supported. \since 1.1 */ |