Changeset View
Changeset View
Standalone View
Standalone View
krita/plugins/filters/fastcolortransfer/fastcolortransfer.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 92 | if (!labCS) { | |||
---|---|---|---|---|---|
93 | dbgPlugins << "The LAB colorspace is not available."; | 93 | dbgPlugins << "The LAB colorspace is not available."; | ||
94 | return; | 94 | return; | ||
95 | } | 95 | } | ||
96 | 96 | | |||
97 | dbgPlugins << "convert a copy of src to lab"; | 97 | dbgPlugins << "convert a copy of src to lab"; | ||
98 | const KoColorSpace* oldCS = device->colorSpace(); | 98 | const KoColorSpace* oldCS = device->colorSpace(); | ||
99 | KisPaintDeviceSP srcLAB = new KisPaintDevice(*device.data()); | 99 | KisPaintDeviceSP srcLAB = new KisPaintDevice(*device.data()); | ||
100 | dbgPlugins << "srcLab : " << srcLAB->extent(); | 100 | dbgPlugins << "srcLab : " << srcLAB->extent(); | ||
101 | KUndo2Command* cmd = srcLAB->convertTo(labCS, KoColorConversionTransformation::InternalRenderingIntent, KoColorConversionTransformation::InternalConversionFlags); | 101 | KUndo2Command* cmd = srcLAB->convertTo(labCS, KoColorConversionTransformation::internalRenderingIntent(), KoColorConversionTransformation::internalConversionFlags()); | ||
102 | delete cmd; | 102 | delete cmd; | ||
103 | 103 | | |||
104 | if (progressUpdater) { | 104 | if (progressUpdater) { | ||
105 | progressUpdater->setRange(0, 2 * applyRect.width() * applyRect.height()); | 105 | progressUpdater->setRange(0, 2 * applyRect.width() * applyRect.height()); | ||
106 | } | 106 | } | ||
107 | int count = 0; | 107 | int count = 0; | ||
108 | 108 | | |||
109 | // Compute the means and sigmas of src | 109 | // Compute the means and sigmas of src | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |