diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-03-01 13:08:04 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2024-04-03 22:15:43 +0100 |
commit | 9828ddadfb67818467b130aab081442cc2342a60 (patch) | |
tree | 468a44c84ce53891af7b0e0e8f857630b83f8c9f /src/plugins/imageformats | |
parent | 3fb3d95c335fecf005c938b2a7011286f592325a (diff) |
JPEG plugin: CMYK code tidies
Remove unused code.
This work has been kindly sponsored by the QGIS project
(https://qgis.org/).
Change-Id: I3db7705b3963d7a7669f8c9b284d3d35a2a7da92
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/plugins/imageformats')
-rw-r--r-- | src/plugins/imageformats/jpeg/qjpeghandler.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/plugins/imageformats/jpeg/qjpeghandler.cpp b/src/plugins/imageformats/jpeg/qjpeghandler.cpp index 9fc49104e5..e1488d4c9d 100644 --- a/src/plugins/imageformats/jpeg/qjpeghandler.cpp +++ b/src/plugins/imageformats/jpeg/qjpeghandler.cpp @@ -368,17 +368,6 @@ static bool read_jpeg_image(QImage *outImage, } else { memcpy(out, in, clip.width() * 4); } -#if 0 - // Convert CMYK->RGB. - uchar *in = rows[0] + clip.x() * 4; - QRgb *out = (QRgb*)outImage->scanLine(y); - for (int i = 0; i < clip.width(); ++i) { - int k = in[3]; - *out++ = qRgb(k * in[0] / 255, k * in[1] / 255, - k * in[2] / 255); - in += 4; - } -#endif } else if (info->output_components == 1) { // Grayscale. memcpy(outImage->scanLine(y), |