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

Issue 892413005: Add bgra (z,y,x) sampled transform lookup table api (Closed)

Created:
5 years, 10 months ago by Noel Gordon
Modified:
5 years, 10 months ago
CC:
chromium-reviews, Stephen White, Justin Novosad, bsalomon_chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add bgra (z,y,x) sampled transform lookup table api Add an API to extract a color transform lookup table in BGRA format, with (z,y,x) sampling order (B changes the slowest, R the fastest). See r314425 for speed results, noting that qcms_chain_transform takes 8ms for a 32-cube since floating-point is used to compute the color transform to maintain transform precision. The float data produced by qcms_chain_transform() is stored in the output in BGRA order (color components are rounded to the nearest 8-bit integer) with time cost 0.000031 secs. Note that if the data needed re-indexing to (x,y,z) sampled, RGBA order on writing to the output, the time cost would be 0.00056 secs (18 times slower) [1]. [1] See r314425 review comments about sampling and pixel order. BUG=443863 Committed: https://crrev.com/86316166abe8d0bc597f4482109d7afcac1f0fe2 Cr-Commit-Position: refs/heads/master@{#315188}

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Comment the api function. Add rendering intent. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -1 line) Patch
M third_party/qcms/README.chromium View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/qcms/src/qcms.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M third_party/qcms/src/transform.c View 1 2 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
Noel Gordon
Anyone comfortable with the review, should (even those cc-ed).
5 years, 10 months ago (2015-02-04 04:00:48 UTC) #2
Ken Russell (switch to Gerrit)
Generally looks good, but someone else more familiar with the transforms should review it. One ...
5 years, 10 months ago (2015-02-04 22:23:05 UTC) #3
Noel Gordon
https://codereview.chromium.org/892413005/diff/1/third_party/qcms/src/qcms.h File third_party/qcms/src/qcms.h (right): https://codereview.chromium.org/892413005/diff/1/third_party/qcms/src/qcms.h#newcode161 third_party/qcms/src/qcms.h:161: qcms_bool qcms_transform_create_color_cube_skia( On 2015/02/04 22:23:05, Ken Russell wrote: > ...
5 years, 10 months ago (2015-02-05 16:28:52 UTC) #4
Ken Russell (switch to Gerrit)
LGTM overall; I won't hold this patch up over the discussion about the exact float->ubyte ...
5 years, 10 months ago (2015-02-06 02:49:54 UTC) #5
Mike Lawther (Google)
https://codereview.chromium.org/892413005/diff/1/third_party/qcms/src/transform.c File third_party/qcms/src/transform.c (right): https://codereview.chromium.org/892413005/diff/1/third_party/qcms/src/transform.c#newcode1206 third_party/qcms/src/transform.c:1206: cube[index++] = (int)floorf(lut[l + 2] * 255.0f + 0.5f); ...
5 years, 10 months ago (2015-02-06 03:20:06 UTC) #6
Mike Lawther (Google)
(I also do not intend to hold this patch up over the exact conversion)
5 years, 10 months ago (2015-02-06 03:24:25 UTC) #7
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/892413005/diff/1/third_party/qcms/src/transform.c File third_party/qcms/src/transform.c (right): https://codereview.chromium.org/892413005/diff/1/third_party/qcms/src/transform.c#newcode1206 third_party/qcms/src/transform.c:1206: cube[index++] = (int)floorf(lut[l + 2] * 255.0f + 0.5f); ...
5 years, 10 months ago (2015-02-06 03:31:35 UTC) #8
Mike Lawther (Google)
On 2015/02/06 03:31:35, Ken Russell wrote: > > I interpreted eqn 2.3 as being "mult ...
5 years, 10 months ago (2015-02-06 04:21:28 UTC) #9
Noel Gordon
> third_party/qcms/src/qcms.h:161: qcms_bool qcms_transform_create_color_cube_skia( > On 2015/02/05 16:28:52, noel gordon wrote: > > On 2015/02/04 ...
5 years, 10 months ago (2015-02-07 05:34:44 UTC) #11
Noel Gordon
On 2015/02/06 02:49:54, Ken Russell wrote: > LGTM overall; I won't hold this patch up ...
5 years, 10 months ago (2015-02-07 05:51:28 UTC) #12
Noel Gordon
So I think we should just match what qcms does for now. On 2015/02/06 04:21:28, ...
5 years, 10 months ago (2015-02-07 06:10:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/892413005/40001
5 years, 10 months ago (2015-02-07 06:14:06 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-07 06:17:01 UTC) #16
Noel Gordon
On 2015/02/07 06:10:13, noel gordon wrote: > So I think we should just match what ...
5 years, 10 months ago (2015-02-07 06:17:29 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-07 06:17:45 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/86316166abe8d0bc597f4482109d7afcac1f0fe2
Cr-Commit-Position: refs/heads/master@{#315188}

Powered by Google App Engine
This is Rietveld 408576698