summaryrefslogtreecommitdiff
path: root/dump-profile.c
diff options
context:
space:
mode:
authorJeff Muizelaar <jmuizelaar@mozilla.com>2009-05-21 16:46:24 -0400
committerJeff Muizelaar <jmuizelaar@mozilla.com>2009-05-21 16:46:24 -0400
commitb58b34e40bccd4dfb2b6c66358323f3c7d4ae26c (patch)
treede3f7b4149cf5dc8226d84055411c5006f703f7a /dump-profile.c
Initial code drop
Diffstat (limited to 'dump-profile.c')
-rw-r--r--dump-profile.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/dump-profile.c b/dump-profile.c
new file mode 100644
index 0000000..5844b38
--- /dev/null
+++ b/dump-profile.c
@@ -0,0 +1,29 @@
+#include <stdlib.h>
+#include "qcms.h"
+
+void dump_profile(qcms_profile *profile)
+{
+ if (profile) {
+ printf(" rendering intent: %d\n", qcms_profile_get_rendering_intent(profile));
+ qcms_profile_release(profile);
+ } else {
+ printf("bad profile\n");
+ }
+}
+
+int main(int argc, char **argv)
+{
+ if (argc > 1) {
+ int i;
+ for (i=1; i<argc; i++) {
+ char *input_path = argv[i];
+ printf("%s\n", input_path);
+ dump_profile(qcms_profile_from_path(input_path));
+ }
+ } else {
+ dump_profile(qcms_profile_sRGB());
+ }
+
+
+ return 0;
+}