vlc | branch: master | Steve Lhomme <[email protected]> | Fri Aug 3 07:18:31 2018 +0200| [24627b49a8e239748a0bd6c60e0a93f8841cf590] | 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 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=24627b49a8e239748a0bd6c60e0a93f8841cf590 --- 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 478602ab83..c80dcc9df6 100644 --- a/modules/access/screen/win32.c +++ b/modules/access/screen/win32.c @@ -135,6 +135,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 ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
