]> git.sesse.net Git - vlc/commitdiff
Fixed RGB 16 screen capture for win32.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 8 Sep 2008 21:05:15 +0000 (23:05 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 8 Sep 2008 21:05:15 +0000 (23:05 +0200)
Yep, they are funny guys.

modules/access/screen/win32.c

index f267b08b49ab8e04af429f9827bfc5b2c56913bb..79683cb40c32cc4dae3a31356d51b7e29d65862d 100644 (file)
@@ -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;