The filters :: resize module

The filters :: resize module provides functions, constants and global variables for the implementation of generic resizing filters.

Required modules

string :: core, string :: sprintf, numeric :: rounding, array :: properties, clip :: core

Functions

NameDescription

GetDefaultResizer()

Returns the current default resizer that is used by the Resize... family of filters...

Resize()

A generic resize filter. Uses any of the standard Avisynth resize filters, either set previously by a call to ...

ResizeToFit()

Resizes clip c such that it fits inside the rectangle specified by width target_w and height target_h...

ResizeToTarget()

Resizes base clip to the same dimensions that target clip has, ...

SetDefaultResizer()

Sets the default resizer that is used by the Resize... family of filters when the...

Constants

NameDescription

RTF_ZOOM

A ResizeToFit() filter-specific constant. Orders that the clip to be resized will be zoomed (in or out) to match the desired dimensions. Clip's aspect ratio will be preserved, but black bars to fill the remaining space, if any, may appear.

RTF_CROP

A ResizeToFit() filter-specific constant. Orders that the clip to be resized will be zoomed so that it covers the entire area set by the desired dimensions; parts that fall out will be cropped. Clip's aspect ratio will be preserved.

RTF_STRETCH

A ResizeToFit() filter-specific constant. Orders that the clip to be resized will be stretched to fit exactly the desired dimensions. Clip's aspect ratio may change as a result.

Variables

None