Change Tag dmdd for RTv2_Medium and code for TRC=custom and slope=0

This commit is contained in:
U-PC-BUREAU\jacques
2018-11-18 08:28:27 +01:00
parent 7896ffa08f
commit bda23b9350
3 changed files with 8 additions and 2 deletions

View File

@@ -1310,6 +1310,8 @@ void ICCProfileCreator::savePressed()
GammaTRC[0] = GammaTRC[1] = GammaTRC[2] = cmsBuildGamma(NULL, 1.80078125);
} else if (gammaPreset == "linear_g1.0") {
GammaTRC[0] = GammaTRC[1] = GammaTRC[2] = cmsBuildGamma(NULL, 1.0);
} else if(gammaPreset == "Custom" && slope == 0.0) {
GammaTRC[0] = GammaTRC[1] = GammaTRC[2] = cmsBuildGamma(NULL, gamma);
} else {
GammaTRC[0] = GammaTRC[1] = GammaTRC[2] = cmsBuildParametricToneCurve(nullptr, 5, ga);
}