vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Tue Mar  3 09:45:35 
2020 +0100| [e745f6a15e99bac79bfa41bd614b299ed43c6278] | committer: Steve Lhomme

direct3d9: set all the output value for internal swapchain

Assume we always output full range sRGB since we can't tell we really output.

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

 modules/video_output/win32/direct3d9.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/video_output/win32/direct3d9.c 
b/modules/video_output/win32/direct3d9.c
index 37173b5bb1..c1abcb10fb 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1502,6 +1502,11 @@ static bool LocalSwapchainUpdateOutput( void *opaque, 
const libvlc_video_render_
         return false;
 
     out->d3d9_format = d3ddm.Format;
+    out->full_range  = true;
+    out->colorspace  = libvlc_video_colorspace_BT709;
+    out->primaries   = libvlc_video_primaries_BT709;
+    out->transfer    = libvlc_video_transfer_func_SRGB;
+
     return true;
 }
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to