This commit is contained in:
Romain Neutron 2012-05-25 16:22:16 +02:00
commit 04daae19d6
6 changed files with 21 additions and 23 deletions

View file

@ -33,7 +33,7 @@ abstract class Binary implements AdapterInterface
/**
* Binary constructor
*
* @param type $binary The path file to the binary
* @param type $binary The path file to the binary
* @param Logger $logger A logger
*/
public function __construct($binary, Logger $logger)
@ -53,8 +53,8 @@ abstract class Binary implements AdapterInterface
/**
* {@inheritdoc}
*
* @param Logger $logger A logger
* @return Binary The binary
* @param Logger $logger A logger
* @return Binary The binary
*
* @throws Exception\BinaryNotFoundException
*/

View file

@ -30,7 +30,7 @@ class FFMpeg extends Binary
/**
* Opens a file in order to be processed
*
* @param string $pathfile A pathfile
* @param string $pathfile A pathfile
* @return \FFMpeg\FFMpeg
* @throws InvalidArgumentException
*/
@ -65,8 +65,8 @@ class FFMpeg extends Binary
/**
*
* @param integer $time The time in second where to take the snapshot
* @param string $output The pathfile where to write
* @param integer $time The time in second where to take the snapshot
* @param string $output The pathfile where to write
* @return \FFMpeg\FFMpeg
* @throws RuntimeException
* @throws LogicException
@ -108,9 +108,9 @@ class FFMpeg extends Binary
/**
* Encode the file to the specified format
*
* @param AudioFormat $format The output format
* @param string $outputPathfile The pathfile where to write
* @param integer $threads The number of threads to use
* @param AudioFormat $format The output format
* @param string $outputPathfile The pathfile where to write
* @param integer $threads The number of threads to use
* @return \FFMpeg\FFMpeg
* @throws RuntimeException
* @throws LogicException
@ -139,9 +139,9 @@ class FFMpeg extends Binary
/**
* Encode to audio
*
* @param AudioFormat $format The output format
* @param string $outputPathfile The pathfile where to write
* @param integer $threads The number of threads to use
* @param AudioFormat $format The output format
* @param string $outputPathfile The pathfile where to write
* @param integer $threads The number of threads to use
* @return \FFMpeg\FFMpeg
* @throws RuntimeException
*/
@ -180,9 +180,9 @@ class FFMpeg extends Binary
/**
* Encode to video
*
* @param VideoFormat $format The output format
* @param string $outputPathfile The pathfile where to write
* @param integer $threads The number of threads to use
* @param VideoFormat $format The output format
* @param string $outputPathfile The pathfile where to write
* @param integer $threads The number of threads to use
* @return \FFMpeg\FFMpeg
* @throws RuntimeException
*/

View file

@ -26,7 +26,7 @@ class FFProbe extends Binary
/**
* Probe the format of a given file
*
* @param string $pathfile
* @param string $pathfile
* @return string
* @throws InvalidArgumentException
* @throws RuntimeException
@ -45,7 +45,7 @@ class FFProbe extends Binary
/**
* Probe the streams contained in a given file
*
* @param string $pathfile
* @param string $pathfile
* @return string
* @throws InvalidArgumentException
* @throws RuntimeException
@ -63,7 +63,7 @@ class FFProbe extends Binary
/**
*
* @param string $command
* @param string $command
* @return string
* @throws RuntimeException
*/

View file

@ -30,7 +30,7 @@ interface AudioFormat
/**
* Get the kiloBitrate value
*
*
* @return integer
*/
public function getKiloBitrate();

View file

@ -87,7 +87,7 @@ abstract class DefaultVideoFormat extends DefaultAudioFormat implements VideoFor
/**
* Set the framerate
*
* @param integer $frameRate
* @param integer $frameRate
*
* @throws \InvalidArgumentException
*/
@ -142,7 +142,7 @@ abstract class DefaultVideoFormat extends DefaultAudioFormat implements VideoFor
/**
* Set the GOP size
*
* @param integer $GOPsize
* @param integer $GOPsize
*
* @throws \InvalidArgumentException
*/

View file

@ -75,7 +75,6 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase
unlink($dest);
}
/**
* @covers FFMpeg\FFMpeg::extractImage
*/
@ -109,7 +108,6 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase
$this->object->encode(new Format\Video\WebM(32, 32), './invalid.file');
}
/**
* @covers FFMpeg\FFMpeg::encode
* @expectedException \RuntimeException