diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-04 22:37:31 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-04 22:37:31 +0200 |
| commit | cf2ed48d21ddbc32bda262064480e88e69dc031a (patch) | |
| tree | 039a981cebf24e1e7ca34478d35cd3c70b280bab /src/lib/util.cc | |
| parent | 4b74bd9f359b9fe4f841cd9a361f3b2b24c2351e (diff) | |
Cleanup: move some methods from util to maths_util.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 6bcacf9f2..eeaa4cd91 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -1085,18 +1085,6 @@ copy_in_bits (boost::filesystem::path from, boost::filesystem::path to, std::fun free (buffer); } -double -db_to_linear (double db) -{ - return pow(10, db / 20); -} - -double -linear_to_db (double linear) -{ - return 20 * log10(linear); -} - dcp::Size scale_for_display (dcp::Size s, dcp::Size display_container, dcp::Size film_container, PixelQuanta quanta) |
