[vlc-devel] [PATCH 2/2] vout: vulkan: add a variety of built-in shaders

Jean-Baptiste Kempf jb at videolan.org
Mon Jun 22 13:54:34 CEST 2020


On Mon, Jun 22, 2020, at 11:08, Niklas Haas wrote:
> On Mon, 22 Jun 2020 09:45:58 +0200, Romain Vimont <rom1v at videolabs.io> wrote:
> > > +"//!TEXTURE ravu_lut3\n"
> > > +"//!SIZE 5 648\n"
> > > +"//!FORMAT rgba16f\n"
> > > +"//!FILTER NEAREST\n"
> > > +"1a88533af88e23bb14d5c73afaa0e53ab42022bbcfc4583abb5687bb3fe2283c...
> > 
> > For info, what is this hexa string, containing 103682 chars?
> 
> It is a hard-coded look-up table of pretrained weights. The source of
> this shader is https://github.com/bjin/mpv-prescalers, which contains
> more information about how the weights were trained (and how to train
> your own, if you really want to - it's a simple linear regression).
> 
> For the curious, the weights were trained using a very scientifically
> collected database of anime movies. :)
> 
> Do you want me to add this information in the commit message or a
> comment, or were you merely asking for your own curiosity?

We need, legally, the scripts to regenerate this, in our repo.

-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list