[vlc-commits] d3d_dynamic_shader: fix name of max white value allowed
Steve Lhomme
git at videolan.org
Fri Feb 26 14:34:21 UTC 2021
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Feb 23 14:27:05 2021 +0100| [7543e73d7dd7df4b4127031cf6b0f4608e6ab284] | committer: Steve Lhomme
d3d_dynamic_shader: fix name of max white value allowed
The minimum is a black level, the maximum is a white level.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7543e73d7dd7df4b4127031cf6b0f4608e6ab284
---
modules/video_output/win32/d3d_dynamic_shader.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/win32/d3d_dynamic_shader.c b/modules/video_output/win32/d3d_dynamic_shader.c
index dd991fd83c..c1b3862565 100644
--- a/modules/video_output/win32/d3d_dynamic_shader.c
+++ b/modules/video_output/win32/d3d_dynamic_shader.c
@@ -165,7 +165,7 @@ inline float3 toneMapping(float3 rgb) {\n\
\n\
inline float3 adjustRange(float3 rgb) {\n\
#if (SRC_RANGE!=DST_RANGE)\n\
- return clamp((rgb + BLACK_LEVEL_SHIFT) * RANGE_FACTOR, MIN_BLACK_VALUE, MAX_BLACK_VALUE);\n\
+ return clamp((rgb + BLACK_LEVEL_SHIFT) * RANGE_FACTOR, MIN_BLACK_VALUE, MAX_WHITE_VALUE);\n\
#else\n\
return rgb;\n\
#endif\n\
@@ -399,7 +399,7 @@ static HRESULT CompilePixelShaderBlob(vlc_object_t *o, const d3d_shader_compiler
{ "BLACK_LEVEL_SHIFT", psz_black_level },
{ "RANGE_FACTOR", psz_range_factor },
{ "MIN_BLACK_VALUE", psz_min_black },
- { "MAX_BLACK_VALUE", psz_max_white },
+ { "MAX_WHITE_VALUE", psz_max_white },
{ NULL, NULL },
};
#ifndef NDEBUG
More information about the vlc-commits
mailing list