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  · 

QCameraImageProcessingControl Class

The QCameraImageProcessingControl class provides an abstract class for controlling image processing parameters, like white balance, contrast, saturation, sharpening and denoising. More...

 #include <QCameraImageProcessingControl>

Inherits: QMediaControl.

Public Types

enum ProcessingParameter { WhiteBalancePreset, ColorTemperature, Contrast, Saturation, ..., ExtendedParameter }

Public Functions

~QCameraImageProcessingControl()
virtual bool isParameterSupported(ProcessingParameter parameter) const = 0
virtual bool isParameterValueSupported(ProcessingParameter parameter, const QVariant & value) const = 0
virtual QVariant parameter(ProcessingParameter parameter) const = 0
virtual void setParameter(ProcessingParameter parameter, const QVariant & value) = 0
  • 31 public functions inherited from QObject

Protected Functions

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

Macros

QCameraImageProcessingControl_iid

Additional Inherited Members

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

Detailed Description

The QCameraImageProcessingControl class provides an abstract class for controlling image processing parameters, like white balance, contrast, saturation, sharpening and denoising.

The interface name of QCameraImageProcessingControl is org.qt-project.qt.cameraimageprocessingcontrol/5.0 as defined in QCameraImageProcessingControl_iid.

Camera service may choose the parameters of image processing pipeline depending on sensor properties camera settings and capture parameters.

This control allows to modify some parameters of image processing pipeline to achieve desired results.

Parameters with the "Adjustment" suffix, like ContrastAdjustment, SaturationAdjustment etc allows to adjust the parameter values, selected by camera engine, while parameters like Contrast and Saturation overwrites them.

For example setting the SharpeningAdjustment parameter to -0.1 slightly reduces the amount of sharpening applied, while settings the Sharpening parameter to 0 disables sharpening at all.

See also QMediaService::requestControl() and QCamera.

Member Type Documentation

enum QCameraImageProcessingControl::ProcessingParameter

ConstantValueDescription
QCameraImageProcessingControl::WhiteBalancePreset0The white balance preset.
QCameraImageProcessingControl::ColorTemperature1Color temperature in K. This value is used when the manual white balance mode is selected.
QCameraImageProcessingControl::Contrast2Image contrast.
QCameraImageProcessingControl::Saturation3Image saturation.
QCameraImageProcessingControl::Brightness4Image brightness.
QCameraImageProcessingControl::Sharpening5Amount of sharpening applied.
QCameraImageProcessingControl::Denoising6Amount of denoising applied.
QCameraImageProcessingControl::ContrastAdjustment7Image contrast adjustment.
QCameraImageProcessingControl::SaturationAdjustment8Image saturation adjustment.
QCameraImageProcessingControl::BrightnessAdjustment9Image brightness adjustment.
QCameraImageProcessingControl::SharpeningAdjustment10Adjustment of sharpening applied.
QCameraImageProcessingControl::DenoisingAdjustment11Adjustment of denoising applied.
QCameraImageProcessingControl::ExtendedParameter1000The base value for platform specific extended parameters.

Member Function Documentation

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

Constructs an image processing control object with parent.

QCameraImageProcessingControl::~QCameraImageProcessingControl()

Destruct the image processing control object.

bool QCameraImageProcessingControl::isParameterSupported(ProcessingParameter parameter) const [pure virtual]

Returns true if the camera supports adjusting image processing parameter.

Usually the the supported settings is static, but some parameter may not be available depending on other camera settings, like presets. In such case the currently supported parameters should be returned.

bool QCameraImageProcessingControl::isParameterValueSupported(ProcessingParameter parameter, const QVariant & value) const [pure virtual]

Returns true if the camera supports settings the the image processing parameter value.

It's used only for parameters with a limited set of values, like WhiteBalancePreset.

QVariant QCameraImageProcessingControl::parameter(ProcessingParameter parameter) const [pure virtual]

Returns the image processing parameter value.

See also setParameter().

void QCameraImageProcessingControl::setParameter(ProcessingParameter parameter, const QVariant & value) [pure virtual]

Sets the image processing parameter value. Passing the null or invalid QVariant value allows backend to choose the suitable parameter value.

The valid values range depends on the parameter type. For WhiteBalancePreset the value should be one of QCameraImageProcessing::WhiteBalanceMode values; for Contrast, Saturation, Brightness, Sharpening and Denoising the value should be in [0..1.0] range with invalid QVariant value indicating the default parameter value; for ContrastAdjustment, SaturationAdjustment, BrightnessAdjustment, SharpeningAdjustment and DenoisingAdjustment the value should be in [-1.0..1.0] range with default 0.

See also parameter().

Macro Documentation

QCameraImageProcessingControl_iid

org.qt-project.qt.cameraimageprocessingcontrol/5.0

Defines the interface name of the QCameraImageProcessingControl 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