summaryrefslogtreecommitdiff
path: root/third_party/lcms2-2.6/src/cmsvirt.c
diff options
context:
space:
mode:
authorScott Graham <scottmg@chromium.org>2016-12-02 10:39:09 -0800
committerScott Graham <scottmg@chromium.org>2016-12-02 10:39:09 -0800
commit8b6a0a540563c6308fa03df34c90257e0bb65598 (patch)
tree8cf35715f38d41428c8c1cbddd07a0b258f78e9a /third_party/lcms2-2.6/src/cmsvirt.c
parent959a904f3877d338d784c573487d90de87cb25ac (diff)
downloadpdfium-8b6a0a540563c6308fa03df34c90257e0bb65598.tar.xz
Encode lcms files as utf-8
The diff isn't well displayed in Rietveld, and I had to do some interpretation here, as it wasn't clear what code page these files were pretending to use. The left quotes were 0x92, the right quote + \n had been converted to ?, and the negative infinity was 0x96. (I assume maybe Mac something.) In any case, I tried to interpret the comments and make them something sensible. In the worst case, it's "only" comments that are broken, as no actual code was modified. R=tsepez@chromium.org, brucedawson@chroium.org BUG=637203,454858 Review URL: https://codereview.chromium.org/2545593002 .
Diffstat (limited to 'third_party/lcms2-2.6/src/cmsvirt.c')
-rw-r--r--third_party/lcms2-2.6/src/cmsvirt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/third_party/lcms2-2.6/src/cmsvirt.c b/third_party/lcms2-2.6/src/cmsvirt.c
index b324c9902a..d19ace1651 100644
--- a/third_party/lcms2-2.6/src/cmsvirt.c
+++ b/third_party/lcms2-2.6/src/cmsvirt.c
@@ -612,18 +612,18 @@ cmsHPROFILE CMSEXPORT cmsCreateXYZProfile(void)
//sRGB Curves are defined by:
//
-//If R’sRGB,G’sRGB, B’sRGB < 0.04045
+//If R'sRGB,G'sRGB, B'sRGB < 0.04045
//
-// R = R’sRGB / 12.92
-// G = G’sRGB / 12.92
-// B = B’sRGB / 12.92
+// R = R'sRGB / 12.92
+// G = G'sRGB / 12.92
+// B = B'sRGB / 12.92
//
//
-//else if R’sRGB,G’sRGB, B’sRGB >= 0.04045
+//else if R'sRGB,G'sRGB, B'sRGB >= 0.04045
//
-// R = ((R’sRGB + 0.055) / 1.055)^2.4
-// G = ((G’sRGB + 0.055) / 1.055)^2.4
-// B = ((B’sRGB + 0.055) / 1.055)^2.4
+// R = ((R'sRGB + 0.055) / 1.055)^2.4
+// G = ((G'sRGB + 0.055) / 1.055)^2.4
+// B = ((B'sRGB + 0.055) / 1.055)^2.4
static
cmsToneCurve* Build_sRGBGamma(cmsContext ContextID)