Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resizer options for VapourSynth #1182

Open
jul059 opened this issue Jan 10, 2024 · 0 comments
Open

Add resizer options for VapourSynth #1182

jul059 opened this issue Jan 10, 2024 · 0 comments

Comments

@jul059
Copy link

jul059 commented Jan 10, 2024

There are already a great number of resizing options when using VapourSynth. I find myself using filter options that aren't already included in the presets like Hermite, which is one of the best filters for downscaling.

When adding a resize filter, there is already a prompt to select between bilinear, spline, etc. It would be great to add a few more that I find useful, such as Hermite, Lanczos2 and Lanczos3 (not sure what the default Lanczos is). This can be done simply by using the filter parameters. For example,

Hermite:
clip = core.resize.Bicubic(clip, %target_width%, %target_height%, filter_param_a=0, filter_param_b=0)

Lanczos2:
clip = core.resize.Lanczos(clip, %target_width%, %target_height%, filter_param_a=2)

Lanczos3:
clip = core.resize.Lanczos(clip, %target_width%, %target_height%, filter_param_a=3)

This would allow the use of those resizing filters without the need to know the parameters to pass as arguments. To me, it seems consistent with Staxrip's design.

Additionally, other filters that I don't use could also easily be implemented:

Catmull-Rom:
clip = core.resize.Bicubic(clip, %target_width%, %target_height%, filter_param_a=0, filter_param_b=0.5)

Sharp Bicubic:
clip = core.resize.Bicubic(clip, %target_width%, %target_height%, filter_param_a=0, filter_param_b=1)

Lanczos4:
clip = core.resize.Lanczos(clip, %target_width%, %target_height%, filter_param_a=4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants