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\Video as BaseVideo;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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 ResizableVideo extends BaseVideo
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
2012-05-30 12:26:06 +02:00
|
|
|
* Returns the width setting.
|
2012-05-30 12:22:22 +02:00
|
|
|
* The return of this method should not depend on a media file size
|
|
|
|
|
*
|
|
|
|
|
* @return integer
|
|
|
|
|
*/
|
|
|
|
|
public function getWidth();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the height setting
|
|
|
|
|
* The return of this method should not depend on a media file size
|
|
|
|
|
*
|
|
|
|
|
* @return integer
|
|
|
|
|
*/
|
|
|
|
|
public function getHeight();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the computed dimensions for the resize, after operation.
|
|
|
|
|
* This method return the actual dimensions that FFmpeg will use.
|
|
|
|
|
*
|
|
|
|
|
* @param integer $originalWidth
|
|
|
|
|
* @param integer $originalHeight
|
|
|
|
|
* @return array An indexed array containing the width and the height
|
|
|
|
|
*/
|
|
|
|
|
public function getComputedDimensions($originalWidth, $originalHeight);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the current resize mode name
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getResizeMode();
|
|
|
|
|
}
|