BWDIF
From Avisynth wiki
(Difference between revisions)
m (→Changelog: typo) |
(BWDIF 1.2.5) |
||
Line 2: | Line 2: | ||
{{Filter3 | {{Filter3 | ||
|1={{Author/Asd-g}} | |1={{Author/Asd-g}} | ||
− | |2=v1.2. | + | |2=v1.2.5 |
− | |3=[https://github.com/Asd-g/AviSynth-BWDIF/releases/ BWDIF-1.2. | + | |3=[https://github.com/Asd-g/AviSynth-BWDIF/releases/ BWDIF-1.2.5.7z] |
|4=Deinterlacing | |4=Deinterlacing | ||
|5=[https://www.gnu.org/licenses/lgpl-3.0.en.html LGPLv3] | |5=[https://www.gnu.org/licenses/lgpl-3.0.en.html LGPLv3] | ||
Line 25: | Line 25: | ||
<br> | <br> | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
− | :{{Template:FuncDef|BWDIF (clip, int "field", clip "edeint", int "opt", float "thr", bool "debug")}} | + | :{{Template:FuncDef|BWDIF (clip, int "field", clip "edeint", int "opt", float "thr", bool "debug", bool "pass")}} |
<br> | <br> | ||
::{{Par2| |clip| }} | ::{{Par2| |clip| }} | ||
Line 60: | Line 60: | ||
::{{Par2|debug|bool|false}} | ::{{Par2|debug|bool|false}} | ||
:::Whether to show which pixels will be interpolated. | :::Whether to show which pixels will be interpolated. | ||
+ | :::Default: False. | ||
+ | <br> | ||
+ | ::{{Par2|pass|bool|false}} | ||
+ | :::Whether to return the source frame (repeated when double rate) when _FieldBased is 0. | ||
:::Default: False. | :::Default: False. | ||
<br> | <br> | ||
Line 65: | Line 69: | ||
BWDIF with default settings: | BWDIF with default settings: | ||
[[AviSource]]("blah.avi") | [[AviSource]]("blah.avi") | ||
− | BWDIF(field=-1, opt=-1, thr=0.0, debug=false) | + | BWDIF(field=-1, opt=-1, thr=0.0, debug=false, pass=false) |
<br> | <br> | ||
== Changelog == | == Changelog == | ||
Version Date Changes<br> | Version Date Changes<br> | ||
+ | v1.2.5 2023/01/29 - Fixed processing when BFF. | ||
+ | v1.2.4 2022/11/30 - Added parameter pass. | ||
+ | v1.2.3 2022/11/20 - Fixed double rate mode. | ||
v1.2.2 2022/11/04 - Added parameter thr. | v1.2.2 2022/11/04 - Added parameter thr. | ||
- Added parameter debug. | - Added parameter debug. |
Revision as of 08:22, 18 May 2023
Abstract | |
---|---|
Author | Asd-g |
Version | v1.2.5 |
Download | BWDIF-1.2.5.7z |
Category | Deinterlacing |
License | LGPLv3 |
Discussion |
Contents |
Description
BWDIF (Bob Weaver Deinterlacing Filter): motion adaptive deinterlacing based on yadif with the use of w3fdif and cubic interpolation algorithms. This is a port of the VapourSynth plugin Bwdif.
Requirements
- [x86]: AviSynth+ or AviSynth 2.6
- [x64]: AviSynth+
- Supported color formats: Y8, YV12, YV16, YV24, YV411
- AviSynth+: all planar formats (8/10/12/14/16/32-bit, Y, YUV(A), and RGB(A) with or without alpha) are supported.
- *** vcredist_x86.exe is required for BWDIF-x86
- *** vcredist_x64.exe is required for BWDIF-x64
Syntax and Parameters
- BWDIF (clip, int "field", clip "edeint", int "opt", float "thr", bool "debug", bool "pass")
- clip =
- A clip to process. All planar formats are supported.
- clip =
- int field = -1
- Controls the mode of operation (double vs same rate) and which field is kept.
- -2 : Double rate (alternates each frame), AviSynth internal order.
- -1 : Same rate, AviSynth internal order.
- 0 : Same rate, keep bottom field.
- 1 : Same rate, keep top field.
- 2 : Double rate (alternates each frame), starts with bottom.
- 3 : Double rate (alternates each frame), starts with top.
- Controls the mode of operation (double vs same rate) and which field is kept.
- int field = -1
- clip edeint =
- Clip from which to take spatial predictions. This clip must be the same width, height, and colorspace as the input clip.
- If using same rate output, this clip should have the same number of frames as the input. If using double rate output, this clip should have twice as many frames as the input.
- clip edeint =
- int opt = -1
- Sets which cpu optimizations to use.
- -1 : Auto-detect.
- 0 : Use C++ code.
- 1 : Use SSE2 code.
- 2 : Use AVX2 code.
- 3 : Use AVX512 code.
- Sets which cpu optimizations to use.
- int opt = -1
- float thr = 0.0
- Threshold for interpolation.
- If the difference between pixels of the prev/next frame is less than or equal to this, the resulted pixel wouldn't be interpolated.
- Must be between 0.0..100.0.
- 100.0: No interpolation is performed.
- Default: 0.0.
- float thr = 0.0
- bool debug = false
- Whether to show which pixels will be interpolated.
- Default: False.
- bool debug = false
- bool pass = false
- Whether to return the source frame (repeated when double rate) when _FieldBased is 0.
- Default: False.
- bool pass = false
Examples
BWDIF with default settings:
AviSource("blah.avi") BWDIF(field=-1, opt=-1, thr=0.0, debug=false, pass=false)
Changelog
Version Date Changes
v1.2.5 2023/01/29 - Fixed processing when BFF. v1.2.4 2022/11/30 - Added parameter pass. v1.2.3 2022/11/20 - Fixed double rate mode. v1.2.2 2022/11/04 - Added parameter thr. - Added parameter debug. - Added support to read frame property _FieldBased. v1.2.1 2021/02/05 - Set frame property _FieldBased to 0. v1.2.0 2020/08/24 - Added parameter edeint. v1.1.1 2020/08/10 - Fixed double rate. v1.1.0 2020/08/08 - Added field option -2. v1.0.0 2020/08/06 - Initial release; port of the VapourSynth plugin - AviSynth+: self-registers as MT_NICE_FILTER
External Links
- GitHub - Source code repository.
Back to External Filters ←