Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garamond13/2D-Image-Resampling
A general resampling algorithm made for experimental / testing use.
https://github.com/garamond13/2D-Image-Resampling
Last synced: 3 months ago
JSON representation
A general resampling algorithm made for experimental / testing use.
- Host: GitHub
- URL: https://github.com/garamond13/2D-Image-Resampling
- Owner: garamond13
- License: mit
- Created: 2022-11-30T15:21:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-14T19:13:11.000Z (10 months ago)
- Last Synced: 2024-06-30T14:50:00.702Z (4 months ago)
- Language: GLSL
- Homepage:
- Size: 136 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mpv - 2D Image Resampling - 2D Image Resampling is a general resampling algorithm made for experimental / testing use. (Other)
README
# Interpolation-based image scaling
The MPV player user shader for interpolation-based image scaling. Designed for experimental, testing or educational use.## Usage
- If you place this shader in the same folder as your `mpv.conf`, you can use it with `glsl-shaders-append="~~/interpolation_based_image_scaling.glsl"`.
- The shader is controlled under `user configurable` section by changing macro values and by directly implementing filter kernel.
- Requires `vo=gpu-next`.## Notes
- The shader is not optimised for speed.
- Antiringing behaves a bit differently compared with the same technique implemented in separated passes.
- In general, you may expect slightly different results from different implementations of resampling algorithms.
- For `linearize` and `delinearize` macros see `pl_shader_linearize` and `pl_shader_delinearize` functions 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/