diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-31 15:09:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-31 15:09:49 +0100 |
| commit | 127672223cca569986e35c91265e269ed5a6561c (patch) | |
| tree | 853793c1b929d4c38ebdf5456808e466083989b7 /src/lib/format.h | |
| parent | ed78fd3d138114185e43edf81ffe91db17377da0 (diff) | |
Runs.
Diffstat (limited to 'src/lib/format.h')
| -rw-r--r-- | src/lib/format.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/format.h b/src/lib/format.h index 305524628..94c2253de 100644 --- a/src/lib/format.h +++ b/src/lib/format.h @@ -26,7 +26,7 @@ #include <vector> #include "util.h" -class Film; +class Playlist; class Format { @@ -42,15 +42,15 @@ public: /** @return the aspect ratio multiplied by 100 * (e.g. 239 for Cinemascope 2.39:1) */ - virtual int ratio_as_integer (boost::shared_ptr<const Film> f) const = 0; + virtual int ratio_as_integer (boost::shared_ptr<const Playlist> f) const = 0; /** @return the ratio as a floating point number */ - virtual float ratio_as_float (boost::shared_ptr<const Film> f) const = 0; + virtual float ratio_as_float (boost::shared_ptr<const Playlist> f) const = 0; /** @return the ratio of the container (including any padding) as a floating point number */ float container_ratio_as_float () const; - int dcp_padding (boost::shared_ptr<const Film> f) const; + int dcp_padding (boost::shared_ptr<const Playlist>) const; /** @return size in pixels of the images that we should * put in a DCP for this ratio. This size will not correspond @@ -115,11 +115,11 @@ class FixedFormat : public Format public: FixedFormat (int, libdcp::Size, std::string, std::string, std::string, std::string); - int ratio_as_integer (boost::shared_ptr<const Film>) const { + int ratio_as_integer (boost::shared_ptr<const Playlist>) const { return _ratio; } - float ratio_as_float (boost::shared_ptr<const Film>) const { + float ratio_as_float (boost::shared_ptr<const Playlist>) const { return _ratio / 100.0; } @@ -136,8 +136,8 @@ class VariableFormat : public Format public: VariableFormat (libdcp::Size, std::string, std::string, std::string, std::string); - int ratio_as_integer (boost::shared_ptr<const Film> f) const; - float ratio_as_float (boost::shared_ptr<const Film> f) const; + int ratio_as_integer (boost::shared_ptr<const Playlist> f) const; + float ratio_as_float (boost::shared_ptr<const Playlist> f) const; std::string name () const; }; |
