]> git.sesse.net Git - vlc/blob - modules/visualization/galaktos/plugin.h
835d5d50a5748497618b32516f2378fce676613e
[vlc] / modules / visualization / galaktos / plugin.h
1 /*****************************************************************************
2  * plugin.h:
3  *****************************************************************************
4  * Copyright (C) 2004 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Cyril Deguet <asmax@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef _GALAKTOS_PLUGIN_H_
25 #define _GALAKTOS_PLUGIN_H_
26
27 #include <vlc/vlc.h>
28 #include <vlc_aout.h>
29 #include <vlc_vout.h>
30
31 #define MAX_BLOCKS 10
32
33 typedef struct
34 {
35     VLC_COMMON_MEMBERS
36
37     char          *psz_title;
38
39     /* OpenGL provider */
40     vout_thread_t *p_opengl;
41     module_t      *p_module;
42
43     /* Window properties */
44     int           i_width;
45     int           i_height;
46     int           b_fullscreen;
47
48     /* Audio properties */
49     int           i_channels;
50
51     /* Audio buffer */
52     int16_t       p_data[2][512];
53     int           i_cur_sample;
54
55     /* OS specific data */
56     void          *p_os_data;
57
58 } galaktos_thread_t;
59
60 #endif