[vlc-devel] commit: Fixed RGB 16 screen capture for win32. (Laurent Aimar )

git version control git at videolan.org
Mon Sep 8 23:02:34 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Sep  8 23:05:15 2008 +0200| [c694d9d2df9ea449eb0201556b5cb804892bb23f] | committer: Laurent Aimar 

Fixed RGB 16 screen capture for win32.

Yep, they are funny guys.

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

 modules/access/screen/win32.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/modules/access/screen/win32.c b/modules/access/screen/win32.c
index f267b08..79683cb 100644
--- a/modules/access/screen/win32.c
+++ b/modules/access/screen/win32.c
@@ -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;




More information about the vlc-devel mailing list