equalizer.c File Reference

Include dependency graph for equalizer.c:


Data Structures

struct  filter_sys_t
 filter_sys_t: chroma method descriptor More...
struct  eqz_config_t

Defines

#define PRESET_TEXT   N_( "Equalizer preset" )
#define PRESET_LONGTEXT   N_("Preset to use for the equalizer." )
#define BANDS_TEXT   N_( "Bands gain")
#define BANDS_LONGTEXT
#define TWOPASS_TEXT   N_( "Two pass" )
#define TWOPASS_LONGTEXT
#define PREAMP_TEXT   N_("Global gain" )
#define PREAMP_LONGTEXT   N_("Set the global gain in dB (-20 ... 20)." )
#define EQZ_IN_FACTOR   (0.25)

Functions

static int Open (vlc_object_t *)
 Probes and initializes.
static void Close (vlc_object_t *)
 Releases resources.
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static block_tDoWork (filter_t *, block_t *)
static int EqzInit (filter_t *, int)
static void EqzFilter (filter_t *, float *, float *, int, int)
static void EqzClean (filter_t *)
static int PresetCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int PreampCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int BandsCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int TwoPassCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static float EqzConvertdB (float db)

Variables

static const eqz_config_t eqz_config_44100_10b
static const eqz_config_t eqz_config_48000_10b

Define Documentation

#define BANDS_LONGTEXT

Value:

N_( \
         "Don't use presets, but manually specified bands. You need to " \
         "provide 10 values between -20dB and 20dB, separated by spaces, " \
         "e.g. \"0 2 4 2 0 -2 -4 -2 0 2\"." )

#define BANDS_TEXT   N_( "Bands gain")

#define EQZ_IN_FACTOR   (0.25)

Referenced by EqzConvertdB(), and EqzFilter().

#define PREAMP_LONGTEXT   N_("Set the global gain in dB (-20 ... 20)." )

#define PREAMP_TEXT   N_("Global gain" )

#define PRESET_LONGTEXT   N_("Preset to use for the equalizer." )

#define PRESET_TEXT   N_( "Equalizer preset" )

#define TWOPASS_LONGTEXT

Value:

N_( "Filter the audio twice. This provides a more "  \
         "intense effect.")

#define TWOPASS_TEXT   N_( "Two pass" )


Function Documentation

static int BandsCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static void Close ( vlc_object_t p_this  )  [static]

Releases resources.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

static block_t * DoWork ( filter_t p_filter,
block_t p_in_buf 
) [static]

static void EqzClean ( filter_t p_filter  )  [static]

static float EqzConvertdB ( float  db  )  [inline, static]

References EQZ_IN_FACTOR.

Referenced by BandsCallback(), and PresetCallback().

static void EqzFilter ( filter_t p_filter,
float *  out,
float *  in,
int  i_samples,
int  i_channels 
) [static]

static int EqzInit ( filter_t p_filter,
int  i_rate 
) [static]

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

Basic chorus/flanger/delay audio filter This implements a variable delay filter for VLC.

Todo:

  • Improve CDDB support (non-blocking, cache, .

Open the module.

Create an X11 window.

Probe the X server.

This function initializes SDL vout method.

It creates an OpenGL vout display.

This function allocates and initialize the DirectX vout display.

It creates a Direct3D vout display.

This function allocates and initializes a FB vout method.

Find the drawable set by libvlc application.

This function initializes libcaca vout method.

This function allocates and initializes a aa vout method.

This function allocates and initializes a Wall splitter module.

Open the filter.

This function allocates and initializes a Clone splitter module.

Open: initialize and create stuff.

Connect to the sftp server and ask for a file.

Parameters:
p_this,: the vlc_object
Returns:
VLC_SUCCESS if everything was fine
Parameters:
p_this 
p_this,: the filter object
Returns:
VLC_SUCCESS or vlc error codes

Todo:
Reinstate meta codec name

static int PreampCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int PresetCallback ( vlc_object_t p_aout,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int TwoPassCallback ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

Initial value:

{
    10,
    {
        {    60, 0.003013, 0.993973, 1.993901 },
        {   170, 0.008490, 0.983019, 1.982437 },
        {   310, 0.015374, 0.969252, 1.967331 },
        {   600, 0.029328, 0.941343, 1.934254 },
        {  1000, 0.047918, 0.904163, 1.884869 },
        {  3000, 0.130408, 0.739184, 1.582718 },
        {  6000, 0.226555, 0.546889, 1.015267 },
        { 12000, 0.344937, 0.310127, -0.181410 },
        { 14000, 0.366438, 0.267123, -0.521151 },
        { 16000, 0.379009, 0.241981, -0.808451 },
    }
}

Initial value:

{
    10,
    {
        {    60, 0.002769, 0.994462, 1.994400 },
        {   170, 0.007806, 0.984388, 1.983897 },
        {   310, 0.014143, 0.971714, 1.970091 },
        {   600, 0.027011, 0.945978, 1.939979 },
        {  1000, 0.044203, 0.911595, 1.895241 },
        {  3000, 0.121223, 0.757553, 1.623767 },
        {  6000, 0.212888, 0.574224, 1.113145 },
        { 12000, 0.331347, 0.337307, 0.000000 },
        { 14000, 0.355263, 0.289473, -0.333740 },
        { 16000, 0.371900, 0.256201, -0.628100 }
    }
}


Generated on Tue May 25 08:05:10 2010 for VLC by  doxygen 1.5.6