Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QCameraExposureControl Class

The QCameraExposureControl class allows controlling camera exposure parameters. More...

 #include <QCameraExposureControl>

Inherits: QMediaControl.

Public Types

enum ExposureParameter { ISO, Aperture, ShutterSpeed, ExposureCompensation, ..., ExtendedExposureParameter }

Public Functions

~QCameraExposureControl()
virtual QVariant actualValue(ExposureParameter parameter) const = 0
virtual bool isParameterSupported(ExposureParameter parameter) const = 0
virtual QVariant requestedValue(ExposureParameter parameter) const = 0
virtual bool setValue(ExposureParameter parameter, const QVariant & value) = 0
virtual QVariantList supportedParameterRange(ExposureParameter parameter, bool * continuous) const = 0
  • 31 public functions inherited from QObject

Signals

void actualValueChanged(int parameter)
void parameterRangeChanged(int parameter)
void requestedValueChanged(int parameter)

Protected Functions

QCameraExposureControl(QObject * parent = 0)
  • 9 protected functions inherited from QObject

Macros

QCameraExposureControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 11 static public members inherited from QObject

Detailed Description

The QCameraExposureControl class allows controlling camera exposure parameters.

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 functionality.

You can adjust a number of parameters that will affect images and video taken with the corresponding QCamera object - see the ExposureParameter enumeration.

The interface name of QCameraExposureControl is org.qt-project.qt.cameraexposurecontrol/5.0 as defined in QCameraExposureControl_iid.

See also QCameraExposure and QCamera.

Member Type Documentation

enum QCameraExposureControl::ExposureParameter

ConstantValueDescription
QCameraExposureControl::ISO0Camera ISO sensitivity, specified as integer value.
QCameraExposureControl::Aperture1Lens 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::ShutterSpeed2Shutter speed in seconds, specified as qreal.
QCameraExposureControl::ExposureCompensation3Exposure compensation, specified as qreal EV value.
QCameraExposureControl::FlashPower4Manual 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.

ConstantValueDescription
QCameraExposureControl::TorchPower6Manual 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.

This value is only used in the torch flash mode.

ConstantValueDescription
QCameraExposureControl::FlashCompensation5Flash compensation, specified as qreal EV value.
QCameraExposureControl::SpotMeteringPoint7The relative frame coordinate of the point to use for exposure metering in spot metering mode, specified as a QPointF.
QCameraExposureControl::ExposureMode8Camera exposure mode.
QCameraExposureControl::MeteringMode9Camera metering mode.
QCameraExposureControl::ExtendedExposureParameter1000The base value for platform specific extended parameters. For such parameters the sequential values starting from ExtendedExposureParameter shuld be used.

Member Function Documentation

QCameraExposureControl::QCameraExposureControl(QObject * parent = 0) [protected]

Constructs a camera exposure control object with parent.

QCameraExposureControl::~QCameraExposureControl()

Destroys the camera exposure control object.

QVariant QCameraExposureControl::actualValue(ExposureParameter parameter) const [pure virtual]

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.

This function was introduced in Qt 5.0.

void QCameraExposureControl::actualValueChanged(int parameter) [signal]

Signal emitted when the actual exposure parameter value has changed, usually in result of auto exposure algorithms or manual exposure parameter applied.

This function was introduced in Qt 5.0.

bool QCameraExposureControl::isParameterSupported(ExposureParameter parameter) const [pure virtual]

Returns true is exposure parameter is supported by backend.

This function was introduced in Qt 5.0.

void QCameraExposureControl::parameterRangeChanged(int parameter) [signal]

Signal emitted when the supported range of exposure parameter values has changed.

This function was introduced in Qt 5.0.

QVariant QCameraExposureControl::requestedValue(ExposureParameter parameter) const [pure virtual]

Returns the requested exposure parameter value.

This function was introduced in Qt 5.0.

void QCameraExposureControl::requestedValueChanged(int parameter) [signal]

Signal emitted when the requested exposure parameter value has changed, usually in result of setValue() call.

This function was introduced in Qt 5.0.

bool QCameraExposureControl::setValue(ExposureParameter parameter, const QVariant & value) [pure virtual]

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.

This function was introduced in Qt 5.0.

QVariantList QCameraExposureControl::supportedParameterRange(ExposureParameter parameter, bool * continuous) const [pure virtual]

Returns the list of supported parameter values;

If the camera supports arbitrary exposure parameter value within the supported range, *continuous is set to true, otherwise *continuous is set to false.

This function was introduced in Qt 5.0.

Macro Documentation

QCameraExposureControl_iid

org.qt-project.qt.cameraexposurecontrol/5.0

Defines the interface name of the QCameraExposureControl class.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web