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

Issue 1952063002: Create SkColorSpaceXform to handle color conversions (Closed)

Created:
4 years, 7 months ago by msarett
Modified:
4 years, 6 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Create SkColorSpaceXform to handle color conversions Also adds testing of qcms color correction, so we can compare SkColorSpaceXform outputs to qcms outputs. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1952063002 Committed: https://skia.googlesource.com/skia/+/740cc88ee3d63c75e52d31238f2a32600cc57a8c Committed: https://skia.googlesource.com/skia/+/9876ac5b3016e5353c072378ac1545a0a2270757

Patch Set 1 : #

Patch Set 2 : Comments #

Total comments: 9

Patch Set 3 : Fix gamma bug #

Patch Set 4 : Response to comments #

Total comments: 5

Patch Set 5 : Multiply by the inverse of 255.0f #

Total comments: 7

Patch Set 6 : Rebase and compare with qcms #

Patch Set 7 : Add private API to allow test code to access ICC data #

Total comments: 10

Patch Set 8 : Response to comments #

Patch Set 9 : Add documentation about not premultiplying #

Patch Set 10 : Rebase #

Patch Set 11 : Disable qcms tests on Google3 #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -76 lines) Patch
M dm/DM.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -8 lines 0 comments Download
M dm/DMSrcSink.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -2 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +60 lines, -57 lines 0 comments Download
M gyp/core.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M gyp/ports.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M gyp/qcms.gyp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M include/codec/SkCodec.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +14 lines, -0 lines 0 comments Download
M src/codec/SkJpegCodec.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -1 line 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 2 3 4 5 6 7 8 9 6 chunks +16 lines, -7 lines 0 comments Download
A src/core/SkColorSpaceXform.h View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download
A src/core/SkColorSpaceXform.cpp View 1 2 3 4 5 1 chunk +109 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (22 generated)
msarett
Here's a new design that treats the color conversion as a separate pass on a ...
4 years, 7 months ago (2016-05-04 22:52:49 UTC) #4
Brian Osman
https://codereview.chromium.org/1952063002/diff/40001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1952063002/diff/40001/dm/DMSrcSink.cpp#newcode1025 dm/DMSrcSink.cpp:1025: // prettier than normal) if there are no bugs ...
4 years, 7 months ago (2016-05-05 13:29:44 UTC) #5
herb_g
lgtm https://codereview.chromium.org/1952063002/diff/40001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1952063002/diff/40001/dm/DMSrcSink.cpp#newcode988 dm/DMSrcSink.cpp:988: switch (r) { Should be an if statement. ...
4 years, 7 months ago (2016-05-05 14:44:51 UTC) #6
herb_g
On 2016/05/05 14:44:51, herb_g wrote: > lgtm > > https://codereview.chromium.org/1952063002/diff/40001/dm/DMSrcSink.cpp > File dm/DMSrcSink.cpp (right): > ...
4 years, 7 months ago (2016-05-05 14:46:14 UTC) #7
msarett
https://codereview.chromium.org/1952063002/diff/40001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1952063002/diff/40001/dm/DMSrcSink.cpp#newcode988 dm/DMSrcSink.cpp:988: switch (r) { On 2016/05/05 14:44:50, herb_g wrote: > ...
4 years, 7 months ago (2016-05-05 15:49:05 UTC) #8
herb_g
https://codereview.chromium.org/1952063002/diff/80001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (right): https://codereview.chromium.org/1952063002/diff/80001/src/core/SkColorSpaceXform.cpp#newcode50 src/core/SkColorSpaceXform.cpp:50: size_t dstRowBytes, size_t srcRowBytes) const { Do you plan ...
4 years, 7 months ago (2016-05-05 17:36:43 UTC) #9
msarett
https://codereview.chromium.org/1952063002/diff/80001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (right): https://codereview.chromium.org/1952063002/diff/80001/src/core/SkColorSpaceXform.cpp#newcode50 src/core/SkColorSpaceXform.cpp:50: size_t dstRowBytes, size_t srcRowBytes) const { On 2016/05/05 17:36:42, ...
4 years, 7 months ago (2016-05-05 17:47:10 UTC) #10
mtklein
https://codereview.chromium.org/1952063002/diff/80001/src/core/SkColorSpaceXform.cpp File src/core/SkColorSpaceXform.cpp (right): https://codereview.chromium.org/1952063002/diff/80001/src/core/SkColorSpaceXform.cpp#newcode56 src/core/SkColorSpaceXform.cpp:56: float r = ((rgba >> 0) & 0xFF) / ...
4 years, 7 months ago (2016-05-05 17:50:51 UTC) #11
scroggo
https://codereview.chromium.org/1952063002/diff/100001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1952063002/diff/100001/dm/DMSrcSink.cpp#newcode997 dm/DMSrcSink.cpp:997: sk_sp<SkColorSpace> srcSpace = sk_ref_sp(codec->getColorSpace()); Should we update the API ...
4 years, 7 months ago (2016-05-05 20:57:26 UTC) #12
msarett
https://codereview.chromium.org/1952063002/diff/100001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1952063002/diff/100001/dm/DMSrcSink.cpp#newcode997 dm/DMSrcSink.cpp:997: sk_sp<SkColorSpace> srcSpace = sk_ref_sp(codec->getColorSpace()); On 2016/05/05 20:57:26, scroggo wrote: ...
4 years, 7 months ago (2016-05-05 21:34:26 UTC) #13
scroggo
https://codereview.chromium.org/1952063002/diff/100001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): https://codereview.chromium.org/1952063002/diff/100001/dm/DMSrcSink.cpp#newcode1005 dm/DMSrcSink.cpp:1005: return Error::Nonfatal("Xform is not implemented yet."); On 2016/05/05 21:34:26, ...
4 years, 7 months ago (2016-05-06 13:50:00 UTC) #14
msarett
Please take a look. I've rebased this and taken it in a new direction. It ...
4 years, 7 months ago (2016-05-26 21:37:35 UTC) #17
reed1
1. just 32bit sees a little restrictive, but maybe that's fine? 2. do we really ...
4 years, 6 months ago (2016-05-27 14:48:42 UTC) #18
msarett
> 1. just 32bit sees a little restrictive, but maybe that's fine? Yeah it is ...
4 years, 6 months ago (2016-05-31 17:15:29 UTC) #21
scroggo
Can you add a comment in the commit message regarding qcms? https://codereview.chromium.org/1952063002/diff/200001/dm/DMSrcSink.cpp File dm/DMSrcSink.cpp (right): ...
4 years, 6 months ago (2016-05-31 21:13:34 UTC) #22
msarett
> Can you add a comment in the commit message regarding qcms? Yes! Done. https://codereview.chromium.org/1952063002/diff/200001/dm/DMSrcSink.cpp ...
4 years, 6 months ago (2016-05-31 22:02:19 UTC) #24
reed1
1. Doh, I didn't notice it was just 1 row. Makes sense to create a ...
4 years, 6 months ago (2016-05-31 22:31:22 UTC) #25
msarett
> 2. Does the output have to be premultiplied? Is that easier/harder for the > ...
4 years, 6 months ago (2016-05-31 23:01:23 UTC) #26
scroggo
lgtm
4 years, 6 months ago (2016-06-01 13:23:54 UTC) #27
reed1
We may need the premul option, but at least we are well documented at the ...
4 years, 6 months ago (2016-06-01 13:52:56 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952063002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952063002/240001
4 years, 6 months ago (2016-06-01 14:03:58 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/8823)
4 years, 6 months ago (2016-06-01 14:08:09 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952063002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952063002/240001
4 years, 6 months ago (2016-06-01 14:18:36 UTC) #35
commit-bot: I haz the power
Failed to apply patch for include/codec/SkCodec.h: While running git apply --index -3 -p1; error: patch ...
4 years, 6 months ago (2016-06-01 14:33:31 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952063002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952063002/260001
4 years, 6 months ago (2016-06-01 14:39:53 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:260001) as https://skia.googlesource.com/skia/+/740cc88ee3d63c75e52d31238f2a32600cc57a8c
4 years, 6 months ago (2016-06-01 14:55:34 UTC) #42
msarett
A revert of this CL (patchset #10 id:260001) has been created in https://codereview.chromium.org/2023093004/ by msarett@google.com. ...
4 years, 6 months ago (2016-06-01 16:15:49 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952063002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952063002/280001
4 years, 6 months ago (2016-06-01 16:51:30 UTC) #46
msarett
I've disabled the qcms tests on Google3. I don't really see any reason to try ...
4 years, 6 months ago (2016-06-01 16:53:54 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-01 17:04:59 UTC) #49
scroggo
On 2016/06/01 16:53:54, msarett wrote: > I've disabled the qcms tests on Google3. I don't ...
4 years, 6 months ago (2016-06-01 19:10:42 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952063002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952063002/300001
4 years, 6 months ago (2016-06-01 21:29:39 UTC) #53
commit-bot: I haz the power
4 years, 6 months ago (2016-06-01 21:47:24 UTC) #55
Message was sent while issue was closed.
Committed patchset #12 (id:300001) as
https://skia.googlesource.com/skia/+/9876ac5b3016e5353c072378ac1545a0a2270757

Powered by Google App Engine
This is Rietveld 408576698