Jaded-Encoding-Thaumaturgy / vs-scale

VapourSynth (de)scaling functions
MIT License
10 stars 4 forks source link

Add a resizer similar to Avisynth's CropResize #75

Closed ghost closed 1 year ago

ghost commented 1 year ago

It's possible to do resizing with zero aspect ratio error by utilizing subpixel cropping, a way to handle this automatically would be very useful.

NSQY commented 1 year ago

https://forum.doom9.org/showthread.php?p=1991790#post1991790

ghost commented 1 year ago

implemented myself here https://gist.github.com/wiwaz/7d5afee6aadb1dae0131aedc6d1a6440

ghost commented 1 year ago

Additionally, this is more fit for vskernels and just having an argument such as keepaspect to enable this behavior. It's almost always desirable over distorting the aspect ratio so maybe it should be default, too.

Setsugennoao commented 1 year ago

how would this work when you're specifying your own shift/src_xxx

ghost commented 1 year ago

The script adjusts existing values (if present) so theres no issue with user provided shifts or regions.

Setsugennoao commented 1 year ago

Fixed here https://github.com/Irrational-Encoding-Wizardry/vs-kernels/commit/e94adb93fe02f4a46b25b442fa4642e7d1affa6b