/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <stdlib.h> /* malloc(), free() */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
-#include <vlc/vout.h>
-#include "audio_output.h"
-#include "aout_internal.h"
+#include <vlc_vout.h>
+#include <vlc_aout.h>
#include "visual.h"
#define PEAKS_TEXT N_( "Enable peaks" )
#define PEAKS_LONGTEXT N_( \
- "This will draw \"peaks\" in the spectrum analyzer" )
+ "Draw \"peaks\" in the spectrum analyzer." )
#define ORIG_TEXT N_( "Enable original graphic spectrum" )
#define ORIG_LONGTEXT N_( \
- "This enabled the \"flat\" spectrum analyzer in the spectrometer" )
+ "Enable the \"flat\" spectrum analyzer in the spectrometer." )
#define BANDS_TEXT N_( "Enable bands" )
#define BANDS_LONGTEXT N_( \
- "This draws bands in the spectrometer." )
+ "Draw bands in the spectrometer." )
#define BASE_TEXT N_( "Enable base" )
#define BASE_LONGTEXT N_( \
#define PEAK_HEIGHT_TEXT N_( "Peak height" )
#define PEAK_HEIGHT_LONGTEXT N_( \
- "This is the total pixel height of the peak items." )
+ "Total pixel height of the peak items." )
#define PEAK_WIDTH_TEXT N_( "Peak extra width" )
#define PEAK_WIDTH_LONGTEXT N_( \
#define STARS_TEXT N_( "Number of stars" )
#define STARS_LONGTEXT N_( \
- "This defines the number of stars to draw with random effect." )
+ "Number of stars to draw with random effect." )
static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
vlc_value_t, vlc_value_t, void * );
static struct
{
- char *psz_name;
+ const char *psz_name;
int (*pf_run)( visual_effect_t *, aout_instance_t *,
aout_buffer_t *, picture_t *);
} pf_effect_run[]=
vlc_value_t val;
char *psz_effects, *psz_parser;
- video_format_t fmt = {0};
+ video_format_t fmt;
+
if( ( p_filter->input.i_format != VLC_FOURCC('f','l','3','2') &&
p_filter->input.i_format != VLC_FOURCC('f','i','3','2') ) )
}
/* Open the video output */
+ memset( &fmt, 0, sizeof(video_format_t) );
+
fmt.i_width = fmt.i_visible_width = p_sys->i_width;
fmt.i_height = fmt.i_visible_height = p_sys->i_height;
fmt.i_chroma = VLC_FOURCC('I','4','2','0');