Deprecate image dimensions in extractImage

This commit is contained in:
Romain Neutron 2012-04-18 10:36:29 +02:00
commit 8c16e7f4c7
2 changed files with 4 additions and 6 deletions

View file

@ -62,13 +62,11 @@ class FFMpeg extends Binary
* *
* @param int $time The time in second where to take the snapshot * @param int $time The time in second where to take the snapshot
* @param string $output The pathfile where to write * @param string $output The pathfile where to write
* @param int $width The width of the image
* @param int $height The height of the image
* @return \FFMpeg\FFMpeg * @return \FFMpeg\FFMpeg
* @throws Exception\RuntimeException * @throws Exception\RuntimeException
* @throws Exception\LogicException * @throws Exception\LogicException
*/ */
public function extractImage($time, $output, $width, $height) public function extractImage($time, $output)
{ {
if ( ! $this->pathfile) if ( ! $this->pathfile)
{ {
@ -186,7 +184,7 @@ class FFMpeg extends Binary
* @param Format\VideoFormat $format The output format * @param Format\VideoFormat $format The output format
* @param string $outputPathfile The pathfile where to write * @param string $outputPathfile The pathfile where to write
* @param int $threads The number of threads to use * @param int $threads The number of threads to use
* @return \FFMpeg\FFMpeg * @return \FFMpeg\FFMpeg
* @throws Exception\RuntimeException * @throws Exception\RuntimeException
*/ */
protected function encodeVideo(Format\VideoFormat $format, $outputPathfile, $threads) protected function encodeVideo(Format\VideoFormat $format, $outputPathfile, $threads)

View file

@ -46,7 +46,7 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase
$dest = __DIR__ . '/../../files/extract_Test.jpg'; $dest = __DIR__ . '/../../files/extract_Test.jpg';
$this->object->open(__DIR__ . '/../../files/Test.ogv'); $this->object->open(__DIR__ . '/../../files/Test.ogv');
$this->object->extractImage(2, $dest, 200, 200); $this->object->extractImage(2, $dest);
$this->probe->probeFormat($dest); $this->probe->probeFormat($dest);
@ -59,7 +59,7 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase
*/ */
public function testExtractImageNoMovie() public function testExtractImageNoMovie()
{ {
$this->object->extractImage(2, 'Path', 200, 200); $this->object->extractImage(2, 'Path');
} }
/** /**