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

Side by Side Diff: third_party/qcms/src/tests/qcms_test_util.h

Issue 1920253003: Revert of Reland: [qcms] Fix build_output_lut to return correct data for parametric curves (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 "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);
OLDNEW
« no previous file with comments | « third_party/qcms/src/tests/qcms_test_output_trc.c ('k') | third_party/qcms/src/tests/qcms_test_util.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698