[vlc-devel] [PATCH 06/14] direct3d11: fix typos in ST2084 inverse EOTF

Steve Lhomme robux4 at videolabs.io
Tue Mar 21 08:55:18 CET 2017


This was untested so far but now we have proper PQ output handled by Windows.

--
replaces https://patches.videolan.org/patch/16046/
- rename and more details
---
 modules/video_output/win32/direct3d11.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index cb197ed..aa616e9 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1687,11 +1687,11 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
                 if (src_transfer == TRANSFER_FUNC_LINEAR)
                 {
                     /* Linear to ST2084 */
-                    psz_src_transform =
+                    psz_display_transform =
                            ST2084_PQ_CONSTANTS
-                           "rgb = pow(rgb, m1);\
+                           "rgb = pow(rgb, ST2084_m1);\
                             rgb = (ST2084_c1 + ST2084_c2 * rgb) / (1 + ST2084_c3 * rgb);\
-                            rgb = pow(rgb, ST2084_m3);\
+                            rgb = pow(rgb, ST2084_m2);\
                             return rgb";
                 }
                 else
-- 
2.10.1.windows.1



More information about the vlc-devel mailing list