Aleksoid1978 / VideoRenderer

Внешний видео-рендерер
GNU General Public License v3.0
1.04k stars 116 forks source link

Is it possible to add "jinc" to the image upscaling setting? #21

Closed yeezylife closed 3 years ago

yeezylife commented 3 years ago

Jinc could be a interesting choice for image upscaling.

Aleksoid1978 commented 3 years ago

1 - There are examples of this algorithm on shaders? 2 - There is a comparison of this algorithm with others?

yeezylife commented 3 years ago

I've been using jinc in Madvr,it's just slightly less sharp than lanczos3 , but have much less ringing. Comparison can be found inhttps://forum.doom9.org/showthread.php?t=146228&page=718

Aleksoid1978 commented 3 years ago

Is there open source implementation ?

yeezylife commented 3 years ago

https://github.com/AviSynth/jinc-resize https://github.com/Asd-g/AviSynth-JincResize https://github.com/AviSynth/jinc-resize/tree/master/JincResize I searched on github and found these..

Aleksoid1978 commented 3 years ago

We use shaders - i don't think that we can write it based on c++ code.

yeezylife commented 3 years ago

How about these,sorry I'm not a coder. https://forums.libretro.com/t/jinc-2-fixes/21146/5 https://pastebin.com/raw/fH2A3Y42 https://git.libretro.com/libretro-assets/glsl-shaders/-/blob/master/nedi/shaders/nedi-jinc.glsl

yeezylife commented 3 years ago

jinc2.zip

v0lt commented 3 years ago

Thanks. This is a shader for GLSL. Someone needs to understand it, translate it into HLSL and adapt it to our environment. I don't plan on doing this anytime soon.

qwerttvv commented 2 years ago

just take a look https://github.com/ImageMagick/ImageMagick/blob/main/MagickCore/resize.c @yeezylife

v0lt commented 2 years ago

Added in 9ce801a59499c3f182ca294cb92b57de246a7522. The status of this resizer is experimental. I'm seeing some distortion at large scales. If you know how to fix this, please write.