<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_Deblur_%28GLSL-A4K%29</id>
	<title>Vapoursynth Deblur (GLSL-A4K) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_Deblur_%28GLSL-A4K%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Deblur_(GLSL-A4K)&amp;action=history"/>
	<updated>2026-11-20T08:30:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_Deblur_(GLSL-A4K)&amp;diff=547&amp;oldid=prev</id>
		<title>Selur: New filter page (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Deblur_(GLSL-A4K)&amp;diff=547&amp;oldid=prev"/>
		<updated>2026-11-16T08:50:07Z</updated>

		<summary type="html">&lt;p&gt;New filter page (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;float:right; margin:0 0 1em 1em;&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Deblur (GLSL-A4K)&amp;#039;&amp;#039;&amp;#039; sharpens soft line art on the GPU with the Anime4K &amp;#039;&amp;#039;Deblur Original&amp;#039;&amp;#039; shader.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → Vapoursynth → Line&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_GLSLDeblur.png|none|Deblur (GLSL-A4K) controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
The shader measures the edge strength of the luma with Sobel kernels and maps it through a fitted curve to a refinement amount. Where that amount is high, the edges are steepened. It works best on blurry anime and cartoon lines.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* vs-placebo (libplacebo) and a GPU with Vulkan support.&lt;br /&gt;
* The GLSL shader folder in Hybrid&amp;#039;s VapourSynth plugins; without it the filter is locked.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Parameter !! Range / values !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Strength || REFINE_STRENGTH || 0.01 – 100 || 1.0 || Strength of the edge refinement; good values are about 0.2 – 4.&lt;br /&gt;
|-&lt;br /&gt;
| Bias || REFINE_BIAS || 0 – 100 || 0 || Offset added to the refinement amount; good values are about 0 – 1.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings on a 10-bit YUV 4:2:0 source (640x356):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color space from YUV420P10 to YUV444P16 for vsGLSLDeblur&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16)&lt;br /&gt;
with open(&amp;quot;F:/Hybrid/64bit/vsfilters/GLSL/parameterized/Anime4K_Deblur_Original.glsl&amp;quot;) as glslf:&lt;br /&gt;
  glsl = glslf.read()&lt;br /&gt;
glsl = glsl.replace(&amp;#039;#define REFINE_STRENGTH 1.0&amp;#039;, &amp;#039;#define REFINE_STRENGTH 1&amp;#039;)&lt;br /&gt;
glsl = glsl.replace(&amp;#039;#define REFINE_BIAS 0.0&amp;#039;, &amp;#039;#define REFINE_BIAS 0&amp;#039;)&lt;br /&gt;
clip = core.placebo.Shader(clip, shader_s=glsl, width=clip.width, height=clip.height, matrix=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* The clip is converted to YUV 4:4:4 16 bit, the only format the shader filter accepts; the output stays in that format and size.&lt;br /&gt;
* Hybrid writes Strength and Bias into the shader text and runs it with the input width and height and the clip&amp;#039;s color matrix.&lt;br /&gt;
* Both values are always written. They work on normalized values and are not scaled to the bit depth.&lt;br /&gt;
* Deblur (GLSL-A4K) also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== The shader ===&lt;br /&gt;
Hybrid uses the Anime4K v3.2 &amp;#039;&amp;#039;Deblur-Original&amp;#039;&amp;#039; shader by bloc97 (MIT license). It computes the Sobel kernels at twice the size and resamples the result back to the input size. The refinement amount (curve × Strength + Bias) is clamped to 0 – 1, so a Bias of 1 or more already means full refinement everywhere. Related shaders: [[Vapoursynth Darken (GLSL-A4K)|Darken (GLSL-A4K)]] and [[Vapoursynth Thin (GLSL-A4K)|Thin (GLSL-A4K)]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/bloc97/Anime4K Anime4K]&lt;br /&gt;
* [https://github.com/sgt0/vs-placebo vs-placebo README]&lt;br /&gt;
* Hybrid&amp;#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
</feed>