From 1a7fd1f058a5d10e84efad144c5f38b21cdcbd81 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Sat, 4 May 2013 22:21:46 +0200 Subject: [PATCH] Add resizable doc block --- src/FFMpeg/Format/Video/Resizable.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/FFMpeg/Format/Video/Resizable.php b/src/FFMpeg/Format/Video/Resizable.php index aabedd9..335c85f 100644 --- a/src/FFMpeg/Format/Video/Resizable.php +++ b/src/FFMpeg/Format/Video/Resizable.php @@ -34,5 +34,15 @@ interface Resizable extends VideoInterface */ public function getComputedDimensions($originalWidth, $originalHeight); + /** + * Returns the modulus used by the Resizable video. + * + * This used to calculate the target dimensions while maintaining the best + * aspect ratio. + * + * @see http://www.undeadborn.net/tools/rescalculator.php + * + * @return integer + */ public function getModulus(); }