MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QCameraImageProcessingControl Class Reference

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.

This class was introduced in Qt Mobility 1.1.

Public Types

enum ProcessingParameter { Contrast, Saturation, Brightness, Sharpening, ..., ExtendedParameter }

Public Functions

~QCameraImageProcessingControl ()
virtual bool isProcessingParameterSupported ( ProcessingParameter parameter ) const = 0
virtual bool isWhiteBalanceModeSupported ( QCameraImageProcessing::WhiteBalanceMode mode ) const = 0
virtual QVariant processingParameter ( ProcessingParameter parameter ) const = 0
virtual void setProcessingParameter ( ProcessingParameter parameter, QVariant value ) = 0
virtual void setWhiteBalanceMode ( QCameraImageProcessing::WhiteBalanceMode mode ) = 0
virtual QCameraImageProcessing::WhiteBalanceMode whiteBalanceMode () const = 0
  • 29 public functions inherited from QObject

Protected Functions

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

Macros

QCameraImageProcessingControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 2 protected variables 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 com.nokia.Qt.QCameraImageProcessingControl/1.0 as defined in QCameraImageProcessingControl_iid.

See also QMediaService::requestControl() and QCamera.

Member Type Documentation

enum QCameraImageProcessingControl::ProcessingParameter

Constant Value Description
QCameraImageProcessingControl::Contrast 0 Image contrast.
QCameraImageProcessingControl::Saturation 1 Image saturation.
QCameraImageProcessingControl::Brightness 2 Image brightness.
QCameraImageProcessingControl::Sharpening 3 Amount of sharpening applied.
QCameraImageProcessingControl::Denoising 4 Amount of denoising applied.
QCameraImageProcessingControl::ColorTemperature 5 Color temperature in K. This value is used when the manual white balance mode is selected.
QCameraImageProcessingControl::ExtendedParameter 1000 The 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::isProcessingParameterSupported ( 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.

This function was introduced in Qt Mobility 1.1.

bool QCameraImageProcessingControl::isWhiteBalanceModeSupported ( QCameraImageProcessing::WhiteBalanceMode mode ) const [pure virtual]

Returns true if the white balance mode is supported. The backend should support at least QCameraImageProcessing::WhiteBalanceAuto mode.

This function was introduced in Qt Mobility 1.1.

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

Returns the image processing parameter value.

This function was introduced in Qt Mobility 1.1.

See also setProcessingParameter().

void QCameraImageProcessingControl::setProcessingParameter ( ProcessingParameter parameter, 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 contrast, saturation and brightness value should be between -100 and 100, the default is 0,

For sharpening and denoising the range is 0..100, 0 for sharpening or denoising disabled and 100 for maximum sharpening/denoising applied.

This function was introduced in Qt Mobility 1.1.

See also processingParameter().

void QCameraImageProcessingControl::setWhiteBalanceMode ( QCameraImageProcessing::WhiteBalanceMode mode ) [pure virtual]

Set the white balance mode to mode

This function was introduced in Qt Mobility 1.1.

See also whiteBalanceMode().

QCameraImageProcessing::WhiteBalanceMode QCameraImageProcessingControl::whiteBalanceMode () const [pure virtual]

Return the white balance mode being used.

This function was introduced in Qt Mobility 1.1.

See also setWhiteBalanceMode().

Macro Documentation

QCameraImageProcessingControl_iid

com.nokia.Qt.QCameraImageProcessingControl/1.0

Defines the interface name of the QCameraImageProcessingControl class.