OLD | NEW |
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 "qcmsint.h" | 5 #include "qcmsint.h" |
6 #include "qcmstypes.h" | 6 #include "qcmstypes.h" |
7 | 7 |
8 typedef int (*qcms_test_function)(size_t width, | 8 typedef int (*qcms_test_function)(size_t width, |
9 size_t height, | 9 size_t height, |
10 int iterations, | 10 int iterations, |
11 const char *in_profile, | 11 const char *in_profile, |
12 const char *out_profile, | 12 const char *out_profile, |
13 const int force_software); | 13 const int force_software); |
14 | 14 |
15 enum QCMS_TEST_STATUS { | 15 enum QCMS_TEST_STATUS { |
16 QCMS_TEST_DISABLED = 0, | 16 QCMS_TEST_DISABLED = 0, |
17 QCMS_TEST_ENABLED = 1, | 17 QCMS_TEST_ENABLED = 1, |
18 }; | 18 }; |
19 | 19 |
20 struct qcms_test_case { | 20 struct qcms_test_case { |
21 char test_name[256]; | 21 char test_name[256]; |
22 qcms_test_function test_fn; | 22 qcms_test_function test_fn; |
23 enum QCMS_TEST_STATUS status; | 23 enum QCMS_TEST_STATUS status; |
24 }; | 24 }; |
25 | 25 |
26 void generate_source_uint8_t(unsigned char *src, const size_t length, const size
_t pixel_size); | 26 void generate_source_uint8_t(unsigned char *src, const size_t length, const size
_t pixel_size); |
27 float evaluate_parametric_curve(int type, const float params[], float r); | |
OLD | NEW |