ffmpeg-mappable-media/src/FFMpeg/Format/Video/Resizable.php

39 lines
900 B
PHP
Raw Normal View History

2012-05-30 12:22:22 +02:00
<?php
/*
* This file is part of PHP-FFmpeg.
*
* (c) Alchemy <info@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FFMpeg\Format\Video;
use FFMpeg\Format\VideoInterface;
2012-05-30 15:06:53 +02:00
use FFMpeg\Format\Dimension;
2012-05-30 12:22:22 +02:00
/**
* The resizable video interface
2012-05-30 12:26:06 +02:00
*
2012-05-30 12:22:22 +02:00
* This interface provides methods for video resizing.
2012-05-30 12:26:06 +02:00
*
2012-05-30 12:22:22 +02:00
* @author Romain Neutron imprec@gmail.com
*/
interface Resizable extends VideoInterface
2012-05-30 12:22:22 +02:00
{
/**
* Returns the computed dimensions for the resize, after operation.
* This method return the actual dimensions that FFmpeg will use.
*
2012-05-31 16:16:35 +02:00
* @param integer $originalWidth
* @param integer $originalHeight
* @return Dimension A dimension
2012-05-30 12:22:22 +02:00
*/
public function getComputedDimensions($originalWidth, $originalHeight);
public function getModulus();
2012-05-30 12:22:22 +02:00
}