~ubuntu-branches/ubuntu/trusty/tiff/trusty

« back to all changes in this revision

Viewing changes to libtiff/tif_color.c

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2012-06-24 13:45:42 UTC
  • mfrom: (15.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20120624134542-u7dltcqwnb6orprf
Tags: 4.0.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: tif_color.c,v 1.12.2.2 2010-12-14 02:23:09 faxguy Exp $ */
 
1
/* $Id: tif_color.c,v 1.19 2010-12-14 02:22:42 faxguy Exp $ */
2
2
 
3
3
/*
4
4
 * Copyright (c) 1988-1997 Sam Leffler
123
123
 */
124
124
int
125
125
TIFFCIELabToRGBInit(TIFFCIELabToRGB* cielab,
126
 
                    TIFFDisplay *display, float *refWhite)
 
126
                    const TIFFDisplay *display, float *refWhite)
127
127
{
128
128
        int i;
129
129
        double gamma;
224
224
#define LumaBlue    luma[2]
225
225
 
226
226
    clamptab = (TIFFRGBValue*)(
227
 
        (tidata_t) ycbcr+TIFFroundup(sizeof (TIFFYCbCrToRGB), sizeof (long)));
 
227
        (uint8*) ycbcr+TIFFroundup_32(sizeof (TIFFYCbCrToRGB), sizeof (long)));  
228
228
    _TIFFmemset(clamptab, 0, 256);              /* v < 0 => 0 */
229
229
    ycbcr->clamptab = (clamptab += 256);
230
230
    for (i = 0; i < 256; i++)