In jpegc.cpp, it seems that the calculation of gainmap_weight is incorrect ``` gainmap_weight = CLIP3(0.0f, gainmap_weight, 1.0f); ``` The range of gainmap_weight should be from 0 to 1, but it seems like the gainmap_weight and 0.0f have been reversed here
In jpegc.cpp, it seems that the calculation of gainmap_weight is incorrect
The range of gainmap_weight should be from 0 to 1, but it seems like the gainmap_weight and 0.0f have been reversed here