[vlc-commits] screen:win32: screen capture is in sRGB and full range

Steve Lhomme git at videolan.org
Tue Aug 7 09:12:43 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Aug  3 07:18:31 2018 +0200| [69f7edf9e9ea271a79fa503d22f96475b2ec1d67] | committer: Steve Lhomme

screen:win32: screen capture is in sRGB and full range

The same should probably be done on other screen capture sources but the actual
values may be check with an API for some of them. The Windows HDC API doesn't
provide that.

Fixes #20956

(cherry picked from commit 24627b49a8e239748a0bd6c60e0a93f8841cf590)

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

 modules/access/screen/win32.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/access/screen/win32.c b/modules/access/screen/win32.c
index 6b94def13f..d64eada92b 100644
--- a/modules/access/screen/win32.c
+++ b/modules/access/screen/win32.c
@@ -133,6 +133,8 @@ int screen_InitCapture( demux_t *p_demux )
     p_sys->fmt.video.i_bits_per_pixel = i_bits_per_pixel;
     p_sys->fmt.video.i_sar_num = p_sys->fmt.video.i_sar_den = 1;
     p_sys->fmt.video.i_chroma         = i_chroma;
+    p_sys->fmt.video.transfer         = TRANSFER_FUNC_SRGB;
+    p_sys->fmt.video.b_color_range_full = true;
 
     switch( i_chroma )
     {



More information about the vlc-commits mailing list