diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-09-19 03:13:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-09-19 03:13:38 +0100 |
| commit | 0cdd094b556b59cca81727664e4161887f4d3b17 (patch) | |
| tree | ee7bd2ba758d848a2b5669dd93710a32f097b9a6 /src/types.cc | |
| parent | f44f95e5592f800edfa54ec8b6b1cc1ccf302e3a (diff) | |
Cope with DCPs that don't specify the picture as stereoscopic but are 3D and indicate it by having differing EditRate and FrameRate.
Diffstat (limited to 'src/types.cc')
| -rw-r--r-- | src/types.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/types.cc b/src/types.cc index 39d7fea5..50aee2a2 100644 --- a/src/types.cc +++ b/src/types.cc @@ -20,6 +20,18 @@ Fraction::Fraction (string s) denominator = lexical_cast<int> (b[1]); } +bool +libdcp::operator== (Fraction const & a, Fraction const & b) +{ + return (a.numerator == b.numerator && a.denominator == b.denominator); +} + +bool +libdcp::operator!= (Fraction const & a, Fraction const & b) +{ + return (a.numerator != b.numerator || a.denominator != b.denominator); +} + Color::Color () : r (0) , g (0) |
