Descale
From Avisynth wiki
(Difference between revisions)
(Descale r8) |
(add links) |
||
Line 8: | Line 8: | ||
|4=Resize | |4=Resize | ||
|5=[https://github.com/Irrational-Encoding-Wizardry/descale/blob/master/LICENSE MIT] | |5=[https://github.com/Irrational-Encoding-Wizardry/descale/blob/master/LICENSE MIT] | ||
− | |6=}} | + | |6=[https://forum.doom9.org/showthread.php?t=174570 Doom9 Thread]}} |
<br> | <br> | ||
== Description == | == Description == | ||
Line 81: | Line 81: | ||
== External Links == | == External Links == | ||
*[https://github.com/Irrational-Encoding-Wizardry/descale GitHub] - source code repository | *[https://github.com/Irrational-Encoding-Wizardry/descale GitHub] - source code repository | ||
+ | *[https://silentaperture.gitlab.io/mdbook-guide/filtering/descaling.html GitLab] - guide on descaling. | ||
+ | *[https://guide.encode.moe/encoding/descaling.html encode.moe] - kageru's descaling guide. | ||
<br> | <br> | ||
<br> | <br> | ||
----------------------------------------------- | ----------------------------------------------- | ||
'''Back to [[External_filters#Resizers|External Filters]] ←''' | '''Back to [[External_filters#Resizers|External Filters]] ←''' |
Latest revision as of 19:42, 8 February 2023
Abstract | |
---|---|
Author | Frechdachs |
Version | r8 |
Download | [x86]: avisynth-descale-r8-win32.zip
|
Category | Resize |
License | MIT |
Discussion | Doom9 Thread |
Contents |
[edit] Description
Descale is a filter to undo upscaling.
[edit] 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.
[edit] 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.
- clip =
- int =
- int =
target_width, target_height
: presumed 'native' resolution.
- int =
- 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"
- Parameter for
- string kernel =
- 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.
- Parameters for
- float b = 0.0
- 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.
- Parameter for
- int taps = 3
- float src_left = 0.0
- Cropping of the left edge.
- float src_left = 0.0
- float src_top = 0.0
- Cropping of the top edge.
- float src_top = 0.0
- 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_width = Source width
- 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
- float src_height = Source height
- int opt = 0
- Sets which cpu optimizations to use.
- 0 : auto
- 1 : none
- 2 : avx2
- Sets which cpu optimizations to use.
- int opt = 0
[edit] Changelog
Version Date Changes
r8 2022/04/02 - Add AviSynth+ plugin (API V8 required) - AviSynth+: self-registers as MT_NICE_FILTER
[edit] External Links
- GitHub - source code repository
- GitLab - guide on descaling.
- encode.moe - kageru's descaling guide.
Back to External Filters ←