diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-22 16:32:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-22 16:32:37 +0100 |
| commit | 0f60e0f52c986f18764822de78b82b4163909f0c (patch) | |
| tree | 9fd45bd68de68ee47551efcdcf955344ad1fc87a /src/lib/util.h | |
| parent | 7523c7f0ab64f075ca535071b780098f6c05fce6 (diff) | |
Option to draw a border around the content's image (#391).
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index b7dc978e3..1bbdfb2cf 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -66,11 +66,12 @@ extern bool valid_image_file (boost::filesystem::path); extern boost::filesystem::path mo_path (); #endif extern std::string tidy_for_filename (std::string); -extern dcp::Size fit_ratio_within (float ratio, dcp::Size); +extern dcp::Size fit_ratio_within (float ratio, dcp::Size, int); extern std::string entities_to_text (std::string e); extern std::map<std::string, std::string> split_get_request (std::string url); extern int dcp_audio_frame_rate (int); extern int stride_round_up (int, int const *, int); +extern int round_to (float n, int r); extern std::multimap<std::string, std::string> read_key_value (std::istream& s); extern int get_required_int (std::multimap<std::string, std::string> const & kv, std::string k); extern float get_required_float (std::multimap<std::string, std::string> const & kv, std::string k); |
