class ResizeFilter implements VideoFilterInterface
Constants
RESIZEMODE_FIT |
fits to the dimensions, might introduce anamorphosis |
RESIZEMODE_INSET |
resizes the video inside the given dimension, no anamorphosis |
RESIZEMODE_SCALE_WIDTH |
resizes the video to fit the dimension width, no anamorphosis |
RESIZEMODE_SCALE_HEIGHT |
resizes the video to fit the dimension height, no anamorphosis |
Methods
__construct(Dimension $dimension, $mode = self::RESIZEMODE_FIT, $forceStandards = true, $priority) | ||
integer |
getPriority()
Returns the priority of the filter. |
|
Dimension | getDimension() | |
string | getMode() | |
Boolean | areStandardsForced() | |
array |
apply(Video $video, VideoInterface $format)
Applies the filter on the the Video media given an format. |
Details
at line 38
public
__construct(Dimension $dimension, $mode = self::RESIZEMODE_FIT, $forceStandards = true, $priority)
at line 49
public integer
getPriority()
Returns the priority of the filter.
at line 57
public Dimension
getDimension()
at line 65
public string
getMode()
at line 73
public Boolean
areStandardsForced()
at line 81
public array
apply(Video $video, VideoInterface $format)
Applies the filter on the the Video media given an format.