/*****************************************************************************
* mga.c : Matrox Graphic Array plugin for vlc
*****************************************************************************
- * Copyright (C) 2000, 2001 VideoLAN
+ * Copyright (C) 2000, 2001 the VideoLAN team
* $Id$
*
* Authors: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
*
* 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.
*****************************************************************************/
/*****************************************************************************
*****************************************************************************/
#include <errno.h> /* ENOMEM */
#include <unistd.h> /* close() */
-#include <stdlib.h> /* free() */
-#include <string.h> /* strerror() */
#include <fcntl.h> /* open() */
#include <sys/ioctl.h> /* ioctl() */
#include <sys/mman.h> /* PROT_WRITE */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
-#include <vlc/vout.h>
+#include <vlc_plugin.h>
+#include <vlc_vout.h>
#ifdef SYS_BSD
#include <sys/types.h> /* typedef ushort */
* Module descriptor
*****************************************************************************/
vlc_module_begin();
- set_description( _("Matrox Graphic Array video output") );
+ set_description( N_("Matrox Graphic Array video output") );
set_capability( "video output", 10 );
set_callbacks( Create, Destroy );
vlc_module_end();
{
mga_vid_config_t mga;
int i_fd;
- byte_t * p_video;
+ uint8_t * p_video;
};
struct picture_sys_t
/* 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 );
- }
p_vout->p_sys->i_fd = open( "/dev/mga_vid", O_RDWR );
if( p_vout->p_sys->i_fd == -1 )