X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Faa.c;h=9710b593d3a3d198185b28f251c1182517ad2c2e;hb=b5c566d923f2dc68e03a6e8deacfc5607982f27a;hp=b3ceaa1afa1ee97974a0081c06db2f6ab631ad7a;hpb=88991a5ce9c2603bc5a9be0779353fe08b29e8f9;p=vlc diff --git a/modules/video_output/aa.c b/modules/video_output/aa.c index b3ceaa1afa..9710b593d3 100644 --- a/modules/video_output/aa.c +++ b/modules/video_output/aa.c @@ -1,10 +1,10 @@ /***************************************************************************** * vout_aa.c: Aa video output display method for testing purposes ***************************************************************************** - * Copyright (C) 2002 VideoLAN - * $Id: aa.c,v 1.3 2003/10/25 00:49:14 sam Exp $ + * Copyright (C) 2002 the VideoLAN team + * $Id$ * - * Authors: Sigmund Augdal + * Authors: Sigmund Augdal Helberg * * 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 @@ -18,21 +18,24 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** * Preamble *****************************************************************************/ #include /* ENOMEM */ -#include /* free() */ -#include /* strerror() */ #include -#include -#include -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include +#include +#include /***************************************************************************** * Local prototypes @@ -52,7 +55,10 @@ static void SetPalette ( vout_thread_t *, uint16_t *, uint16_t *, uint16_t * * Module descriptor *****************************************************************************/ vlc_module_begin(); - set_description( _("ASCII-art video output") ); + set_shortname( N_("ASCII Art")); + set_category( CAT_VIDEO ); + set_subcategory( SUBCAT_VIDEO_VOUT ); + set_description( N_("ASCII-art video output") ); set_capability( "video output", 10 ); add_shortcut( "aalib" ); set_callbacks( Create, Destroy ); @@ -84,10 +90,7 @@ static int Create( vlc_object_t *p_this ) /* Allocate structure */ p_vout->p_sys = malloc( sizeof( vout_sys_t ) ); if( p_vout->p_sys == NULL ) - { - msg_Err( p_vout, "out of memory" ); return( 1 ); - } /* Don't parse any options, but take $AAOPTS into account */ aa_parseoptions( NULL, NULL, NULL, NULL ); @@ -147,6 +150,7 @@ static int Init( vout_thread_t *p_vout ) /* Allocate the picture */ p_pic->p->p_pixels = aa_image( p_vout->p_sys->aa_context ); p_pic->p->i_lines = p_vout->p_sys->i_height; + p_pic->p->i_visible_lines = p_vout->p_sys->i_height; p_pic->p->i_pitch = p_vout->p_sys->i_width; p_pic->p->i_pixel_pitch = 1; p_pic->p->i_visible_pitch = p_vout->p_sys->i_width;