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

Issue 2162063003: Tune linear->sRGB constants to round-trip all bytes. (Closed)

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

Description

Tune linear->sRGB constants to round-trip all bytes. I basically just ran a big 5-deep for-loop over the five constants here. This is the first set of coefficients I found that round trips all bytes. I suspect there are many such sets. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2162063003 CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Committed: https://skia.googlesource.com/skia/+/566ea9b9fc6746ffad390a4029e56d985eb2aec8

Patch Set 1 #

Total comments: 1

Patch Set 2 : Trunc version. #

Total comments: 1

Patch Set 3 : Update bench (no need to clamp now). #

Patch Set 4 : Best at 137 #

Patch Set 5 : No monotonicity regressions. #

Patch Set 6 : Trim phony precision. #

Patch Set 7 : More phony precision. #

Total comments: 2

Patch Set 8 : Update NEON comment. Better than before. #

Patch Set 9 : Perfect 131 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -71 lines) Patch
M bench/SkRasterPipelineBench.cpp View 1 2 2 chunks +6 lines, -16 lines 0 comments Download
M src/core/SkSRGB.h View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -17 lines 0 comments Download
M src/opts/SkColorXform_opts.h View 1 3 chunks +19 lines, -24 lines 0 comments Download
M tests/SRGBTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -14 lines 0 comments Download

Messages

Total messages: 41 (23 generated)
mtklein_C
4 years, 5 months ago (2016-07-20 00:18:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2162063003/1
4 years, 5 months ago (2016-07-20 00:18:44 UTC) #5
mtklein
https://codereview.chromium.org/2162063003/diff/1/src/core/SkSRGB.h File src/core/SkSRGB.h (right): https://codereview.chromium.org/2162063003/diff/1/src/core/SkSRGB.h#newcode36 src/core/SkSRGB.h:36: // to find one that round trips all bytes ...
4 years, 5 months ago (2016-07-20 00:57:50 UTC) #7
mtklein
On 2016/07/20 00:57:50, mtklein wrote: > https://codereview.chromium.org/2162063003/diff/1/src/core/SkSRGB.h > File src/core/SkSRGB.h (right): > > https://codereview.chromium.org/2162063003/diff/1/src/core/SkSRGB.h#newcode36 > ...
4 years, 5 months ago (2016-07-20 01:37:21 UTC) #8
mtklein_C
Added a second patch set that shows what a trunc world would look like. It ...
4 years, 5 months ago (2016-07-20 12:26:26 UTC) #13
msarett
I like the truncation idea. Still trying to wrap my head around it in the ...
4 years, 5 months ago (2016-07-20 13:37:18 UTC) #20
msarett
What are your thoughts on tuning the coefficients 5-deep vs. 3-deep? I'm having trouble feeling ...
4 years, 5 months ago (2016-07-20 13:56:49 UTC) #21
mtklein
On 2016/07/20 13:37:18, msarett wrote: > This relies on the assumption that we never want ...
4 years, 5 months ago (2016-07-20 14:02:07 UTC) #22
mtklein
On 2016/07/20 13:56:49, msarett wrote: > What are your thoughts on tuning the coefficients 5-deep ...
4 years, 5 months ago (2016-07-20 14:08:04 UTC) #23
msarett
On 2016/07/20 14:02:07, mtklein wrote: > On 2016/07/20 13:37:18, msarett wrote: > > > This ...
4 years, 5 months ago (2016-07-20 14:13:17 UTC) #24
mtklein
Here's my three laws of sRGBotics: 1) All bytes 0..255 must round trip perfectly, especially ...
4 years, 5 months ago (2016-07-20 14:15:50 UTC) #25
msarett
On 2016/07/20 14:15:50, mtklein wrote: > Here's my three laws of sRGBotics: > 1) All ...
4 years, 5 months ago (2016-07-20 14:31:08 UTC) #26
mtklein_C
PTAL at PS7?
4 years, 5 months ago (2016-07-20 18:14:40 UTC) #28
msarett
This is great as is. Really awesome actually! But if you wanted to humor me, ...
4 years, 5 months ago (2016-07-20 18:43:11 UTC) #32
mtklein_C
On 2016/07/20 at 18:43:11, msarett wrote: > This is great as is. Really awesome actually! ...
4 years, 5 months ago (2016-07-20 18:44:40 UTC) #33
msarett
LGTM!!! Woohooo!!!!
4 years, 5 months ago (2016-07-20 18:47:49 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2162063003/160001
4 years, 5 months ago (2016-07-20 18:52:38 UTC) #39
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 19:10:15 UTC) #41
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/566ea9b9fc6746ffad390a4029e56d985eb2aec8

Powered by Google App Engine
This is Rietveld 408576698