| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class YadifVideoFilter implements FFMpegVideoFilterInterface, VideoDeinterlacerInterface |
||
| 11 | { |
||
| 12 | public const DEFAULT_MODE = 0; |
||
| 13 | public const DEFAULT_PARITY = -1; |
||
| 14 | public const DEFAULT_DEINT = 0; |
||
| 15 | |||
| 16 | /** @var array<string, int> */ |
||
| 17 | protected $options = [ |
||
| 18 | 'mode' => self::DEFAULT_MODE, |
||
| 19 | 'parity' => self::DEFAULT_PARITY, |
||
| 20 | 'deint' => self::DEFAULT_DEINT, |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param int $mode The interlacing mode to adopt (0, send_frame Output one frame for each frame) |
||
| 25 | * @param int $parity default=-1 Enable automatic detection of field parity. 0: |
||
| 26 | * @param int $deint Specify which frames to deinterlace (0: all - Deinterlace all frames.) |
||
| 27 | */ |
||
| 28 | 1 | public function __construct(int $mode = self::DEFAULT_MODE, int $parity = self::DEFAULT_PARITY, int $deint = self::DEFAULT_DEINT) |
|
| 34 | ]; |
||
| 35 | 1 | } |
|
| 36 | |||
| 37 | 1 | public function getFFmpegCLIValue(): string |
|
| 49 |