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

Steve Lhomme git at videolan.org
Tue Mar 21 18:36:59 CET 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Mar 15 14:13:52 2017 +0100| [31a51d76ec9b31b94afa36e24a18fed6b86a47fd] | 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.

--
replaces https://patches.videolan.org/patch/16046/
- rename and more details

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

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

 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