
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_t * | DoWork (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 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" ) |
| static int BandsCallback | ( | vlc_object_t * | p_this, | |
| char const * | psz_cmd, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References EqzConvertdB(), filter_sys_t::f_amp, i, filter_sys_t::i_band, filter_sys_t::lock, vlc_value_t::psz_string, us_strtof(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by EqzClean(), and EqzInit().
| 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.
| p_this | pointer to this filter object | |
| p_this,: | the filter object |
| static void EqzClean | ( | filter_t * | p_filter | ) | [static] |
| static float EqzConvertdB | ( | float | db | ) | [inline, static] |
| static void EqzFilter | ( | filter_t * | p_filter, | |
| float * | out, | |||
| float * | in, | |||
| int | i_samples, | |||
| int | i_channels | |||
| ) | [static] |
References filter_sys_t::b_2eqz, EQZ_IN_FACTOR, filter_sys_t::f_alpha, filter_sys_t::f_amp, filter_sys_t::f_beta, filter_sys_t::f_gamma, filter_sys_t::f_gamp, i, filter_sys_t::i_band, filter_sys_t::lock, filter_t::p_sys, vlc_mutex_lock(), vlc_mutex_unlock(), filter_sys_t::x, filter_sys_t::x2, filter_sys_t::y, and filter_sys_t::y2.
Referenced by DoWork().
| static int EqzInit | ( | filter_t * | p_filter, | |
| int | i_rate | |||
| ) | [static] |
References filter_sys_t::b_2eqz, filter_sys_t::b_first, eqz_config_t::band, BandsCallback(), eqz_config_t::f_alpha, filter_sys_t::f_alpha, filter_sys_t::f_amp, eqz_config_t::f_beta, filter_sys_t::f_beta, eqz_config_t::f_frequency, eqz_config_t::f_gamma, filter_sys_t::f_gamma, filter_sys_t::f_gamp, filter_sys_t::f_newpreamp, i, eqz_config_t::i_band, filter_sys_t::i_band, msg_Dbg, msg_Err, filter_t::p_parent, filter_t::p_sys, PreampCallback(), PresetCallback(), filter_sys_t::psz_newbands, vlc_value_t::psz_string, TwoPassCallback(), var_AddCallback, var_Create, var_CreateGetBool, var_Get, var_SetFloat, var_SetString, VLC_EGENERIC, VLC_ENOMEM, VLC_OBJECT, VLC_SUCCESS, VLC_VAR_DOINHERIT, VLC_VAR_FLOAT, VLC_VAR_STRING, filter_sys_t::x, filter_sys_t::x2, filter_sys_t::y, and filter_sys_t::y2.
| 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:
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.
| p_this,: | the vlc_object |
| p_this | ||
| p_this,: | the filter object |
| static int PreampCallback | ( | vlc_object_t * | p_this, | |
| char const * | psz_cmd, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References vlc_value_t::f_float, filter_sys_t::f_gamp, filter_sys_t::lock, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by EqzClean(), and EqzInit().
| static int PresetCallback | ( | vlc_object_t * | p_aout, | |
| char const * | psz_cmd, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References asprintf(), filter_sys_t::b_first, eqz_preset_10b, EqzConvertdB(), filter_sys_t::f_amp, filter_sys_t::f_gamp, filter_sys_t::f_newpreamp, eqz_preset_t::f_preamp, i, filter_sys_t::i_band, lldiv(), filter_sys_t::lock, msg_Err, msg_Info, psz_name, filter_sys_t::psz_newbands, vlc_value_t::psz_string, lldiv_t::quot, lldiv_t::rem, strcasecmp(), var_SetFloat, var_SetString, VLC_ENOMEM, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by EqzClean(), and EqzInit().
| static int TwoPassCallback | ( | vlc_object_t * | p_this, | |
| char const * | psz_cmd, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References filter_sys_t::b_2eqz, vlc_value_t::b_bool, filter_sys_t::lock, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by EqzClean(), and EqzInit().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
const eqz_config_t eqz_config_44100_10b [static] |
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 },
}
}
const eqz_config_t eqz_config_48000_10b [static] |
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 }
}
}
1.5.6