From 45f9912aa850546e319e32a4052517d67f4e3d8f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 15 Oct 2013 15:26:04 +0100 Subject: Allow no-stretch scaling of video content. --- src/lib/ratio.cc | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/lib/ratio.cc') diff --git a/src/lib/ratio.cc b/src/lib/ratio.cc index 5988b3418..41abbb760 100644 --- a/src/lib/ratio.cc +++ b/src/lib/ratio.cc @@ -19,6 +19,7 @@ #include #include "ratio.h" +#include "util.h" #include "i18n.h" @@ -28,19 +29,6 @@ using std::vector; vector Ratio::_ratios; -libdcp::Size -Ratio::size (libdcp::Size full_frame) const -{ - if (_ratio < static_cast(full_frame.width) / full_frame.height) { - return libdcp::Size (full_frame.height * _ratio, full_frame.height); - } else { - return libdcp::Size (full_frame.width, full_frame.width / _ratio); - } - - return libdcp::Size (); -} - - void Ratio::setup_ratios () { -- cgit v1.2.3