Avisynth Resizer

From wiki.selur.net
Jump to navigation Jump to search

This page describes the native (core) AviSynth resizers Hybrid can use, and how Hybrid calls them.

Main source: AviSynth+ documentation: Resize filters. For details beyond what Hybrid exposes, see that page.

Where to find it in Hybrid

Filtering → Avisynth → Frame → Resize

  • Without Resizer: enabled, Hybrid uses the resizer chosen under Crop/Resize and maps it to the matching AviSynth core resizer (bilinear → BilinearResize, bicubic → BicubicResize, nearest neighbour → PointResize, gauss → GaussResize, sinc → SincResize, lanczos → LanczosResize, bicubic spline → Spline36Resize, …), without extra parameters.
  • With Resizer: enabled, the resizer and its parameters are chosen on this tab.
  • ResampleMT uses the multithreaded variants from the ResampleMT plugin (for example LanczosResizeMT instead of LanczosResize).

Hybrid sets target width and height from Crop/Resize. Cropping is done by Hybrid's own crop step, so the resizers' src_left/src_top/src_width/src_height cropping is not used, except internally for field-based resizing of interlaced content.

Resizers

Resizer Parameters in Hybrid Character
BilinearResize – Soft; a good choice to tame overly sharp sources.
BicubicResize b (Blur), c (Sharp), each -1 to 1, default 0.33 Sharper than bilinear when enlarging; with the default b = c = 1/3 (Mitchell-Netravali) a good all-round choice, also for strong downsizing.
BlackmanResize taps 1–100, default 4 A Lanczos variant that keeps ringing better under control at high tap counts.
GaussResize p (Sharpness) 1–100, default 30 Does not overshoot (no ringing), but looks less sharp.
LanczosResize taps 1–100, default 3 Sharper than bicubic; with low-bitrate sources it can emphasise artifacts.
PointResize – Nearest neighbour: blocky, only useful for deliberate pixel looks or for magnifying small areas.
SincResize taps 1–100, default 4 Truncated sinc: very sharp, prone to ringing.
Spline16Resize – Spline kernel with 4 sample points: sharp, slight ringing.
Spline36Resize – Spline kernel with 6 sample points: between Spline16 and Spline64.
Spline64Resize – Spline kernel with 8 sample points: the most accurate of the three.

BicubicResize b/c values

According to the AviSynth+ documentation:

  • b = c = 1/3: Mitchell-Netravali (default).
  • b = 0, c = 0.5: Catmull-Rom.
  • b = 0, c = 0.75: like VirtualDub's "Precise Bicubic".
  • b + 2c = 1 is numerically most accurate; above c ≈ 0.6 ringing increases; negative b is possible but rarely gives good results.

Other resizers on the same tab

These are not AviSynth core filters, but are chosen in the same list:

  • JincResize (plugin JincResize): Jinc 36/64/144/256, with quant_x and quant_y. Jinc 144 and above disables Hybrid's MT mode.
  • NNEDI3Resize: upscaling only (nnedi3_rpow2, or NNEDI3CL with OpenCL). Hybrid uses LanczosResize instead when downscaling or when the width is not mod 4.
  • ResampleHQ: converts to RGB24 before resizing.
  • DGDecNV Crop/Resize: only when DGDecNV is used as source filter; otherwise Hybrid falls back to BicubicResize.

Not exposed in Hybrid

The AviSynth+ core also offers Lanczos4Resize (LanczosResize with taps = 4), SincLin2Resize, SinPowerResize and UserDefined2Resize (AviSynth+ 3.7.3 and later), as well as the parameters force, keep_center and placement (3.7.4 and later) and the extra GaussResize parameters b and s. Hybrid does not offer these.

See also: Avisynth Filters