The MPV player user shader for interpolation-based image scaling. Designed for experimental, testing or educational use.
- If you place this shader in the same folder as your
mpv.conf, you can use it withglsl-shaders-append="~~/2d_image_resampling.glsl". - The shader is controlled under
user configurablesection by changing macro values and by directly implementing filter kernel. - Requires
vo=gpu-next.
- The shader is not optimised for speed.
- In general, you may expect slightly different results from different implementations of resampling algorithms.
- For
linearizeanddelinearizemacros seepl_shader_linearizeandpl_shader_delinearizefunctions in https://github.com/haasn/libplacebo/blob/master/src/shaders/colorspace.c - In general for sintax of mpv user shaders see https://libplacebo.org/custom-shaders/