Metadata-Version: 2.1
Name: nnedi3_resample
Version: 10
Summary: Adjust vapursynth script
Project-URL: Homepage, https://github.com/dubhater/vapoursynth-adjust
Project-URL: Bug Tracker, https://github.com/dubhater/vapoursynth-adjust/issues
Author: dubhater
Keywords: VapourSynth,adjust
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Multimedia :: Video
Requires-Python: >=3.10
Requires-Dist: fmtconv
Requires-Dist: mvsfunc
Requires-Dist: vapoursynth>=68
Description-Content-Type: text/markdown

# nnedi3_resample

A VapourSynth script for easy resizing using nnedi3/znedi3/nnedi3cl with center alignment and correct chroma placement.

## Requirements

- [nnedi3](https://github.com/dubhater/vapoursynth-nnedi3) / [znedi3](https://github.com/sekrit-twc/znedi3) / [nnedi3cl](https://github.com/HomeOfVapourSynthEvolution/VapourSynth-NNEDI3CL)
- [fmtconv](https://github.com/EleonoreMizo/fmtconv)
- [mvsfunc](https://github.com/HomeOfVapourSynthEvolution/mvsfunc)

## Usage

For Windows users, put nnedi3_resample.py into
- VapourSynth installed for all users: `<python folder>\Lib\site-packages`
- VapourSynth installed for current user: `%AppData%\Python\Python<version>\site-packages`

## Function

It can do scaling, color space conversion, etc.

**Note**: Internally always processing in 16-bit integer, and the output format can be specified by "csp" with Format id (default is the same as input).

## Example

Double the width and height of a clip.

```python
import vapoursynth as vs
from vapoursynth import core
from nnedi3_resample import nnedi3_resample

clip = XXXSource()
clip = nnedi3_resample(clip, clip.width * 2, clip.height * 2, mode='znedi3')

clip.set_output()
```

## ChangeLog

1. Add new option `mode`, default value is `nnedi3`, optional value:
    - `znedi3`, it may be faster than nnedi3
    - `nnedi3cl`, it can be used with new options `device` (same as the parameter of the plugin with the same name)
2. Chage how to import core because `get_core` is deprecated.
3. Remove `YCOCG` and `COMPAT`, deprecated in VapourSynth API4.
