[vlc-commits] direct3d11: fix typos in ST2084 inverse EOTF

Steve Lhomme git at videolan.org
Tue Mar 21 18:47:49 CET 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Mar 15 14:13:52 2017 +0100| [d483c4bbf5883c16472cd3a8c8b05e831137ad5d] | committer: Hugo Beauzée-Luyssen

direct3d11: fix typos in ST2084 inverse EOTF

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

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d483c4bbf5883c16472cd3a8c8b05e831137ad5d
---

 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 de73107..bec852d 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1681,11 +1681,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



More information about the vlc-commits mailing list