projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a log message and actually use device_for_write().
[dcpomatic.git]
/
src
/
lib
/
util.h
diff --git
a/src/lib/util.h
b/src/lib/util.h
index c8dcb29d6913c49ccef30bf92ee9393514824b91..f8e9409f18d8f999c8b0d44e06fd615ec1f060a9 100644
(file)
--- a/
src/lib/util.h
+++ b/
src/lib/util.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2012-20
19
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-20
20
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-128,4
+128,18
@@
vector_to_list (std::vector<T> v)
return l;
}
return l;
}
+template <class T>
+std::vector<T>
+list_to_vector (std::list<T> v)
+{
+ std::vector<T> l;
+ BOOST_FOREACH (T& i, v) {
+ l.push_back (i);
+ }
+ return l;
+}
+
+extern double db_to_linear (double db);
+extern double linear_to_db (double linear);
+
#endif
#endif