/*****************************************************************************
* visual.h : Header for the visualisation system
*****************************************************************************
- * Copyright (C) 2002 the VideoLAN team
+ * Copyright (C) 2002-2009 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@via.ecp.fr>
typedef struct visual_effect_t
{
- char * psz_name; /* Filter name*/
+ const char *psz_name; /* Filter name*/
- int (*pf_run)( struct visual_effect_t * , aout_instance_t *,
- aout_buffer_t *, picture_t *);
+ int (*pf_run)( struct visual_effect_t * , aout_instance_t *,
+ aout_buffer_t *, picture_t *);
void * p_data; /* The effect stores whatever it wants here */
int i_width;
int i_height;
int i_nb_chans;
} visual_effect_t ;
+typedef struct spectrum_data
+{
+ int *peaks;
+ int *prev_heights;
+} spectrum_data;
+
/*****************************************************************************
* aout_filter_sys_t: visualizer audio filter method descriptor
* This structure is part of the audio filter descriptor.
* It describes some visualizer specific variables.
*****************************************************************************/
-typedef struct aout_filter_sys_t
+struct aout_filter_sys_t
{
vout_thread_t *p_vout;
int i_effect;
visual_effect_t **effect;
-} aout_filter_sys_t;
+};
/* Prototypes */
int scope_Run
(visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *);
+int vuMeter_Run
+ (visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *);
int dummy_Run
(visual_effect_t * , aout_instance_t *, aout_buffer_t *, picture_t *);
int random_Run