1// qcameraimageprocessing.sip generated by MetaSIP 2// 3// This file is part of the QtMultimedia Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23class QCameraImageProcessing : QObject 24{ 25%TypeHeaderCode 26#include <qcameraimageprocessing.h> 27%End 28 29public: 30 enum WhiteBalanceMode 31 { 32 WhiteBalanceAuto, 33 WhiteBalanceManual, 34 WhiteBalanceSunlight, 35 WhiteBalanceCloudy, 36 WhiteBalanceShade, 37 WhiteBalanceTungsten, 38 WhiteBalanceFluorescent, 39 WhiteBalanceFlash, 40 WhiteBalanceSunset, 41 WhiteBalanceVendor, 42 }; 43 44 bool isAvailable() const; 45 QCameraImageProcessing::WhiteBalanceMode whiteBalanceMode() const; 46 void setWhiteBalanceMode(QCameraImageProcessing::WhiteBalanceMode mode); 47 bool isWhiteBalanceModeSupported(QCameraImageProcessing::WhiteBalanceMode mode) const; 48 qreal manualWhiteBalance() const; 49 void setManualWhiteBalance(qreal colorTemperature); 50 qreal contrast() const; 51 void setContrast(qreal value); 52 qreal saturation() const; 53 void setSaturation(qreal value); 54 qreal sharpeningLevel() const; 55 void setSharpeningLevel(qreal value); 56 qreal denoisingLevel() const; 57 void setDenoisingLevel(qreal value); 58 59private: 60 QCameraImageProcessing(QCamera *camera); 61 62protected: 63%If (Qt_5_14_0 -) 64 virtual ~QCameraImageProcessing(); 65%End 66 67private: 68%If (- Qt_5_14_0) 69 virtual ~QCameraImageProcessing(); 70%End 71 QCameraImageProcessing(const QCameraImageProcessing &); 72 73public: 74%If (Qt_5_5_0 -) 75 76 enum ColorFilter 77 { 78 ColorFilterNone, 79 ColorFilterGrayscale, 80 ColorFilterNegative, 81 ColorFilterSolarize, 82 ColorFilterSepia, 83 ColorFilterPosterize, 84 ColorFilterWhiteboard, 85 ColorFilterBlackboard, 86 ColorFilterAqua, 87 ColorFilterVendor, 88 }; 89 90%End 91%If (Qt_5_5_0 -) 92 QCameraImageProcessing::ColorFilter colorFilter() const; 93%End 94%If (Qt_5_5_0 -) 95 void setColorFilter(QCameraImageProcessing::ColorFilter filter); 96%End 97%If (Qt_5_5_0 -) 98 bool isColorFilterSupported(QCameraImageProcessing::ColorFilter filter) const; 99%End 100%If (Qt_5_7_0 -) 101 qreal brightness() const; 102%End 103%If (Qt_5_7_0 -) 104 void setBrightness(qreal value); 105%End 106}; 107