Bugfix: The red, green and blue TRC were incorrectly set in ICC file
See #4478
This commit is contained in:
parent
253b8c06b9
commit
97ea1cd0db
@ -496,9 +496,6 @@ void ICCProfileCreator::savePressed()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 7 parameters for smoother curves
|
|
||||||
cmsFloat64Number Parameters[7] = { ga[0], ga[1], ga[2], ga[3], ga[4], ga[5], ga[6] };
|
|
||||||
|
|
||||||
//change desc Tag , to "free gamma", or "BT709", etc.
|
//change desc Tag , to "free gamma", or "BT709", etc.
|
||||||
Glib::ustring fName;
|
Glib::ustring fName;
|
||||||
Glib::ustring sPrimariesAndIlluminant;
|
Glib::ustring sPrimariesAndIlluminant;
|
||||||
@ -857,7 +854,7 @@ void ICCProfileCreator::savePressed()
|
|||||||
|
|
||||||
// Calculate output profile's rTRC gTRC bTRC
|
// Calculate output profile's rTRC gTRC bTRC
|
||||||
cmsToneCurve* GammaTRC[3];
|
cmsToneCurve* GammaTRC[3];
|
||||||
GammaTRC[0] = GammaTRC[1] = GammaTRC[2] = cmsBuildParametricToneCurve(nullptr, 5, Parameters);
|
GammaTRC[0] = GammaTRC[1] = GammaTRC[2] = cmsBuildParametricToneCurve(nullptr, 5, ga);
|
||||||
|
|
||||||
if (profileVersion == "v4") {
|
if (profileVersion == "v4") {
|
||||||
newProfile = cmsCreateRGBProfile(&xyD, &Primaries, GammaTRC);
|
newProfile = cmsCreateRGBProfile(&xyD, &Primaries, GammaTRC);
|
||||||
|
@ -30,7 +30,7 @@ class ICCProfileCreator : public Gtk::Dialog, public AdjusterListener
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
double ga[7];
|
cmsFloat64Number ga[7]; // 7 parameters for smoother curves
|
||||||
|
|
||||||
//------------------------ Params -----------------------
|
//------------------------ Params -----------------------
|
||||||
Glib::ustring primariesPreset;
|
Glib::ustring primariesPreset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user