1 /*****************************************************************************
2 * visual.h : Header for the visualisation system
3 *****************************************************************************
4 * Copyright (C) 2002-2009 the VideoLAN team
7 * Authors: Clément Stenac <zorglub@via.ecp.fr>
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.
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.
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 *****************************************************************************/
24 typedef struct visual_effect_t
26 const char *psz_name; /* Filter name*/
28 int (*pf_run)( struct visual_effect_t * , vlc_object_t *,
29 const block_t *, picture_t *);
30 void * p_data; /* The effect stores whatever it wants here */
41 typedef struct spectrum_data
46 unsigned i_prev_nb_samples;
47 int16_t *p_prev_s16_buff;
54 unsigned i_prev_nb_samples;
55 int16_t *p_prev_s16_buff;
58 /*****************************************************************************
59 * aout_filter_sys_t: visualizer audio filter method descriptor
60 *****************************************************************************
61 * This structure is part of the audio filter descriptor.
62 * It describes some visualizer specific variables.
63 *****************************************************************************/
66 vout_thread_t *p_vout;
72 visual_effect_t **effect;
77 (visual_effect_t * , vlc_object_t *, const block_t *, picture_t *);
79 (visual_effect_t * , vlc_object_t *, const block_t *, picture_t *);
81 (visual_effect_t * , vlc_object_t *, const block_t *, picture_t *);
83 (visual_effect_t * , vlc_object_t *, const block_t *, picture_t *);
85 (visual_effect_t * , vlc_object_t *, const block_t *, picture_t *);
87 (visual_effect_t * , vlc_object_t *, const block_t *, picture_t *);
89 /* Default vout size */
90 #define VOUT_WIDTH 800
91 #define VOUT_HEIGHT 640