~noskcaj/ubuntu/trusty/argyll/merge

« back to all changes in this revision

Viewing changes to xicc/xspect.c

  • Committer: Bazaar Package Importer
  • Author(s): Roland Mas
  • Date: 2010-01-05 14:49:38 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100105144938-8b123qj3xabjehzs
Tags: 1.1.0~rc3-1
* New upstream pre-release.
* Moved udev rules file to /lib/udev/rules.d.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
/* and 2856 according to the newer temerature scale. */
70
70
static xspect il_A = {
71
71
        107, 300.0, 830.0,      /* 107 bands from 300 to 830 nm in 5nm steps */
72
 
        100.0,                          /* Scale factor */
 
72
        100.0,                          /* Arbitrary scale factor */
73
73
        {
74
74
                0.930483, 1.128210, 1.357690, 1.622190, 1.925080,
75
75
                2.269800, 2.659810, 3.098610, 3.589680, 4.136480,
101
101
/* This is a CIE Illuminant A combined with a filter to simulate daylight. */
102
102
static xspect il_C = {
103
103
        93, 320.0, 780.0,       /* 107 bands from 300 to 830 nm in 5nm steps */
104
 
        100.0,                          /* Scale factor */
 
104
        100.0,                          /* Arbitrary factor */
105
105
        {
106
106
                0.01,   0.20,   0.40,   1.55,   2.70,   4.85,   7.00,   9.95,   12.90,  17.20, 
107
107
                21.40,  27.50,  33.00,  39.92,  47.40,  55.17,  63.30,  71.81,  80.60,  89.53,
119
119
/* D50 illuminant spectra */
120
120
static xspect il_D50 = {
121
121
        107, 300.0, 830.0,      /* 107 bands from 300 to 830 nm in 5nm steps */
122
 
        100.0,                          /* Scale factor */
 
122
        100.0,                          /* Arbitrary factor */
123
123
        {
124
124
                0.02, 1.03, 2.05, 4.91, 7.78, 11.26, 14.75, 16.35, 17.95, 19.48,
125
125
                21.01, 22.48, 23.94, 25.45, 26.96, 25.72, 24.49, 27.18, 29.87, 39.59,
140
140
/* Part 2: CIE Standard Illuminant D65 relative spectral power distribution */
141
141
static xspect il_D65 = {
142
142
        107, 300.0, 830.0,      /* 107 bands from 300 to 830 nm in 5nm steps */
143
 
        100.0,                          /* Scale factor */
 
143
        100.0,                          /* Arbitrary factor */
144
144
        {
145
145
                0.03410, 1.66430, 3.29450, 11.76520, 20.23600,
146
146
                28.64470, 37.05350, 38.50110, 39.94880, 42.43020,
236
236
        sp->spec_n = 107;
237
237
        sp->spec_wl_short = 300.0;
238
238
        sp->spec_wl_long = 830;
239
 
        sp->norm = 100.0;
 
239
        sp->norm = 100.0;               /* Arbitrary */
240
240
 
241
241
        return 0;
242
242
}
267
267
                sp->spec[i] /= norm;
268
268
 
269
269
        }
270
 
        sp->norm = 100.0;
 
270
        sp->norm = 100.0;               /* Arbitrary */
271
271
 
272
272
        return 0;
273
273
}
276
276
/* Fluorescent, Standard, 6350K, CRI 72 */
277
277
static xspect il_F5 = {
278
278
        107, 300.0, 830.0,      /* 109 bands from 300 to 830 nm in 5nm steps */
279
 
        20.0,
 
279
        20.0,           /* Arbitrary scale factor */
280
280
        {
281
281
/* 300 */       0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
282
282
/* 340 */       0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
299
299
/* Fluorescent, Wide band 5000K, CRI 95 */
300
300
static xspect il_F8 = {
301
301
        107, 300.0, 830.0,      /* 109 bands from 300 to 830 nm in 5nm steps */
302
 
        20.0,
 
302
        20.0,           /* Arbitrary scale factor */
303
303
        {
304
304
/* 300 */       0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
305
305
/* 340 */       0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
323
323
/* Fluorescent, Narrow band 5000K, CRI 81 */
324
324
static xspect il_F10 = {
325
325
        107, 300.0, 830.0,      /* 109 bands from 300 to 830 nm in 5nm steps */
326
 
        20.0,
 
326
        20.0,           /* Arbitrary scale factor */
327
327
        {
328
328
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
329
329
                0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 
344
344
/* Spectrocam Xenon Lamp */
345
345
static xspect il_Spectrocam = {
346
346
   95, 325.0, 795.0,   /* 95 bands from 325 to 795 nm in 5nm steps */
347
 
   1.0,
 
347
   1.0,         /* Arbitrary scale factor */
348
348
   {
349
349
           0.220794, 0.240550, 0.281212, 0.363042, 0.493282,
350
350
           0.582279, 0.657489, 0.715563, 0.797559, 0.916343,
3077
3077
            case icxIT_A:
3078
3078
                        p->illuminant = il_A;
3079
3079
                        break;
 
3080
            case icxIT_C:
 
3081
                        p->illuminant = il_C;
 
3082
                        break;
3080
3083
            case icxIT_default:
3081
3084
            case icxIT_D50:
3082
3085
                        p->illuminant = il_D50;