summaryrefslogtreecommitdiff
path: root/src/lib/log.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-07 12:12:15 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-07 12:12:15 +0000
commit77f7f3be256f81d2977bccdb236582e18a625ba7 (patch)
tree2b3880043171559a2d6b938c3c1746ba6ea5874c /src/lib/log.cc
parent48073ddb0a9a6e9c9dd81b04b196230f4372447b (diff)
Make a note in the log when XYZ values are clamped by libdcp on XYZ -> RGB conversion.
Diffstat (limited to 'src/lib/log.cc')
-rw-r--r--src/lib/log.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/lib/log.cc b/src/lib/log.cc
index e0ba3aaaa..efea9f6b5 100644
--- a/src/lib/log.cc
+++ b/src/lib/log.cc
@@ -95,7 +95,23 @@ Log::microsecond_log (string m, int t)
SafeStringStream s;
s << tv.tv_sec << N_(":") << tv.tv_usec << N_(" ") << m;
do_log (s.str ());
-}
+}
+
+void
+Log::dcp_log (dcp::NoteType type, string m)
+{
+ switch (type) {
+ case dcp::DCP_PROGRESS:
+ log (m, TYPE_GENERAL);
+ break;
+ case dcp::DCP_ERROR:
+ log (m, TYPE_ERROR);
+ break;
+ case dcp::DCP_NOTE:
+ log (m, TYPE_WARNING);
+ break;
+ }
+}
void
Log::set_types (int t)