mga.c 2.57 KB
Newer Older
1
2
3
/*****************************************************************************
 * mga.c : Matrox Graphic Array plugin for vlc
 *****************************************************************************
Sam Hocevar's avatar
   
Sam Hocevar committed
4
 * Copyright (C) 2000, 2001 VideoLAN
Sam Hocevar's avatar
   
Sam Hocevar committed
5
 * $Id: mga.c,v 1.6 2001/05/30 17:03:12 sam Exp $
6
 *
Sam Hocevar's avatar
   
Sam Hocevar committed
7
 * Authors: Samuel Hocevar <sam@zoy.org>
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 *
 * 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
 * GNU General Public License for more details.
 *
 * 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.
 *****************************************************************************/

Sam Hocevar's avatar
   
Sam Hocevar committed
24
25
26
#define MODULE_NAME mga
#include "modules_inner.h"

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*****************************************************************************
 * Preamble
 *****************************************************************************/
#include "defs.h"

#include <stdlib.h>                                      /* malloc(), free() */

#include "config.h"
#include "common.h"                                     /* boolean_t, byte_t */
#include "threads.h"
#include "mtime.h"

#include "video.h"
#include "video_output.h"

Sam Hocevar's avatar
   
Sam Hocevar committed
42
43
44
45
#include "modules.h"

/*****************************************************************************
 * Capabilities defined in the other files.
Sam Hocevar's avatar
   
Sam Hocevar committed
46
 *****************************************************************************/
Sam Hocevar's avatar
   
Sam Hocevar committed
47
void _M( vout_getfunctions )( function_list_t * p_function_list );
48
49

/*****************************************************************************
Sam Hocevar's avatar
   
Sam Hocevar committed
50
 * Building configuration tree
51
 *****************************************************************************/
Sam Hocevar's avatar
   
Sam Hocevar committed
52
53
54
55
MODULE_CONFIG_START
ADD_WINDOW( "Configuration for MGA module" )
    ADD_COMMENT( "For now, the MGA module cannot be configured" )
MODULE_CONFIG_STOP
56

Sam Hocevar's avatar
   
Sam Hocevar committed
57
MODULE_INIT_START
Sam Hocevar's avatar
   
Sam Hocevar committed
58
59
    p_module->i_capabilities = MODULE_CAPABILITY_NULL
                                | MODULE_CAPABILITY_VOUT;
Sam Hocevar's avatar
   
Sam Hocevar committed
60
61
    p_module->psz_longname = "Matrox Graphic Array module";
MODULE_INIT_STOP
62

Sam Hocevar's avatar
   
Sam Hocevar committed
63
MODULE_ACTIVATE_START
Sam Hocevar's avatar
   
Sam Hocevar committed
64
    _M( vout_getfunctions )( &p_module->p_functions->vout );
Sam Hocevar's avatar
   
Sam Hocevar committed
65
MODULE_ACTIVATE_STOP
Sam Hocevar's avatar
   
Sam Hocevar committed
66

Sam Hocevar's avatar
   
Sam Hocevar committed
67
68
MODULE_DEACTIVATE_START
MODULE_DEACTIVATE_STOP
69