Metadata-Version: 2.4
Name: vapoursynth-bwdif
Version: 5.1
Summary: BobWeaver Deinterlacing Filter
Keywords: vapoursynth,bwdif
License-Expression: LGPL-3.0-or-later
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Plugins
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: C++
Classifier: Topic :: Multimedia :: Video
Project-URL: Repository, https://github.com/HomeOfVapourSynthEvolution/VapourSynth-Bwdif
Project-URL: Issues, https://github.com/HomeOfVapourSynthEvolution/VapourSynth-Bwdif/issues
Requires-Python: >=3.12
Requires-Dist: VapourSynth>=74
Description-Content-Type: text/markdown

# Bwdif

Motion adaptive deinterlacing based on yadif with the use of w3fdif and cubic interpolation algorithms.

Ported from FFmpeg's libavfilter https://www.ffmpeg.org/ffmpeg-filters.html#bwdif.


## Parameters

```py
bwdif.Bwdif(vnode clip, int field[, vnode edeint=None, int opt=0])
```

- clip: Clip to process. Any format with either integer sample type of 8-16 bit depth or float sample type of 32 bit depth is supported.

- field: Controls the mode of operation (double vs same rate) and which field is kept.
  - 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

- edeint: Allows the specification of an external clip from which to take spatial predictions instead of having Bwdif use cubic interpolation. 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.

- opt: Specifies which cpu optimizations to use.
  - 0 = auto detect
  - 1 = use c
  - 2 = use sse4.1
  - 3 = use avx2
  - 4 = use avx512


## Installation

```
pip install -U vapoursynth-bwdif
```
