~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/xcms/LabMxC.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
/*
4
4
 * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
5
5
 *      All Rights Reserved
6
 
 * 
 
6
 *
7
7
 * This file is a component of an X Window System-specific implementation
8
8
 * of XCMS based on the TekColor Color Management System.  Permission is
9
9
 * hereby granted to use, copy, modify, sell, and otherwise distribute this
11
11
 * that this copyright, permission, and disclaimer notice is reproduced in
12
12
 * all copies of this software and in supporting documentation.  TekColor
13
13
 * is a trademark of Tektronix, Inc.
14
 
 * 
 
14
 *
15
15
 * Tektronix makes no representation about the suitability of this software
16
16
 * for any purpose.  It is provided "as is" and with all faults.
17
 
 * 
 
17
 *
18
18
 * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
19
19
 * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
20
20
 * PARTICULAR PURPOSE.  IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
105
105
 
106
106
    /* Use my own CCC and inherit screen white Pt */
107
107
    memcpy ((char *)&myCCC, (char *)ccc, sizeof(XcmsCCCRec));
108
 
    myCCC.clientWhitePt.format = XcmsUndefinedFormat; 
 
108
    myCCC.clientWhitePt.format = XcmsUndefinedFormat;
109
109
    myCCC.gamutCompProc = (XcmsCompressionProc)NULL;/* no gamut comp func */
110
110
 
111
111
    while (hue_angle < 0.0) {
113
113
    }
114
114
    while (hue_angle >= 360.0) {
115
115
        hue_angle -= 360.0;
116
 
    } 
 
116
    }
117
117
 
118
118
    hue = radians(hue_angle);
119
119
    tmp.spec.CIELab.L_star = L_star;
192
192
                /* printf("rFactor = %lf\n", rFactor); */
193
193
        }
194
194
    }
195
 
    if (XCMS_FABS(last_L_star - L_star) < 
 
195
    if (XCMS_FABS(last_L_star - L_star) <
196
196
        XCMS_FABS(tmp.spec.CIELab.L_star - L_star)) {
197
197
            tmp.spec.CIELab.a_star = lastaStar;
198
198
            tmp.spec.CIELab.b_star = lastbStar;