TileFilter
in package
implements
VideoFilterInterface
Inspired by: https://github.com/protonemedia/laravel-ffmpeg/issues/335
Table of Contents
Interfaces
- VideoFilterInterface
Properties
- $calculatedDimension : Dimension|null
- $columns : int
- $height : int
- $interval : float
- $margin : int
- $padding : int
- $priority : int
- $quality : int|null
- $rows : int
- $width : int
Methods
- __construct() : mixed
- apply() : mixed
- {@inheritdoc}
- getCalculatedDimension() : Dimension
- getMinimalFFMpegVersion() : string
- Get minimal version of ffmpeg starting with which this filter is supported.
- getName() : string
- Get name of the filter.
- getPriority() : mixed
- {@inheritdoc}
- getCommands() : array<string|int, mixed>
- calculateDimension() : Dimension
Properties
$calculatedDimension
public
Dimension|null
$calculatedDimension
= null
$columns
public
int
$columns
$height
public
int
$height
$interval
public
float
$interval
$margin
public
int
$margin
= 0
$padding
public
int
$padding
= 0
$priority
public
int
$priority
= 0
$quality
public
int|null
$quality
= null
$rows
public
int
$rows
$width
public
int
$width
Methods
__construct()
public
__construct(float $interval, int $width, int $height, int $columns, int $rows[, int $padding = 0 ][, int $margin = 0 ][, int|null $quality = null ][, int $priority = 0 ]) : mixed
Parameters
- $interval : float
- $width : int
- $height : int
- $columns : int
- $rows : int
- $padding : int = 0
- $margin : int = 0
- $quality : int|null = null
- $priority : int = 0
apply()
{@inheritdoc}
public
apply(Video $video, VideoInterface $format) : mixed
Parameters
- $video : Video
- $format : VideoInterface
getCalculatedDimension()
public
getCalculatedDimension() : Dimension
Return values
DimensiongetMinimalFFMpegVersion()
Get minimal version of ffmpeg starting with which this filter is supported.
public
getMinimalFFMpegVersion() : string
Return values
stringgetName()
Get name of the filter.
public
getName() : string
Return values
stringgetPriority()
{@inheritdoc}
public
getPriority() : mixed
getCommands()
protected
getCommands(Stream $stream) : array<string|int, mixed>
Parameters
- $stream : Stream
Return values
array<string|int, mixed>calculateDimension()
private
calculateDimension(Dimension $streamDimension) : Dimension
Parameters
- $streamDimension : Dimension