14.27: Camera Raw's Color Mixer, Calibration, curve, vignettes and Color Grading match Photoshop

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 14:05:24 -04:00
1 parent 8b7a8ffa0e
commit 9c0a23ea7e
26 files changed
+375 -113

No files matched your search

+2 -2
View File
@@ -126,13 +126,13 @@ void CameraRawColorTests::gradingWheelsAndBalanceReachTheKernel()
// Balance runs in hundredths: half is between none and all.
const int none = shadowTint(0), half = shadowTint(50), all = shadowTint(100);
QVERIFY2(none > half && half > all, qPrintable(QStringLiteral("%1 %2 %3").arg(none).arg(half).arg(all)));
// Luminance runs in hundredths too: measured once, then held.
// Luminance comes from Photoshop's tables: Python's own lookup.
const auto lifted = [](double luminance) {
CameraRawSettings settings;
settings.grading.shadows.luminance = luminance;
return pixels(settings.apply(image(4, 4, 0.12, 0.12, 0.12)))[0][0];
};
QVERIFY(lifted(0) == 31 && lifted(50) == 53 && lifted(100) == 76);
QVERIFY(lifted(0) == 31 && lifted(50) == 46 && lifted(100) == 56);
}
void CameraRawColorTests::aPointColorReachesOnlyItsRange()