#
# RGB_XYZ.txt, 14 May 11


!msgpostfix RGB to YIQ conversion\n
!need all
 0.299
 0.587
 0.114

 0.595716
-0.274453
-0.321263

 0.211456
-0.522591
 0.311135

!msgpostfix YIQ to RGB conversion\n
!need all
# 1.0
 0.9563
 0.6210

# 1.0
-0.2721
-0.6474

# 1.0
-1.1070
 1.7046


!msgpostfix YV12 to RGB conversion\n

!need all
1.164
# 0.0
1.596
# 0.5

 0.0625
# 1.164
-0.391
-0.81300002

# 1.164
2.0179999
# 0.0


!msgpostfix RGB to YV12 conversion\n

!need all
# 0.5
# 2.0
# 1.0
0.0625

# 1.164
# 0.0
1.596
2.0179999

 1.164
-0.391
-0.81300002


# RGB <-> L*a*b*

!fuzz 0.00001

!msgpostfix RGB to CIELAB conversion\n
!need all
 0.433953
 0.376219
 0.189828

 0.212671
 0.715160
 0.072169

 0.017758
 0.109477
 0.872766

!msgpostfix CIELAB to RGB conversion\n
!need all
 3.0799327
-1.53715
-0.542782

-0.921235
 1.875991
 0.04524426

 0.0528909755
-0.204043
 1.15115158

!msgpostfix CIELAB <-> RGB conversions\n

!need all
7.7870370370
0.0088564516790

# 16/116
0.13793103448275862

903.3


# RGB Working Space  	Reference White  	RGB to XYZ [M]  	XYZ to RGB [M]-1

!msgpostfix Conversion from Adobe RGB (1998) to 1931 CIE XYZ (D65 reference white)\n
!need all
 0.5767309
 0.1855540
 0.1881852
 0.2973769
 0.6273491
 0.0752741
 0.0270343
 0.0706872
 0.9911085

Conversion from 1931 CIE XYZ to Adobe RGB (1998) (D65 reference white)\n
!need all
 2.0413690
-0.5649464
-0.3446944
-0.9692660
 1.8760108
 0.0415560
 0.0134474
-0.1183897
 1.0154096

!msgpostfix Conversion from AppleRGB to 1931 CIE XYZ (D65 reference white)\n
!need all
 0.4497288
 0.3162486
 0.1844926
 0.2446525
 0.6720283
 0.0833192
 0.0251848
 0.1411824
 0.9224628

!msgpostfix Conversion from 1931 CIE XYZ to AppleRGB (D65 reference white)\n
!need all
 2.9515373
-1.2894116
-0.4738445
-1.0851093
 1.9908566
 0.0372026
 0.0854934
-0.2694964
 1.0912975

!msgpostfix Conversion from Best RGB to 1931 CIE XYZ (D60 reference white)\n
!need all
 0.6326696
 0.2045558
 0.1269946
 0.2284569
 0.7373523
 0.0341908
# 0.0000000
 0.0095142
 0.8156958

!msgpostfix Conversion from 1931 CIE XYZ to Best RGB (D50 reference white)\n
!need all
 1.7552599
-0.4836786
-0.2530000
-0.5441336
 1.5068789
 0.0215528
 0.0063467
-0.0175761
 1.2256959

!msgpostfix Conversion from Beta RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.6712537
 0.1745834
 0.1183829
 0.3032726
 0.6637861
 0.0329413
# 0.0000000
 0.0407010
 0.7845090

!msgpostfix Conversion from 1931 CIE XYZ to Beta RGB (D50 reference white)\n
!need all
 1.6832270
-0.4282363
-0.2360185
-0.7710229
 1.7065571
 0.0446900
 0.0400013
-0.0885376
 1.2723640

!msgpostfix Conversion from Bruce RGB to 1931 CIE XYZ (D65 reference white)\n
!need all
 0.4674162
 0.2944512
 0.1886026
 0.2410115
 0.6835475
 0.0754410
 0.0219101
 0.0736128
 0.9933071

!msgpostfix Conversion from 1931 CIE XYZ to Bruce RGB (D65 reference white)\n
!need all
 2.7454669
-1.1358136
-0.4350269
-0.9692660
 1.8760108
 0.0415560
 0.0112723
-0.1139754
 1.0132541

!msgpostfix Conversion from CIE RGB to 1931 CIE XYZ (E reference white)\n
!need all
 0.4887180
 0.3106803
 0.2006017
 0.1762044
 0.8129847
 0.0108109
# 0.0000000
 0.0102048
 0.9897952

!msgpostfix Conversion from 1931 CIE XYZ to CIE RGB (E reference white)\n
!need all
 2.3706743
-0.9000405
-0.4706338
-0.5138850
 1.4253036
 0.0885814
 0.0052982
-0.0146949
 1.0093968

!msgpostfix Conversion from ColorMatch RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.5093439
 0.3209071
 0.1339691
 0.2748840
 0.6581315
 0.0669845
 0.0242545
 0.1087821
 0.6921735

!msgpostfix Conversion from 1931 CIE XYZ to ColorMatch RGB (D50 reference white)\n
!need all
 2.6422874
-1.2234270
-0.3930143
-1.1119763
 2.0590183
 0.0159614
 0.0821699
-0.2807254
 1.4559877

!msgpostfix Conversion from Don RGB 4 to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.6457711
 0.1933511
 0.1250978
 0.2783496
 0.6879702
 0.0336802
 0.0037113
 0.0179861
 0.8035125

!msgpostfix Conversion from 1931 CIE XYZ to Don RGB 4 (D50 reference white)\n
!need all
 1.7603902
-0.4881198
-0.2536126
-0.7126288
 1.6527432
 0.0416715
 0.0078207
-0.0347411
 1.2447743

!msgpostfix Conversion from ECI RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.6502043
 0.1780774
 0.1359384
 0.3202499
 0.6020711
 0.0776791
#-0.0000000
 0.0678390
 0.7573710

!msgpostfix Conversion from 1931 CIE XYZ to ECI RGB (D50 reference white)\n
!need all
 1.7827618
-0.4969847
-0.2690101
-0.9593623
 1.9477962
-0.0275807
 0.0859317
-0.1744674
 1.3228273

!msgpostfix Conversion from Ekta Space PS5 to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.5938914
 0.2729801
 0.0973485
 0.2606286
 0.7349465
 0.0044249
# 0.0000000
 0.0419969
 0.7832131

!msgpostfix Conversion from 1931 CIE XYZ to Ekta Space PS5 (D50 reference white)\n
!need all
 2.0043819
-0.7304844
-0.2450052
-0.7110285
 1.6202126
 0.0792227
 0.0381263
-0.0868780
 1.2725438

!msgpostfix Conversion from NTSC RGB to 1931 CIE XYZ (C reference white)\n
!need all
 0.6068909
 0.1735011
 0.2003480
 0.2989164
 0.5865990
 0.1144845
#-0.0000000
 0.0660957
 1.1162243

!msgpostfix Conversion from 1931 CIE XYZ to NTSC RGB (C reference white)\n
!need all
 1.9099961
-0.5324542
-0.2882091
-0.9846663
 1.9991710
-0.0283082
 0.0583056
-0.1183781
 0.8975535

!msgpostfix Conversion from PAL/SECAM RGB to 1931 CIE XYZ (D65 reference white)\n
!need all
 0.4306190
 0.3415419
 0.1783091
 0.2220379
 0.7066384
 0.0713236
 0.0201853
 0.1295504
 0.9390944

!msgpostfix Conversion from 1931 CIE XYZ to PAL/SECAM RGB (D65 reference white)\n
!need all
 3.0628971
-1.3931791
-0.4757517
-0.9692660
 1.8760108
 0.0415560
 0.0678775
-0.2288548
 1.0693490

!msgpostfix Conversion from ProPhoto RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.7976749
 0.1351917
 0.0313534
 0.2880402
 0.7118741
 0.0000857
# 0.0000000
# 0.0000000
 0.8252100

!msgpostfix Conversion from 1931 CIE XYZ to ProPhoto RGB (D50 reference white)\n
!need all
 1.3459433
-0.2556075
-0.0511118
-0.5445989
 1.5081673
 0.0205351
# 0.0000000
# 0.0000000
 1.2118128

!msgpostfix Conversion from SMPTE-C RGB to 1931 CIE XYZ (D65 reference white)\n
!need all
 0.3935891
 0.3652497
 0.1916313
 0.2124132
 0.7010437
 0.0865432
 0.0187423
 0.1119313
 0.9581563

!msgpostfix Conversion from 1931 CIE XYZ to SMPTE-C RGB (D65 reference white)\n
!need all
 3.5053960
-1.7394894
-0.5439640
-1.0690722
 1.9778245
 0.0351722
 0.0563200
-0.1970226
 1.0502026

!msgpostfix Conversion from sRGB to 1931 CIE XYZ (D65 reference white)\n
!need all
 0.4124564
 0.3575761
 0.1804375
 0.2126729
 0.7151522
 0.0721750
 0.0193339
 0.1191920
 0.9503041

!msgpostfix Conversion from 1931 CIE XYZ to sRGB (D65 reference white)\n
!need all
 3.2404542
-1.5371385
-0.4985314
-0.9692660
 1.8760108
 0.0415560
 0.0556434
-0.2040259
 1.0572252

!msgpostfix Conversion from Wide Gamut RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.7161046
 0.1009296
 0.1471858
 0.2581874
 0.7249378
 0.0168748
# 0.0000000
 0.0517813
 0.7734287

!msgpostfix Conversion from 1931 CIE XYZ to Wide Gamut RGB (D50 reference white)\n
!need all
 1.4628067
-0.1840623
-0.2743606
-0.5217933
 1.4472381
 0.0677227
 0.0349342
-0.0968930
 1.2884099

# For those RGB working spaces that are not natively D50, the Bradford-adapted, D50 matrices are:
# RGB Working Space 	Reference White 	RGB to XYZ [M] 	XYZ to RGB [M]-1

!msgpostfix Conversion from Adobe RGB (1998) to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.6097559
 0.2052401
 0.1492240
 0.3111242
 0.6256560
 0.0632197
 0.0194811
 0.0608902
 0.7448387

!msgpostfix Conversion from 1931 CIE XYZ to Adobe RGB (1998) (D50 reference white)\n
!need all
 1.9624274
-0.6105343
-0.3413404
-0.9787684
 1.9161415
 0.0334540
 0.0286869
-0.1406752
 1.3487655

!msgpostfix Conversion from AppleRGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.4755678
 0.3396722
 0.1489800
 0.2551812
 0.6725693
 0.0722496
 0.0184697
 0.1133771
 0.6933632

!msgpostfix Conversion from 1931 CIE XYZ to AppleRGB (D50 reference white)\n
!need all
 2.8510695
-1.3605261
-0.4708281
-1.0927680
 2.0348871
 0.0227598
 0.1027403
-0.2964984
 1.4510659

!msgpostfix Conversion from Bruce RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.4941816
 0.3204834
 0.1495550
 0.2521531
 0.6844869
 0.0633600
 0.0157886
 0.0629304
 0.7464909

!msgpostfix Conversion from 1931 CIE XYZ to Bruce RGB (D50 reference white)\n
!need all
 2.6502856
-1.2014485
-0.4289936
-0.9787684
 1.9161415
 0.0334540
 0.0264570
-0.1361227
 1.3458542

!msgpostfix Conversion from CIE RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.4868870
 0.3062984
 0.1710347
 0.1746583
 0.8247541
 0.0005877
-0.0012563
 0.0169832
 0.8094831

!msgpostfix Conversion from 1931 CIE XYZ to CIE RGB (D50 reference white)\n
!need all
 2.3638081
-0.8676030
-0.4988161
-0.5005940
 1.3962369
 0.1047562
 0.0141712
-0.0306400
 1.2323842

!msgpostfix Conversion from NTSC RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.6343706
 0.1852204
 0.1446290
 0.3109496
 0.5915984
 0.0974520
-0.0011817
 0.0555518
 0.7708399

!msgpostfix Conversion from 1931 CIE XYZ to NTSC RGB (D50 reference white)\n
!need all
 1.8464881
-0.5521299
-0.2766458
-0.9826630
 2.0044755
-0.0690396
 0.0736477
-0.1453020
 1.3018376

!msgpostfix Conversion from PAL/SECAM RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.4552773
 0.3675500
 0.1413926
 0.2323025
 0.7077956
 0.0599019
 0.0145457
 0.1049154
 0.7057489

!msgpostfix Conversion from PAL/SECAM RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 2.9603944
-1.4678519
-0.4685105
-0.9787684
 1.9161415
 0.0334540
 0.0844874
-0.2545973
 1.4216174

!msgpostfix Conversion from SMPTE-C RGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.4163290
 0.3931464
 0.1547446
 0.2216999
 0.7032549
 0.0750452
 0.0136576
 0.0913604
 0.7201920

!msgpostfix Conversion from 1931 CIE XYZ to SMPTE-C RGB (D50 reference white)\n
!need all
 3.3921940
-1.8264027
-0.5385522
-1.0770996
 2.0213975
 0.0207989
 0.0723073
-0.2217902
 1.3960932

!msgpostfix Conversion from sRGB to 1931 CIE XYZ (D50 reference white)\n
!need all
 0.4360747
 0.3850649
 0.1430804
 0.2225045
 0.7168786
 0.0606169
 0.0139322
 0.0971045
 0.7141733

!msgpostfix Conversion from 1931 CIE XYZ to sRGB (D50 reference white)\n
!need all
 3.1338561
-1.6168667
-0.4906146
-0.9787684
 1.9161415
 0.0334540
 0.0719453
-0.2289914
 1.4052427

!msgpostfix CIE Standard Illuminant D65 white point (XYZ tristimulus values)\n
!need all
 0.950456
# 1.000000
 1.088754


!msgpostfix HDTV (ITU-R BT.709), sRGB primary colors\n
!need all
0.64
0.33
0.30
0.60
0.15
0.06

!msgpostfix scRGB primary colors\n
!need all
0.64
0.33
0.30
0.60
0.15
0.06

!msgpostfix ROMM RGB primary colors\n
!need all
0.7347
0.2653
0.1596
0.8404
0.0366
0.0001

!msgpostfix Adobe RGB 98 primary colors\n
!need all
0.64
0.33
0.21
0.71
0.15
0.06

!msgpostfix Apple RGB primary colors\n
!need all
0.625
0.34
0.28
0.595
0.155
0.07

!msgpostfix NTSC (1953) (FCC 1953, ITU-R BT.470 System M) primary colors\n
!need all
0.67
0.33
0.21
0.71
0.14
0.08

!msgpostfix NTSC (1987) (SMPTE RP 145 "SMPTE C") primary colors\n
!need all
0.63
0.34
0.31
0.595
0.155
0.07

!msgpostfix PAL/SECAM (1970) (EBU 3213, ITU-R BT.470 System B, G) primary colors\n
!need all
0.64
0.33
0.29
0.60
0.15
0.06

!msgpostfix Adobe Wide Gamut RGB primary colors\n
!need all
0.735
0.265
0.115
0.826
0.157
0.018

!msgpostfix CIE (1931) E primary colors\n
!need all
0.7347
0.2653
0.2738
0.7174
0.1666
0.0089


# See www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html

!msgpostfix Bradford Chromatic Adaptation\n

!need all
 0.8951000
 0.2664000
-0.1614000
-0.7502000
 1.7135000
 0.0367000
 0.0389000
-0.0685000
 1.0296000

!msgpostfix Inverse Bradford Chromatic Adaptation\n

!need all
 0.9869929
-0.1470543
 0.1599627
 0.4323053
 0.5183603
 0.0492912
-0.0085287
 0.0400428
 0.9684867

!msgpostfix Von Kries Chromatic Adaptation\n

!need all
 0.4002400
 0.7076000
-0.0808100
-0.2263000
 1.1653200
 0.0457000
# 0.0000000
# 0.0000000
 0.9182200

!msgpostfix Inverse Von Kries Chromatic Adaptation\n

!need all
 1.8599364
-1.1293816
 0.2198974
 0.3611914
 0.6388125
-0.0000064
# 0.0000000
# 0.0000000
 1.0890636


!msgpostfix Recommendation BT.709 RGB to CIE XYZ\n

!need all
0.412453
0.357580
0.180423
0.212671
0.715160
0.072169
0.019334
0.119193
0.950227


!msgpostfix CIE XYZ to Recommendation BT.709 RGB\n

!need all
 3.240479  
-1.53715  
-0.498535
-0.969256   
 1.875991  
 0.041556
 0.055648  
-0.204043  
 1.057311


!msgpostfix Convert analog R'G'B' to analog YPbPr (ITU-R BT.601)\n

!need all
0.299
0.587
0.114
0.168736
0.331264
#0.5
0.418688
0.081312


!msgpostfix Convert analog R'G'B' to d igital Y?CbCr (8 bits per sample)\n

!need all
  65.481
 128.553
  24.966
- 37.797
  74.203
 112.0
 112.0
  93.786
  18.214


!msgpostfix Convert digital R'dG'dB'd (8 bits per sample) to digital Y?CbCr\n

!need all
# 65.738 / 256
 0.2567890625
#129.057 / 256
 0.5041289062
# 25.064 / 256
 0.0979062500
#-37.945 / 256
-0.1482226562
# 74.494 / 256
 0.2909921875
#112.439 / 256
 0.4392148437
# 94.154 / 256
 0.3677890625
# 18.285 / 256
 0.0714257812


!msgpostfix Convert digital Y?CbCr to digital R'dG'dB'd (8 bits per sample)\n

!need all
# 298.082 / 256
  1.1643828125
# 408.583 / 256
  1.5960273437
# 298.082 / 256
  1.1643828125
# 100.291 / 256
  0.3917617187
# 208.120 / 256
  0.8129687500
135.576
# 298.082 / 256
  1.1643828125
# 516.412 / 256
  2.0172343750
276.836


!msgpostfix Convert YCbCr to digital RGB (TIFF 6.0, Jun 1992)\n

!need all
 1.40200
-0.34414
-0.71414
 1.77200


!msgpostfix Convert RGB to LMS for color deficient users\n

!need all
0.05059983
0.08585369
0.00952420

0.01893033
0.08925308
0.01370054

0.00292202
0.00975732
0.07145979


!msgpostfix Convert LMS to RGB for color deficient users\n

!need all
 30.830854
-29.832659
  1.610474

- 6.481468
 17.715578
- 2.532642

- 0.375690
- 1.199062
 14.273846


!msgpostfix Convert XYZ to RGB PhotoYCC\n

!need all
 3.2410
-1.5374
-0.4986

-0.9692
 1.8760
 0.0416

 0.0556
-0.2040
 1.0570


!msgpostfix Convert XYZ PCS to RGB ROMM\n

!need all
 1.3460
-0.2556
-0.0511
-0.5446
 1.5082
 0.0205
# 0.0000
# 0.0000
 1.2123


!msgpostfix Convert RGB ROMM to XYZ PCS\n

!need all
0.7977
0.1352
0.0313
0.2880
0.7119
0.0001
# 0.0000
# 0.0000
0.8249


!msgpostfix Convert RGB ROMM to sRGB\n

!need all
 2.0564
-0.7932
-0.2632
-0.2118
 1.2490
-0.0372
-0.0152
-0.1405
 1.1556

!msgpostfix Convert sRGB to RGB ROMM\n

!need all
0.5230
0.3468
0.1303
0.0892
0.8627
0.0481
0.0177
0.1095
0.8729


!msgpostfix Convert RGB to Y'UV\n

!need all
 0.299
 0.587
 0.114
-0.14713
-0.28886
 0.436
 0.615
-0.51499
-0.10001


!msgpostfix Convert Y'UV to RGB\n
 
!need all
# 1.0
# 0.0
 1.13983
# 1.0
-0.39465
-0.58060
# 1.0
 2.03211
# 0.0

!msgpostfix Conversion from PAL/SECAM RGB to XYZ (D65 reference white)\n
!need all
0.430587
0.222021
0.0201837

0.341545
0.706645
0.129551

0.178336
0.0713342
0.939234

!msgpostfix Conversion from XYZ to PAL/SECAM RGB (D65 reference white)\n
!need all
 3.06313
-0.969258
 0.0678674

-1.39328
 1.87599
-0.228821

-0.475788
 0.0415557
 1.06919

!msgpostfix Conversion from RGB float to YUV\n
!need all
0.257
0.504
0.098

-0.148
 0.291
 0.439

0.439
0.368
0.071

!msgpostfix Conversion from YUV to RGB float\n
!need all
 1.596
-0.391
-0.813
 2.018

!msgpostfix Luminance calculation according to ITU-R Rec. 709 (1990)\n
!need all
0.2125
0.7154
0.0721

!need all
!msgpostfix Luminance calculation according to FCC\n
0.30
0.59
0.11

!msgpostfix Luminance calculation according to ITU-R Rec. 624-4 System B, G\n
!need all
0.299
0.587
0.114

!msgpostfix Luminance calculation according to SMPTE 170M\n
!need all
0.299
0.587
0.114

!msgpostfix Luminance calculation according to SMPTE 240M (1987)\n
!need all
0.212
0.701
0.087

!msgpostfix Standard white point, CIE 1931 Illuminant A\n
!need all
0.44757
0.40745

!msgpostfix Standard white point, CIE 1964 Illuminant A\n
!need all
0.4512
0.4059

!msgpostfix Standard white point, CIE 1931 Illuminant B\n
!need all
0.34842
0.35161

!msgpostfix Standard white point, CIE 1964 Illuminant B\n
!need all
0.3498
0.3527

!msgpostfix Standard white point, CIE 1931 Illuminant C\n
!need all
0.31006
0.31616

!msgpostfix Standard white point, CIE 1964 Illuminant C\n
!need all
0.3104
0.3191

!msgpostfix Standard white point, CIE 1931 Illuminant D65\n
!need all
0.3127
0.3291

!msgpostfix Standard white point, CIE 1964 Illuminant D65\n
!need all
0.3138
0.3310

#!msgpostfix Standard white point, CIE 1931 Illuminant D65\n
#!need all
#0.312713
#0.329016

!msgpostfix Standard white point, CIE 1931 Direct Sunlight\n
!need all
0.3362
0.3502

!msgpostfix Standard white point, CIE 1931 Light from overcast sky\n
!need all
0.3134
0.3275

!msgpostfix Standard white point, CIE 1931 Light from north sky on a 45-degree plane\n
!need all
0.2773
0.2934

!msgpostfix Convert sRGB to linear RGB\n
!need all
12.92
 0.04045
 0.055
 2.4
 1.055

!msgpostfix Convert linear RGB to sRGB\n
!need all
12.92
 0.0031308
 1.055
 2.4
 0.055

