Rename Audio to AudioInterface and Video to VideoInterface

This commit is contained in:
Romain Neutron 2012-10-31 00:53:26 +01:00
commit ea17f2f257
12 changed files with 128 additions and 34 deletions

View file

@ -11,7 +11,7 @@
namespace FFMpeg\Format\Audio;
use FFMpeg\Format\Audio as BaseAudio;
use FFMpeg\Format\AudioInterface;
/**
* The resamplable audio interface
@ -20,7 +20,7 @@ use FFMpeg\Format\Audio as BaseAudio;
*
* @author Romain Neutron imprec@gmail.com
*/
interface Resamplable extends BaseAudio
interface Resamplable extends AudioInterface
{
/**

View file

@ -11,12 +11,12 @@
namespace FFMpeg\Format\Audio;
use FFMpeg\Format\Audio as BaseAudio;
use FFMpeg\Format\AudioInterface;
/**
* @author Romain Neutron imprec@gmail.com
*/
interface Transcodable extends BaseAudio
interface Transcodable extends AudioInterface
{
/**

View file

@ -16,7 +16,7 @@ namespace FFMpeg\Format;
*
* @author Romain Neutron imprec@gmail.com
*/
interface Audio
interface AudioInterface
{
/**

View file

@ -11,7 +11,7 @@
namespace FFMpeg\Format\Video;
use FFMpeg\Format\Video as BaseVideo;
use FFMpeg\Format\VideoInterface;
/**
* The resamplable video interface
@ -20,7 +20,7 @@ use FFMpeg\Format\Video as BaseVideo;
*
* @author Romain Neutron imprec@gmail.com
*/
interface Resamplable extends BaseVideo
interface Resamplable extends VideoInterface
{
/**

View file

@ -11,7 +11,7 @@
namespace FFMpeg\Format\Video;
use FFMpeg\Format\Video as BaseVideo;
use FFMpeg\Format\VideoInterface;
use FFMpeg\Format\Dimension;
/**
@ -21,7 +21,7 @@ use FFMpeg\Format\Dimension;
*
* @author Romain Neutron imprec@gmail.com
*/
interface Resizable extends BaseVideo
interface Resizable extends VideoInterface
{
/**

View file

@ -11,12 +11,12 @@
namespace FFMpeg\Format\Video;
use FFMpeg\Format\Video as BaseVideo;
use FFMpeg\Format\VideoInterface;
/**
* @author Romain Neutron imprec@gmail.com
*/
interface Transcodable extends BaseVideo
interface Transcodable extends VideoInterface
{
/**

View file

@ -0,0 +1,47 @@
<?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;
/**
* The WMV video format
*
* @author Romain Neutron imprec@gmail.com
*/
class WMV extends DefaultVideo
{
protected $audioCodec = 'wmav2';
protected $videoCodec = 'wmv2';
/**
* {@inheritDoc}
*/
public function supportBFrames()
{
return false;
}
/**
* {@inheritDoc}
*/
public function getAvailableAudioCodecs()
{
return array('wmav2');
}
/**
* {@inheritDoc}
*/
public function getAvailableVideoCodecs()
{
return array('wmv2');
}
}

View file

@ -0,0 +1,47 @@
<?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;
/**
* The WMV video format
*
* @author Romain Neutron imprec@gmail.com
*/
class WMV3 extends DefaultVideo
{
protected $audioCodec = 'wmav3';
protected $videoCodec = 'wmv3';
/**
* {@inheritDoc}
*/
public function supportBFrames()
{
return false;
}
/**
* {@inheritDoc}
*/
public function getAvailableAudioCodecs()
{
return array('wmav3');
}
/**
* {@inheritDoc}
*/
public function getAvailableVideoCodecs()
{
return array('wmv3');
}
}

View file

@ -16,7 +16,7 @@ namespace FFMpeg\Format;
*
* @author Romain Neutron imprec@gmail.com
*/
interface Video extends Audio
interface VideoInterface extends AudioInterface
{
/**
* Returns the number of passes