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

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

Issue 1862053002: 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: Retrieved input gamma for parametric curves. Compute best gamma from data 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 9eb866539780056adbb17dd1edb30029a8d681df..765c89c4a99cf1c7eb38f0d277e81fe53ffc79c6 100644
--- a/third_party/qcms/src/tests/qcms_test_main.c
+++ b/third_party/qcms/src/tests/qcms_test_main.c
@@ -16,8 +16,9 @@ extern struct qcms_test_case qcms_test_tetra_clut_rgba_info;
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[4];
+struct qcms_test_case qcms_test[5];
#define TEST_CASES (sizeof(qcms_test) / sizeof(qcms_test[0]))
static void initialize_tests()
@@ -26,6 +27,7 @@ static void initialize_tests()
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()
@@ -73,16 +75,6 @@ int enable_test(const char *args)
return 0;
}
-void generate_source_uint8_t(unsigned char *src, const size_t length, const size_t pixel_size)
radu.velea 2016/04/15 08:42:35 Removed this and moved it into a new "util" file s
-{
- 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)
{
int iterations = 1;
« 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