projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Logging improvements to allow prettier displays in the server GUI.
[dcpomatic.git]
/
src
/
lib
/
ratio.h
diff --git
a/src/lib/ratio.h
b/src/lib/ratio.h
index 8b1a1fc716dc61d9175c6144e30f34ea27bdf39f..7b70bd7f7b2572dc8bbaa55a56827b2f5217a187 100644
(file)
--- a/
src/lib/ratio.h
+++ b/
src/lib/ratio.h
@@
-20,9
+20,9
@@
#ifndef DCPOMATIC_RATIO_H
#define DCPOMATIC_RATIO_H
#ifndef DCPOMATIC_RATIO_H
#define DCPOMATIC_RATIO_H
-#include <
vector
>
+#include <
dcp/util.h
>
#include <boost/utility.hpp>
#include <boost/utility.hpp>
-#include <
libdcp/util.h
>
+#include <
vector
>
class Ratio : public boost::noncopyable
{
class Ratio : public boost::noncopyable
{
@@
-52,6
+52,8
@@
public:
static void setup_ratios ();
static Ratio const * from_id (std::string i);
static void setup_ratios ();
static Ratio const * from_id (std::string i);
+ static Ratio const * from_ratio (float r);
+ static Ratio const * nearest_from_ratio (float r);
static std::vector<Ratio const *> all () {
return _ratios;
}
static std::vector<Ratio const *> all () {
return _ratios;
}
@@
-64,7
+66,7
@@
private:
std::string _nickname;
std::string _isdcf_name;
std::string _nickname;
std::string _isdcf_name;
- static std::vector<Ratio const *> _ratios;
+ static std::vector<Ratio const *> _ratios;
};
#endif
};
#endif