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

Issue 1374953003: Expand QCMS tests. Add Munsell test for transform accuracy (Closed)

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

Description

Expand QCMS tests. Add Munsell test for transform accuracy Add a test driver (re-named to qcms_tests) now there are two tests, and update the build targets (gyp/gn/Makefile) to match. Put the tests into separate files, add qcms_test_main.c to handle which test to run and options, add new options to control the tests. Brief usage: qcms_tests -w WIDTH -h HEIGHT -n ITERATIONS -t TEST Options are: -w INT test image width -h INT test image height -n INT number of iterations for each test -a run all tests -l list available tests -s force software(non-sse) transform function, where available -i STRING specify input icc color profile -o STRING specify output icc color profile -t STRING run specific test: use -l to list possible values Tests are: src/tests/qcms_test_tetra_clut_rgba.c - test to compare tetra SSE with the software tetra code, for speed and that the color transform results for random input data (the source test image) match. src/tests/qcms_test_munsell.c - test color transforms of Munsell RGB colors from a known in color space (AdobeRGB1998, or sRGB) to the out color space, and report color accuracy (RMS color error). BUG=532910 Committed: https://crrev.com/daae8f2139bd5681ff0bfbf620a86b645934cd34 Cr-Commit-Position: refs/heads/master@{#353255}

Patch Set 1 #

Patch Set 2 : Removed non-Munsell related changes #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Add option to test software #

Patch Set 6 : Fix test size #

Total comments: 26

Patch Set 7 : Rebase + Apply feedback #

Patch Set 8 : Fix README #

Total comments: 8

Patch Set 9 : #

Total comments: 37

Patch Set 10 : Fixed some bugs, added spaces instead of tabs #

Patch Set 11 : Adding Makefile #

Patch Set 12 : #

Total comments: 2

Patch Set 13 : Rebase #

Patch Set 14 : #

Patch Set 15 : Changed return error from -1 to EXIT_FAILURE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -53 lines) Patch
M third_party/qcms/BUILD.gn View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M third_party/qcms/README.chromium View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -1 line 0 comments Download
M third_party/qcms/qcms.gyp View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/qcms/src/tests/Makefile View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -5 lines 0 comments Download
A third_party/qcms/src/tests/qcms_test_main.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +134 lines, -0 lines 0 comments Download
A third_party/qcms/src/tests/qcms_test_munsell.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +193 lines, -0 lines 0 comments Download
M third_party/qcms/src/tests/qcms_test_tetra_clut_rgba.c View 1 2 3 4 5 6 7 8 8 chunks +28 lines, -43 lines 0 comments Download
A third_party/qcms/src/tests/qcms_test_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/qcms/src/transform.c View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (6 generated)
radu.velea
On 2015/09/29 14:52:17, radu.velea wrote: > mailto:radu.velea@intel.com changed reviewers: > + mailto:noel@chromium.org, mailto:robert.bradford@intel.com Hello Noel, ...
5 years, 2 months ago (2015-09-29 14:53:26 UTC) #2
Noel Gordon
https://codereview.chromium.org/1374953003/diff/100001/third_party/qcms/BUILD.gn File third_party/qcms/BUILD.gn (left): https://codereview.chromium.org/1374953003/diff/100001/third_party/qcms/BUILD.gn#oldcode43 third_party/qcms/BUILD.gn:43: executable("qcms_test") { qcms_test -> qcms_tests https://codereview.chromium.org/1374953003/diff/100001/third_party/qcms/qcms.gyp File third_party/qcms/qcms.gyp (right): ...
5 years, 2 months ago (2015-10-07 12:26:31 UTC) #3
radu.velea
https://codereview.chromium.org/1374953003/diff/100001/third_party/qcms/BUILD.gn File third_party/qcms/BUILD.gn (left): https://codereview.chromium.org/1374953003/diff/100001/third_party/qcms/BUILD.gn#oldcode43 third_party/qcms/BUILD.gn:43: executable("qcms_test") { On 2015/10/07 12:26:31, noel gordon wrote: > ...
5 years, 2 months ago (2015-10-07 13:22:36 UTC) #4
Noel Gordon
https://codereview.chromium.org/1374953003/diff/140001/third_party/qcms/src/tests/qcms_test_main.c File third_party/qcms/src/tests/qcms_test_main.c (right): https://codereview.chromium.org/1374953003/diff/140001/third_party/qcms/src/tests/qcms_test_main.c#newcode42 third_party/qcms/src/tests/qcms_test_main.c:42: printf("\t-w INT\t\tauto-generated image width\n"); auto-generated? No clue what that ...
5 years, 2 months ago (2015-10-07 14:03:07 UTC) #5
radu.velea
https://codereview.chromium.org/1374953003/diff/140001/third_party/qcms/src/tests/qcms_test_main.c File third_party/qcms/src/tests/qcms_test_main.c (right): https://codereview.chromium.org/1374953003/diff/140001/third_party/qcms/src/tests/qcms_test_main.c#newcode42 third_party/qcms/src/tests/qcms_test_main.c:42: printf("\t-w INT\t\tauto-generated image width\n"); On 2015/10/07 14:03:06, noel gordon ...
5 years, 2 months ago (2015-10-07 14:43:43 UTC) #6
Noel Gordon
https://codereview.chromium.org/1374953003/diff/160001/third_party/qcms/src/tests/qcms_test_main.c File third_party/qcms/src/tests/qcms_test_main.c (right): https://codereview.chromium.org/1374953003/diff/160001/third_party/qcms/src/tests/qcms_test_main.c#newcode30 third_party/qcms/src/tests/qcms_test_main.c:30: printf("Available QCMS tests:\n"); QCMS -> qcms https://codereview.chromium.org/1374953003/diff/160001/third_party/qcms/src/tests/qcms_test_main.c#newcode59 third_party/qcms/src/tests/qcms_test_main.c:59: for ...
5 years, 2 months ago (2015-10-08 03:12:49 UTC) #7
Noel Gordon
Also noticed, src/test/Makefile is not part of this CL. It will need to be updated ...
5 years, 2 months ago (2015-10-08 03:14:59 UTC) #8
Noel Gordon
https://codereview.chromium.org/1374953003/diff/160001/third_party/qcms/src/t... third_party/qcms/src/tests/qcms_test_munsell.c:149: results[i] = sqrt(r_diff * r_diff + g_diff * g_diff + b_diff * b_diff); ...
5 years, 2 months ago (2015-10-08 06:01:50 UTC) #9
radu.velea
https://codereview.chromium.org/1374953003/diff/160001/third_party/qcms/src/tests/qcms_test_main.c File third_party/qcms/src/tests/qcms_test_main.c (right): https://codereview.chromium.org/1374953003/diff/160001/third_party/qcms/src/tests/qcms_test_main.c#newcode30 third_party/qcms/src/tests/qcms_test_main.c:30: printf("Available QCMS tests:\n"); On 2015/10/08 03:12:49, noel gordon wrote: ...
5 years, 2 months ago (2015-10-08 09:39:13 UTC) #10
radu.velea
On 2015/10/08 03:14:59, noel gordon wrote: > Also noticed, src/test/Makefile is not part of this ...
5 years, 2 months ago (2015-10-08 09:49:11 UTC) #11
radu.velea
On 2015/10/08 09:49:11, radu.velea wrote: > On 2015/10/08 03:14:59, noel gordon wrote: > > Also ...
5 years, 2 months ago (2015-10-08 09:53:36 UTC) #12
Noel Gordon
On 2015/10/08 09:53:36, radu.velea wrote: > On 2015/10/08 09:49:11, radu.velea wrote: > > On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 15:40:39 UTC) #13
Noel Gordon
LGTM
5 years, 2 months ago (2015-10-08 15:42:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374953003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374953003/220001
5 years, 2 months ago (2015-10-09 06:38:10 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/42369) linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-10-09 06:41:24 UTC) #18
Noel Gordon
Radu, your git client is maybe out-of-date? Resync your client to the tip of the ...
5 years, 2 months ago (2015-10-09 07:35:00 UTC) #19
Noel Gordon
https://codereview.chromium.org/1374953003/diff/220001/third_party/qcms/src/tests/qcms_test_munsell.c File third_party/qcms/src/tests/qcms_test_munsell.c (right): https://codereview.chromium.org/1374953003/diff/220001/third_party/qcms/src/tests/qcms_test_munsell.c#newcode110 third_party/qcms/src/tests/qcms_test_munsell.c:110: return -1; Just noticed: because the driver does exit_status ...
5 years, 2 months ago (2015-10-09 08:05:48 UTC) #20
radu.velea
https://codereview.chromium.org/1374953003/diff/220001/third_party/qcms/src/tests/qcms_test_munsell.c File third_party/qcms/src/tests/qcms_test_munsell.c (right): https://codereview.chromium.org/1374953003/diff/220001/third_party/qcms/src/tests/qcms_test_munsell.c#newcode110 third_party/qcms/src/tests/qcms_test_munsell.c:110: return -1; On 2015/10/09 08:05:47, noel gordon wrote: > ...
5 years, 2 months ago (2015-10-09 08:13:35 UTC) #21
Noel Gordon
Perhaps not 0, that's EXIT_SUCCESS right? Why not just exit?
5 years, 2 months ago (2015-10-09 08:17:03 UTC) #22
radu.velea
On 2015/10/09 08:17:03, noel gordon wrote: > Perhaps not 0, that's EXIT_SUCCESS right? Why not ...
5 years, 2 months ago (2015-10-09 08:24:34 UTC) #23
Noel Gordon
On 2015/10/09 08:24:34, radu.velea wrote: > On 2015/10/09 08:17:03, noel gordon wrote: > > Perhaps ...
5 years, 2 months ago (2015-10-09 08:34:05 UTC) #24
radu.velea
On 2015/10/09 08:34:05, noel gordon wrote: > On 2015/10/09 08:24:34, radu.velea wrote: > > On ...
5 years, 2 months ago (2015-10-09 08:38:12 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374953003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374953003/280001
5 years, 2 months ago (2015-10-09 08:38:21 UTC) #27
Noel Gordon
On 2015/10/09 08:38:12, radu.velea wrote: > On 2015/10/09 08:34:05, noel gordon wrote: > > > ...
5 years, 2 months ago (2015-10-09 09:37:59 UTC) #28
Noel Gordon
LGTM - ChangeLog up-to-date, new tests, good stuff.
5 years, 2 months ago (2015-10-09 09:39:06 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-09 09:44:21 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374953003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374953003/280001
5 years, 2 months ago (2015-10-09 10:05:36 UTC) #33
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 2 months ago (2015-10-09 10:11:03 UTC) #34
commit-bot: I haz the power
5 years, 2 months ago (2015-10-09 10:12:05 UTC) #35
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/daae8f2139bd5681ff0bfbf620a86b645934cd34
Cr-Commit-Position: refs/heads/master@{#353255}

Powered by Google App Engine
This is Rietveld 408576698