core/colorpipeline: don't transpose the ICtCp matrix

The matrix was already in the right order
wilder/Plasma/6.3
Xaver Hugl 1 year ago
parent 1fa3d50e8d
commit a725756ff6
  1. 8
      src/core/colorpipeline.cpp

@ -234,10 +234,10 @@ void ColorPipeline::addMatrix(const QMatrix4x4 &mat, const ValueRange &output)
}
static const QMatrix4x4 s_toICtCp = QMatrix4x4(
2048.0 / 4096.0, 2048.0 / 4096.0, 0.0, 0.0,
6610.0 / 4096.0, -13613.0 / 4096.0, 7003.0 / 4096.0, 0.0,
17933.0 / 4096.0, -17390.0 / 4096.0, -543.0 / 4096.0, 0.0,
0.0, 0.0, 0.0, 1.0).transposed();
2048.0 / 4096.0, 2048.0 / 4096.0, 0.0, 0.0,
6610.0 / 4096.0, -13613.0 / 4096.0, 7003.0 / 4096.0, 0.0,
17933.0 / 4096.0, -17390.0 / 4096.0, -543.0 / 4096.0, 0.0,
0.0, 0.0, 0.0, 1.0);
static const QMatrix4x4 s_fromICtCp = s_toICtCp.inverted();
void ColorPipeline::addTonemapper(const Colorimetry &containerColorimetry, double referenceLuminance, double maxInputLuminance, double maxOutputLuminance)

Loading…
Cancel
Save