Descale

From Avisynth wiki
Revision as of 19:42, 8 February 2023 by Reel.Deal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Abstract
Author Frechdachs
Version r8
Download [x86]: avisynth-descale-r8-win32.zip

[x64]: avisynth-descale-r8-win64.zip

Category Resize
License MIT
Discussion Doom9 Thread


Contents

Description

Descale is a filter to undo upscaling.

Requirements

  • [x86] / [x64]: AviSynth+
  • Supported color formats: All planar formats (8/10/12/14/16/32-bit, YUV/RGB with or without alpha) are supported.


Syntax and Parameters

Debicubic (clip, int target_width, int target_height, float "b", float "c", float "src_left", float "src_top", float "src_width", float "src_height", int "opt")
Debilinear (clip, int target_width, int target_height, float "src_left", float "src_top", float "src_width", float "src_height", int "opt")
Delanczos (clip, int target_width, int target_height, int "taps", float "src_left", float "src_top", float "src_width", float "src_height", int "opt")
Descale (clip, int target_width, int target_height, string "kernel", int "taps", float "b", float "c", float "src_left", float "src_top", float "src_width", float "src_height", int "opt")
Despline16 (clip, int target_width, int target_height, float "src_left", float "src_top", float "src_width", float "src_height", int "opt")
Despline36 (clip, int target_width, int target_height, float "src_left", float "src_top", float "src_width", float "src_height", int "opt")
Despline64 (clip, int target_width, int target_height, float "src_left", float "src_top", float "src_width", float "src_height", int "opt")


clip   =
Input clip.


int   =
int   =
target_width, target_height: presumed 'native' resolution.


string  kernel =
Parameter for Descale only. Note that this parameter is named but does not have a default.
Desample mode: "bilinear", "bicubic", "lanczos", "spline16", "spline32", "spline64"


float  b = 0.0
float  c = 0.5
Parameters for Debicubic only.
The parameters b and c can be used to adjust the properties of the cubic, they are sometimes referred to as "blurring" and "ringing" respectively.


int  taps = 3
Parameter for Delanczos only.
Controls the filter’s number of lobes, or taps. Increasing the number of lobes improves sharpness at the cost of increased ringing.
You might occasionally see the tap count appended to the filter name to clarify the exact filter used, e.g. Lanczos2 for 2 taps.


float  src_left = 0.0
Cropping of the left edge.


float  src_top = 0.0
Cropping of the top edge.


float  src_width = Source width
If > 0.0 it sets the width of the clip before resizing.
If <= 0.0 it sets the cropping of the right edges before resizing.


float  src_height = Source height
If > 0.0 it sets the height of the clip before resizing.
If <= 0.0 it sets the cropping of the bottom edges before resizing


int  opt = 0
Sets which cpu optimizations to use.
  • 0 : auto
  • 1 : none
  • 2 : avx2


Changelog

Version      Date            Changes
r8 2022/04/02 - Add AviSynth+ plugin (API V8 required) - AviSynth+: self-registers as MT_NICE_FILTER


External Links




Back to External Filters

Personal tools