Skip to content

Instantly share code, notes, and snippets.

@voltmtr
voltmtr / 0001-vo_opengl-Super-xBR-add-antiring-and-offset-bias-sub.patch
Created May 11, 2016 16:12
Super-xBR tweakable antiringing patch for mpv
From e7acb9ce6e1785b2c2166ddad9705fea779e3e14 Mon Sep 17 00:00:00 2001
From: example <[email protected]>
Date: Mon, 9 May 2016 17:23:50 +0300
Subject: [PATCH] vo_opengl: Super-xBR: add antiring and offset-bias suboptions
Add Hyllian's tweakable antiringing algorithm. superxbr-antiring
suboption can be between 0.0 and 1.0 (default=0). Add offset-bias
setting to tweak how Super-xBR is applied, setting this to lower values
can help with having thinner edges.
superxbr-offset-bias suboption can be between 0.01 and 1.0
@voltmtr
voltmtr / LumaSharpenHook.glsl
Last active June 21, 2024 08:29
usage: vo=opengl-hq:user-shaders="~/config_directory/LumaSharpenHook.glsl"
// vim: set ft=glsl:
/*
LumaSharpenHook 0.3
original hlsl by Christian Cann Schuldt Jensen ~ CeeJay.dk
port to glsl by Anon
It blurs the original pixel with the surrounding pixels and then subtracts this blur to sharpen the image.
It does this in luma to avoid color artifacts and allows limiting the maximum sharpning to avoid or lessen halo artifacts.
@voltmtr
voltmtr / lumasharpen.glsl
Last active July 11, 2023 00:25
usage: add post-shaders=~/config_directory/lumasharpen.glsl to your vo=opengl/opengl-hq config
// vim: set ft=glsl:
/*
LumaSharpen 1.4.1
original hlsl by Christian Cann Schuldt Jensen ~ CeeJay.dk
port to glsl by Anon
It blurs the original pixel with the surrounding pixels and then subtracts this blur to sharpen the image.
It does this in luma to avoid color artifacts and allows limiting the maximum sharpning to avoid or lessen halo artifacts.