]> git.sesse.net Git - vlc/blobdiff - modules/visualization/visual/visual.h
visual: no need to strdup the name of the effect as it's only use with strcmp.
[vlc] / modules / visualization / visual / visual.h
index dbd4a9de83d293bcc721671ff9e0736139d4bfae..11edd5866daade10b469b277d20565bf634c6129 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * 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;
@@ -34,6 +34,12 @@ typedef struct visual_effect_t
     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
@@ -41,7 +47,7 @@ typedef struct visual_effect_t
  * 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;
 
@@ -50,11 +56,13 @@ typedef struct aout_filter_sys_t
 
     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