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

Side by Side Diff: third_party/qcms/src/tests/qcms_test_main.c

Issue 1703553002: [qcms] Provide an API to compute xyY gamut area relative to NTSC 1953 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed whitespace and variable rename Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/qcms/src/tests/Makefile ('k') | third_party/qcms/src/tests/qcms_test_ntsc_gamut.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the Chromium LICENSE file. 3 // found in the Chromium LICENSE file.
4 4
5 #include "qcms.h" 5 #include "qcms.h"
6 #include "qcms_test_util.h" 6 #include "qcms_test_util.h"
7 #include "timing.h" 7 #include "timing.h"
8 8
9 #include <math.h> 9 #include <math.h>
10 #include <stdio.h> 10 #include <stdio.h>
11 #include <stdlib.h> 11 #include <stdlib.h>
12 #include <string.h> 12 #include <string.h>
13 13
14 // Manually update the items below to add more tests. 14 // Manually update the items below to add more tests.
15 extern struct qcms_test_case qcms_test_tetra_clut_rgba_info; 15 extern struct qcms_test_case qcms_test_tetra_clut_rgba_info;
16 extern struct qcms_test_case qcms_test_munsell_info; 16 extern struct qcms_test_case qcms_test_munsell_info;
17 extern struct qcms_test_case qcms_test_internal_srgb_info; 17 extern struct qcms_test_case qcms_test_internal_srgb_info;
18 extern struct qcms_test_case qcms_test_ntsc_gamut_info;
18 19
19 struct qcms_test_case qcms_test[3]; 20 struct qcms_test_case qcms_test[4];
20 #define TEST_CASES (sizeof(qcms_test) / sizeof(qcms_test[0])) 21 #define TEST_CASES (sizeof(qcms_test) / sizeof(qcms_test[0]))
21 22
22 static void initialize_tests() 23 static void initialize_tests()
23 { 24 {
24 qcms_test[0] = qcms_test_tetra_clut_rgba_info; 25 qcms_test[0] = qcms_test_tetra_clut_rgba_info;
25 qcms_test[1] = qcms_test_munsell_info; 26 qcms_test[1] = qcms_test_munsell_info;
26 qcms_test[2] = qcms_test_internal_srgb_info; 27 qcms_test[2] = qcms_test_internal_srgb_info;
28 qcms_test[3] = qcms_test_ntsc_gamut_info;
27 } 29 }
28 30
29 static void list_tests() 31 static void list_tests()
30 { 32 {
31 int i; 33 int i;
32 printf("Available qcms tests:\n"); 34 printf("Available qcms tests:\n");
33 35
34 for (i = 0; i < TEST_CASES; ++i) { 36 for (i = 0; i < TEST_CASES; ++i) {
35 printf("\t%s\n", qcms_test[i].test_name); 37 printf("\t%s\n", qcms_test[i].test_name);
36 } 38 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 130
129 exit_status = 0; 131 exit_status = 0;
130 132
131 for (i = 0; i < TEST_CASES; ++i) { 133 for (i = 0; i < TEST_CASES; ++i) {
132 if (run_all || QCMS_TEST_ENABLED == qcms_test[i].status) 134 if (run_all || QCMS_TEST_ENABLED == qcms_test[i].status)
133 exit_status += qcms_test[i].test_fn(width, height, iterations, in, o ut, force_software); 135 exit_status += qcms_test[i].test_fn(width, height, iterations, in, o ut, force_software);
134 } 136 }
135 137
136 return exit_status; 138 return exit_status;
137 } 139 }
OLDNEW
« no previous file with comments | « third_party/qcms/src/tests/Makefile ('k') | third_party/qcms/src/tests/qcms_test_ntsc_gamut.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698