Commit c694d9d2 authored by Laurent Aimar's avatar Laurent Aimar

Fixed RGB 16 screen capture for win32.

Yep, they are funny guys.
parent 52cf2e39
......@@ -80,9 +80,8 @@ int screen_InitCapture( demux_t *p_demux )
case 8: /* FIXME: set the palette */
i_chroma = VLC_FOURCC('R','G','B','2'); break;
case 15:
case 16: /* Yes it is really 15 bits (when using BI_RGB) */
i_chroma = VLC_FOURCC('R','V','1','5'); break;
case 16:
i_chroma = VLC_FOURCC('R','V','1','6'); break;
case 24:
i_chroma = VLC_FOURCC('R','V','2','4'); break;
case 32:
......@@ -107,11 +106,6 @@ int screen_InitCapture( demux_t *p_demux )
p_sys->fmt.video.i_gmask = 0x03e0;
p_sys->fmt.video.i_bmask = 0x001f;
break;
case VLC_FOURCC('R','V','1','6'):
p_sys->fmt.video.i_rmask = 0xf800;
p_sys->fmt.video.i_gmask = 0x07e0;
p_sys->fmt.video.i_bmask = 0x001f;
break;
case VLC_FOURCC('R','V','2','4'):
p_sys->fmt.video.i_rmask = 0x00ff0000;
p_sys->fmt.video.i_gmask = 0x0000ff00;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment