14.28: Camera Raw's preview 5 to 20 times faster

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 15:29:31 -04:00
1 parent 817b32b4aa
commit 6dc0ffbfa3
15 files changed
+807 -222

No files matched your search

+4 -4
View File
@@ -412,11 +412,11 @@ void CameraRawPanelTests::everyRowCarriesSwiftsTitleHelpAndClipping()
void CameraRawPanelTests::theScopeDrawsItsRibbonsAndItsCells()
{
Panel panel;
// A gray ramp fills every bin: three full-height ribbons.
QImage ramp = BrushRaster::context(256, 4, false);
// A gray ramp, two pixels a level, fills each bin.
QImage ramp = BrushRaster::context(512, 4, false);
for (int y = 0; y < 4; ++y)
for (int x = 0; x < 256; ++x)
ramp.setPixelColor(x, y, QColor(x, x, x));
for (int x = 0; x < 512; ++x)
ramp.setPixelColor(x, y, QColor(x / 2, x / 2, x / 2));
panel.session.cancelFilter();
panel.session.insert(ImportedImage(ramp, ramp, QStringLiteral("Ramp")));
panel.session.beginFilter(FilterKind::cameraRaw);