~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to krita/plugins/colorspaces/lms_f32/kis_lms_f32_colorspace.cc

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
#if 0
166
166
 
167
167
#include <limits.h>
168
 
#include <lcms.h>
169
168
 
170
169
#include <QImage>
171
170
 
333
332
{
334
333
    const float *data = reinterpret_cast<const float *>(dataU8);
335
334
 
336
 
    QImage img = QImage(width, height, QImage::Format_ARGB32);
 
335
    QImage image = QImage(width, height, QImage::Format_ARGB32);
337
336
 
338
337
    qint32 i = 0;
339
 
    uchar *j = img.bits();
 
338
    uchar *j = image.bits();
340
339
 
341
340
    while (i < width * height * MAX_CHANNEL_LMSA) {
342
341
        double l = *(data + i + PIXEL_LONGWAVE);
352
351
 
353
352
    /*
354
353
    if (srcProfile != 0 && dstProfile != 0) {
355
 
        convertPixelsTo(img.bits(), srcProfile,
356
 
                img.bits(), this, dstProfile,
 
354
        convertPixelsTo(image.bits(), srcProfile,
 
355
                image.bits(), this, dstProfile,
357
356
                width * height, renderingIntent);
358
357
    }
359
358
    */
360
 
    return img;
 
359
    return image;
361
360
}
362
361
 
363
362