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

Unified Diff: third_party/qcms/src/tests/qcms_test_main.c

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, 8 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/Makefile ('k') | third_party/qcms/src/tests/qcms_test_output_trc.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_main.c
diff --git a/third_party/qcms/src/tests/qcms_test_main.c b/third_party/qcms/src/tests/qcms_test_main.c
index 455d17b4ab711ea450cdce182a2cfc6ae05610af..9eb866539780056adbb17dd1edb30029a8d681df 100644
--- a/third_party/qcms/src/tests/qcms_test_main.c
+++ b/third_party/qcms/src/tests/qcms_test_main.c
@@ -16,9 +16,8 @@
extern struct qcms_test_case qcms_test_munsell_info;
extern struct qcms_test_case qcms_test_internal_srgb_info;
extern struct qcms_test_case qcms_test_ntsc_gamut_info;
-extern struct qcms_test_case qcms_test_output_trc_info;
-struct qcms_test_case qcms_test[5];
+struct qcms_test_case qcms_test[4];
#define TEST_CASES (sizeof(qcms_test) / sizeof(qcms_test[0]))
static void initialize_tests()
@@ -27,14 +26,13 @@
qcms_test[1] = qcms_test_munsell_info;
qcms_test[2] = qcms_test_internal_srgb_info;
qcms_test[3] = qcms_test_ntsc_gamut_info;
- qcms_test[4] = qcms_test_output_trc_info;
}
static void list_tests()
{
int i;
printf("Available qcms tests:\n");
-
+
for (i = 0; i < TEST_CASES; ++i) {
printf("\t%s\n", qcms_test[i].test_name);
}
@@ -73,6 +71,16 @@
}
return 0;
+}
+
+void generate_source_uint8_t(unsigned char *src, const size_t length, const size_t pixel_size)
+{
+ size_t bytes = length * pixel_size;
+ size_t i;
+
+ for (i = 0; i < bytes; ++i) {
+ *src++ = rand() & 255;
+ }
}
int main(int argc, const char **argv)
« no previous file with comments | « third_party/qcms/src/tests/Makefile ('k') | third_party/qcms/src/tests/qcms_test_output_trc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698