Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Issue 1494473003: [qcms] Add a color profile white point transform api (Closed)

Created:
5 years ago by Noel Gordon
Modified:
5 years ago
CC:
chromium-reviews, radu.velea
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[qcms] Add a color profile white point transform api Use the chain tool to compute how a given color profile transforms white input to XYZ PCS (profile connection space). No change in behavior, no new tests. Tested with an iMac P3 profile: the returned XYZ result is exactly D50 white: [0.9642, 1.0000, 0.8249]. BUG=564355 Committed: https://crrev.com/cba2c8d41687786279d539071b3b957423f43cb1 Cr-Commit-Position: refs/heads/master@{#362927}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Ditch the static #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M third_party/qcms/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/qcms/src/chain.c View 1 4 chunks +33 lines, -1 line 0 comments Download
M third_party/qcms/src/qcms.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
Noel Gordon
https://codereview.chromium.org/1494473003/diff/1/third_party/qcms/src/chain.c File third_party/qcms/src/chain.c (right): https://codereview.chromium.org/1494473003/diff/1/third_party/qcms/src/chain.c#newcode1013 third_party/qcms/src/chain.c:1013: XYZ[0] *= 1.999969482421875f; Note: qcms_modular_transform_data internally scales XYZ by ...
5 years ago (2015-12-02 10:38:34 UTC) #3
robert.bradford
https://codereview.chromium.org/1494473003/diff/1/third_party/qcms/src/chain.c File third_party/qcms/src/chain.c (right): https://codereview.chromium.org/1494473003/diff/1/third_party/qcms/src/chain.c#newcode1001 third_party/qcms/src/chain.c:1001: static qcms_profile xyz_pcs_profile; What's the rationale for this? Is ...
5 years ago (2015-12-02 15:25:39 UTC) #5
Justin Novosad
https://codereview.chromium.org/1494473003/diff/1/third_party/qcms/src/chain.c File third_party/qcms/src/chain.c (right): https://codereview.chromium.org/1494473003/diff/1/third_party/qcms/src/chain.c#newcode1003 third_party/qcms/src/chain.c:1003: if (xyz_pcs_profile.pcs != XYZ_SIGNATURE) { Is qcms not concerned ...
5 years ago (2015-12-02 15:40:08 UTC) #6
Noel Gordon
PTAL https://codereview.chromium.org/1494473003/diff/1/third_party/qcms/src/chain.c File third_party/qcms/src/chain.c (right): https://codereview.chromium.org/1494473003/diff/1/third_party/qcms/src/chain.c#newcode1001 third_party/qcms/src/chain.c:1001: static qcms_profile xyz_pcs_profile; Nope, not perf critical. The ...
5 years ago (2015-12-03 03:14:51 UTC) #7
Justin Novosad
On 2015/12/03 03:14:51, noel gordon wrote: > > Yes it is, always. We currently create ...
5 years ago (2015-12-03 03:39:20 UTC) #8
Noel Gordon
On 2015/12/03 03:39:20, Justin Novosad wrote: > On 2015/12/03 03:14:51, noel gordon wrote: > > ...
5 years ago (2015-12-03 07:16:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1494473003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1494473003/20001
5 years ago (2015-12-03 07:19:42 UTC) #11
Noel Gordon
> On 2015/12/03 03:14:51, noel gordon wrote: > > > > Yes it is, always. ...
5 years ago (2015-12-03 07:24:14 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-03 07:25:19 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/cba2c8d41687786279d539071b3b957423f43cb1 Cr-Commit-Position: refs/heads/master@{#362927}
5 years ago (2015-12-03 07:27:01 UTC) #16
Justin Novosad
On 2015/12/03 07:24:14, noel gordon wrote: > > On 2015/12/03 03:14:51, noel gordon wrote: > ...
5 years ago (2015-12-03 18:20:10 UTC) #17
Noel Gordon
On 2015/12/03 18:20:10, Justin Novosad wrote: > On 2015/12/03 07:24:14, noel gordon wrote: > > ...
5 years ago (2015-12-03 22:39:11 UTC) #18
Noel Gordon
5 years ago (2015-12-03 23:01:12 UTC) #19
Message was sent while issue was closed.
+ // A properly created color profile should produce Y=~1.0 in PCS XYZ with
white
+ // input (the D50 test). If it does not, then the profile is likely bogus.

We should fix this comment sometime, if it implies that only Y matters in a
bogus test.

X Y Z all matter in a bogus test: the XYZ should match D50 XYZ to some
tolerance.

Powered by Google App Engine
This is Rietveld 408576698