Total Complexity | 6 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | final class VP9 extends Video |
||
18 | { |
||
19 | /** |
||
20 | * VP9 constructor. |
||
21 | * @param string $video_codec |
||
22 | * @param string|null $audio_codec |
||
23 | */ |
||
24 | public function __construct(string $video_codec = 'libvpx-vp9', string $audio_codec = null) |
||
25 | { |
||
26 | $this->setVideoCodec($video_codec); |
||
27 | |||
28 | if($audio_codec){ |
||
29 | $this->setAudioCodec($audio_codec); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | */ |
||
36 | public function getAvailableAudioCodecs() |
||
37 | { |
||
38 | return ['']; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | public function getAvailableVideoCodecs(): array |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return int |
||
51 | */ |
||
52 | public function getModulus() |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Returns true if the current format supports B-Frames. |
||
59 | * |
||
60 | * @see https://wikipedia.org/wiki/Video_compression_picture_types |
||
61 | * |
||
62 | * @return Boolean |
||
63 | */ |
||
64 | public function supportBFrames() |
||
69 |