VapourSynth 1.0 documentation
previous | next | index

# Resize

`resize.``Bilinear`(clip clip[, int width, int height, int format])
`resize.``Bicubic`(clip clip[, int width, int height, int format])
`resize.``Point`(clip clip[, int width, int height, int format])
`resize.``Gauss`(clip clip[, int width, int height, int format])
`resize.``Sinc`(clip clip[, int width, int height, int format])
`resize.``Lanczos`(clip clip[, int width, int height, int format])
`resize.``Spline`(clip clip[, int width, int height, int format])

  In VapourSynth the resizers have several functions. In addition to scaling, they also do colorspace conversions and conversions to and from the compat formats. All the optional arguments default to the input clip‘s properties. The resize filters can handle varying size and format input clips and turn them into a constant format clip. If you do not know which resizer to choose then Bicubic usually makes a good neutral default.

  The function will return an error if the subsampling restrictions aren’t followed.

  To convert to YV12:

      Bicubic(clip=clip, format=vs.YUV420P8)

  To resize and convert to planar RGB:

      Bicubic(clip=clip, width=1920, height=1080, format=vs.RGB24)