Review 2 fixes for 13.17 and 13.18: the glow scales back exactly, tests for the front tab, a rendering editor, the Scanlines rows, removePoint's reach, repair's strict bound, the divider strip; bullets corrected

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 20:02:02 -04:00
1 parent 81894f744a
commit 5c8e18c5af
7 files changed
+129 -18

No files matched your search

+3
View File
@@ -50,6 +50,9 @@ void CameraRawColorTests::curvesAreRepairedIntoOrder()
QCOMPARE(repaired({{0, 0}, {0.995, 0.5}, {1, 1}}), (Points{{0, 0}, {0.99, 0.5}, {1, 1}}));
QCOMPARE(repaired({{0, 0}, {0.5, 0.3}, {0.505, 0.6}, {1, 1}}), (Points{{0, 0}, {0.5, 0.3}, {1, 1}}));
QCOMPARE(repaired({{0, 0}, {0.004, 0.3}, {1, 1}}), CameraRawCurveSettings::linear());
// Exactly a hundredth past the last kept is too near.
QCOMPARE(repaired({{0, 0}, {0.5, 0.3}, {0.5 + 0.01, 0.6}, {1, 1}}), (Points{{0, 0}, {0.5, 0.3}, {1, 1}}));
QCOMPARE(repaired({{0, 0}, {0.5, 0.3}, {0.5 + 0.0100001, 0.6}, {1, 1}}).size(), size_t(4));
// A curve of one point passes its input through.
CameraRawCurveSettings curve;
const std::vector<float> table = curve.channelTable({{0.5, 0.7}});