[vlc-devel] [PATCH] Direct3D: implement HLSL pixel shading in the rendering pipeline

Felix Abecassis felix.abecassis at gmail.com
Tue Jan 28 14:49:00 CET 2014

2014-01-28 Rafaël Carré <funman at videolan.org>:
> Sorry, I meant it is not initialized if Effect_Begin() fails.
Oh right, it isn't mentioned, better initialize it to 1 then.

> By the way I meant to ask but didn't in my first mail,
> What is this for? :) I honestly have no idea.
I realized I needed shaders after investigating the luminance "issue"
on Windows with NVIDIA drivers. In the NVIDIA Control Panel, by
default the luminance range is 16-235 for applications. So if you use
HW YUV->RGB conversion you will end up with this limited range. I
tried to use NVAPI (https://developer.nvidia.com/nvapi) to change the
settings, but without success. Using shaders you can solve this issue
(using the included WidenColorSpace shader) but you can also do much
more. We can add more color conversions functions, denoising filters,
sharpening filters, etc.

There is still some work to do here, we will probably provide a list
of builtin shaders and let the user select a file to import (right now
the file path cannot be changed). Some important shaders are also
currently missing in the provided file.

Félix Abecassis

More information about the vlc-devel mailing list