]> git.sesse.net Git - vlc/blobdiff - modules/video_output/svgalib.c
Forgot this file - default to allowing every body when there is no .hosts
[vlc] / modules / video_output / svgalib.c
index 344bd2c7980b9e9f26b043366d02171a6afe14f4..6c4ce8c1b0256e65bce680793f53c1f124ab7bc9 100644 (file)
@@ -1,16 +1,16 @@
 /*****************************************************************************
  * svgalib.c : SVGAlib plugin for vlc
  *****************************************************************************
- * Copyright (C) 2002 VideoLAN
- * $Id: svgalib.c,v 1.2 2002/08/21 17:31:58 sam Exp $
+ * Copyright (C) 2002 the VideoLAN team
+ * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
- *      
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -44,13 +44,16 @@ static void End       ( vout_thread_t * );
 static int  Manage    ( vout_thread_t * );
 static void Display   ( vout_thread_t *, picture_t * );
 
-static void SetPalette( vout_thread_t *, u16 *, u16 *, u16 * );
+static void SetPalette( vout_thread_t *, uint16_t *, uint16_t *, uint16_t * );
 
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
-vlc_module_begin();                                            
-    set_description( _("SVGAlib module") );
+vlc_module_begin();
+    set_shortname( "SVGAlib" );
+    set_category( CAT_VIDEO );
+    set_subcategory( SUBCAT_VIDEO_VOUT );
+    set_description( _("SVGAlib video output") );
     set_capability( "video output", 0 );
     set_callbacks( Create, Destroy );
     linked_with_a_crap_library_which_uses_atexit();
@@ -166,16 +169,16 @@ static int Init( vout_thread_t *p_vout )
             break;
         }
     }
-    
+
     /* Allocate the picture */
     if( p_pic == NULL )
     {
         return VLC_SUCCESS;
     }
 
-    vout_AllocatePicture( p_vout, p_pic, p_vout->output.i_width,
-                          p_vout->output.i_height,
-                          p_vout->output.i_chroma );
+    vout_AllocatePicture( p_vout, p_pic, p_vout->output.i_chroma,
+                          p_vout->output.i_width, p_vout->output.i_height,
+                          p_vout->output.i_aspect );
 
     if( p_pic->i_planes == 0 )
     {
@@ -250,7 +253,8 @@ static void Display( vout_thread_t *p_vout, picture_t *p_pic )
  *****************************************************************************
  * TODO: support 8 bits clut (for Mach32 cards and others).
  *****************************************************************************/
-static void SetPalette( vout_thread_t *p_vout, u16 *red, u16 *green, u16 *blue )
+static void SetPalette( vout_thread_t *p_vout,
+                        uint16_t *red, uint16_t *green, uint16_t *blue )
 {
     int i = 256;