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

Unified Diff: third_party/qcms/src/tests/qcms_test_util.h

Issue 2014023003: Add exact version of qcms used by Chrome for testing and comparison (Closed) Base URL: https://skia.googlesource.com/skia.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/qcms/src/tests/qcms_test_tetra_clut_rgba.c ('k') | third_party/qcms/src/tests/qcms_test_util.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/qcms/src/tests/qcms_test_util.h
diff --git a/third_party/qcms/src/tests/qcms_test_util.h b/third_party/qcms/src/tests/qcms_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d8286e602885262e59fbfacc227a0ea932003a71
--- /dev/null
+++ b/third_party/qcms/src/tests/qcms_test_util.h
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the Chromium LICENSE file.
+
+#include "qcmsint.h"
+#include "qcmstypes.h"
+
+typedef int (*qcms_test_function)(size_t width,
+ size_t height,
+ int iterations,
+ const char *in_profile,
+ const char *out_profile,
+ const int force_software);
+
+enum QCMS_TEST_STATUS {
+ QCMS_TEST_DISABLED = 0,
+ QCMS_TEST_ENABLED = 1,
+};
+
+struct qcms_test_case {
+ char test_name[256];
+ qcms_test_function test_fn;
+ enum QCMS_TEST_STATUS status;
+};
+
+void generate_source_uint8_t(unsigned char *src, const size_t length, const size_t pixel_size);
+float evaluate_parametric_curve(int type, const float params[], float r);
« no previous file with comments | « third_party/qcms/src/tests/qcms_test_tetra_clut_rgba.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