summaryrefslogtreecommitdiffstats
path: root/src/multimedia/camera/qcameraimageprocessing.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den.exter@jollamobile.com>2014-07-09 13:38:25 +1000
committerAndrew den Exter <andrew.den.exter@qinetic.com.au>2014-11-28 06:08:11 +0100
commit25ad679c254766a3ac0bf3925232052941485442 (patch)
treef56748cdde28851ac5438b53de93fb9fbf0c14ce /src/multimedia/camera/qcameraimageprocessing.h
parentbe7fef656a1d087d3d1d3fa102da4fce85855935 (diff)
Add a color filter property to QCameraImageProcessing.
[ChangeLog] New color filter property for QCameraImageProcessing. Change-Id: I999e349e3e4f284b533fa62ba50903fbd21cb400 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
Diffstat (limited to 'src/multimedia/camera/qcameraimageprocessing.h')
-rw-r--r--src/multimedia/camera/qcameraimageprocessing.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/multimedia/camera/qcameraimageprocessing.h b/src/multimedia/camera/qcameraimageprocessing.h
index 4c3f71dcd..044e05f7c 100644
--- a/src/multimedia/camera/qcameraimageprocessing.h
+++ b/src/multimedia/camera/qcameraimageprocessing.h
@@ -54,7 +54,7 @@ class QCameraImageProcessingPrivate;
class Q_MULTIMEDIA_EXPORT QCameraImageProcessing : public QObject
{
Q_OBJECT
- Q_ENUMS(WhiteBalanceMode)
+ Q_ENUMS(WhiteBalanceMode ColorFilter)
public:
enum WhiteBalanceMode {
WhiteBalanceAuto = 0,
@@ -69,6 +69,19 @@ public:
WhiteBalanceVendor = 1000
};
+ enum ColorFilter {
+ ColorFilterNone,
+ ColorFilterGrayscale,
+ ColorFilterNegative,
+ ColorFilterSolarize,
+ ColorFilterSepia,
+ ColorFilterPosterize,
+ ColorFilterWhiteboard,
+ ColorFilterBlackboard,
+ ColorFilterAqua,
+ ColorFilterVendor = 1000
+ };
+
bool isAvailable() const;
WhiteBalanceMode whiteBalanceMode() const;
@@ -90,6 +103,10 @@ public:
qreal denoisingLevel() const;
void setDenoisingLevel(qreal value);
+ ColorFilter colorFilter() const;
+ void setColorFilter(ColorFilter filter);
+ bool isColorFilterSupported(ColorFilter filter) const;
+
private:
friend class QCamera;
friend class QCameraPrivate;
@@ -104,7 +121,9 @@ private:
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QCameraImageProcessing::WhiteBalanceMode)
+Q_DECLARE_METATYPE(QCameraImageProcessing::ColorFilter)
Q_MEDIA_ENUM_DEBUG(QCameraImageProcessing, WhiteBalanceMode)
+Q_MEDIA_ENUM_DEBUG(QCameraImageProcessing, ColorFilter)
#endif // QCAMERAIMAGEPROCESSING_H