[vlc-devel] [PATCH] Direct3D shader support (HLSL)

Sasha Koruga skoruga at gmail.com
Sat Aug 14 07:34:44 CEST 2010


Hello,
I hope I am doing this right! I git cloned the latest vlc version
today, and added the changes I've been working on. The patches are
attached to this email.

Here's the feature list:

-High Level Shader Language (HLSL) support for the Direct3D module
(default for Windows Vista and Windows 7)
-Added GUI to allow real-time selection of shaders (can change
midstream, during pause, etc, with no delay)
-Good fallback support (if video card does not support shaders,
shaders will automatically be disabled)
-SHADER: Grayscale - Plays the video in grayscale
-SHADER: Invert Colors - Plays the video with inverted colors
-SHADER: 16-235 -> 0-255 - linearly scales color space from 16-235 to
0-255  (e.g 0-16 will all be 0)
-SHADER: Red Detect 0-15 & 236-255 - Replaces colors which are between
0-15 & 236-255 with red, in order to see how much the video will
benefit from the above shader
-SHADER: bt601 -> bt709 - Makes the video output in BT.709 as oppose
to BT.601 (for high-def video)
-SHADER: Gamma Correction (1.8) - Gamma corrects the video with value 1.8
-SHADER: Gamma Correction (2.2) - Gamma corrects the video with value 2.2
-SHADER: Gamma Correction (BT.709) - Gamma corrects the video
according to the BT.709 standards

Work in progress: YUV->RGB & other color space conversion shaders,
OpenGL support & shaders, sharpening shader(s), and scaling shader(s)

Best Regards,
Sasha Koruga
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sasha-koruga-patches.zip
Type: application/zip
Size: 17364 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100813/28a7bae4/attachment.zip>


More information about the vlc-devel mailing list