[vlc-devel] [PATCH 09/14] direct3d11: fix the HLG to Linear luminance
Steve Lhomme
robux4 at videolabs.io
Mon Mar 20 17:28:28 CET 2017
The standard mentions the 12.0 coefficient. The rendering problem is elsewhere.
---
modules/video_output/win32/direct3d11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index e9bcbd229e..2b6e910d1b 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1652,7 +1652,7 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
"rgb.r = inverse_HLG(rgb.r);\
rgb.g = inverse_HLG(rgb.g);\
rgb.b = inverse_HLG(rgb.b);\
- return rgb / 6.0";
+ return rgb / 12.0";
src_transfer = TRANSFER_FUNC_LINEAR;
break;
case TRANSFER_FUNC_BT709:
--
2.11.1
More information about the vlc-devel
mailing list