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

Issue 1155033003: [qcms] Add matrix transform flag and matrix extraction api (Closed)

Created:
5 years, 7 months ago by Noel Gordon
Modified:
5 years, 6 months ago
CC:
chromium-reviews, sugoi1, Vangelis Kokkevis, Ken Russell (switch to Gerrit), Justin Novosad, bsalomon_chromium, Mike Lawther (Google), reed1, robert.bradford, mikelawther1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[qcms] Add matrix transform flag and matrix extraction api When a color transform is matrix-based (transforms using ICC V2 profiles are commonly matrix-based), flag the color transform struct as matrix at creation-time. Add an api to query if a color transform is matrix and an api to extract the color transform matrix in row major order. BUG=491826 Committed: https://crrev.com/aac0a90fac9ff1deef5a5a49ec16a5f509a9a1fa Cr-Commit-Position: refs/heads/master@{#331615}

Patch Set 1 : #

Patch Set 2 : Use get_matrix in the api name. #

Total comments: 8

Patch Set 3 : Unsigned i j and check their bounds. #

Patch Set 4 : Zero the transform flag at creation-time. #

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

Messages

Total messages: 18 (6 generated)
Noel Gordon
5 years, 7 months ago (2015-05-25 08:26:01 UTC) #3
Noel Gordon
5 years, 7 months ago (2015-05-25 12:40:14 UTC) #5
Noel Gordon
Not possible to read out the matrix in one go, due to it internal structure ...
5 years, 6 months ago (2015-05-27 11:22:02 UTC) #6
robert.bradford
https://codereview.chromium.org/1155033003/diff/40001/third_party/qcms/src/transform.c File third_party/qcms/src/transform.c (right): https://codereview.chromium.org/1155033003/diff/40001/third_party/qcms/src/transform.c#newcode1453 third_party/qcms/src/transform.c:1453: float qcms_transform_get_matrix(qcms_transform *t, int i, int j) unsigned int ...
5 years, 6 months ago (2015-05-27 16:03:27 UTC) #8
Stephen White
https://codereview.chromium.org/1155033003/diff/40001/third_party/qcms/src/transform.c File third_party/qcms/src/transform.c (right): https://codereview.chromium.org/1155033003/diff/40001/third_party/qcms/src/transform.c#newcode1369 third_party/qcms/src/transform.c:1369: transform->transform_flags |= TRANSFORM_FLAG_MATRIX; Does transform_flags need to be initialized ...
5 years, 6 months ago (2015-05-27 17:17:49 UTC) #10
Noel Gordon
https://codereview.chromium.org/1155033003/diff/40001/third_party/qcms/src/transform.c File third_party/qcms/src/transform.c (right): https://codereview.chromium.org/1155033003/diff/40001/third_party/qcms/src/transform.c#newcode1453 third_party/qcms/src/transform.c:1453: float qcms_transform_get_matrix(qcms_transform *t, int i, int j) On 2015/05/27 ...
5 years, 6 months ago (2015-05-27 17:21:56 UTC) #11
Noel Gordon
https://codereview.chromium.org/1155033003/diff/40001/third_party/qcms/src/transform.c File third_party/qcms/src/transform.c (right): https://codereview.chromium.org/1155033003/diff/40001/third_party/qcms/src/transform.c#newcode1369 third_party/qcms/src/transform.c:1369: transform->transform_flags |= TRANSFORM_FLAG_MATRIX; On 2015/05/27 17:17:49, Stephen White wrote: ...
5 years, 6 months ago (2015-05-27 17:42:56 UTC) #12
Noel Gordon
On 2015/05/27 17:42:56, noel gordon wrote: > calloc-ed as you noted, that's the normal case ...
5 years, 6 months ago (2015-05-27 17:44:32 UTC) #13
Stephen White
On 2015/05/27 17:44:32, noel gordon wrote: > On 2015/05/27 17:42:56, noel gordon wrote: > > ...
5 years, 6 months ago (2015-05-27 17:49:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1155033003/80001
5 years, 6 months ago (2015-05-27 17:58:38 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 6 months ago (2015-05-27 18:45:25 UTC) #17
commit-bot: I haz the power
5 years, 6 months ago (2015-05-27 18:46:22 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/aac0a90fac9ff1deef5a5a49ec16a5f509a9a1fa
Cr-Commit-Position: refs/heads/master@{#331615}

Powered by Google App Engine
This is Rietveld 408576698