]> git.sesse.net Git - vlc/commitdiff
* modules/access/screen/win32.c: proper rgb mask for RV24.
authorGildas Bazin <gbazin@videolan.org>
Sun, 12 Sep 2004 10:30:24 +0000 (10:30 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sun, 12 Sep 2004 10:30:24 +0000 (10:30 +0000)
modules/access/screen/win32.c

index a2258b1cb975d79eb39349d3201542f901db572f..53ebbfa428f934aaca27d576a73f2830b7602708 100644 (file)
@@ -116,6 +116,14 @@ int screen_InitCapture( demux_t *p_demux )
     p_data->bmi.bmiHeader.biClrUsed = 0;
     p_data->bmi.bmiHeader.biClrImportant = 0;
 
+    if( i_chroma == VLC_FOURCC('R','V','2','4') )
+    {
+        /* This is in BGR format */
+        p_sys->fmt.video.i_bmask = 0x00ff0000;
+        p_sys->fmt.video.i_gmask = 0x0000ff00;
+        p_sys->fmt.video.i_rmask = 0x000000ff;
+    }
+
     var_Create( p_demux, "screen-fragment-size",
                 VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
     var_Get( p_demux, "screen-fragment-size", &val );