colordevice: default the simple transformations to 1

This commit is contained in:
Xaver Hugl 2023-03-12 21:14:45 +01:00 committed by Vlad Zahorodnii
parent 96b625f7d7
commit 7f619e7770

View file

@ -54,14 +54,14 @@ public:
uint temperature = 6500;
std::unique_ptr<ColorPipelineStage> temperatureStage;
QVector3D temperatureFactors;
QVector3D temperatureFactors = QVector3D(1, 1, 1);
std::unique_ptr<ColorPipelineStage> brightnessStage;
QVector3D brightnessFactors;
QVector3D brightnessFactors = QVector3D(1, 1, 1);
std::unique_ptr<ColorPipelineStage> calibrationStage;
std::shared_ptr<ColorTransformation> transformation;
// used if only limited per-channel multiplication is available
QVector3D simpleTransformation;
QVector3D simpleTransformation = QVector3D(1, 1, 1);
};
void ColorDevicePrivate::rebuildPipeline()