#include "misc.h"
#include "speex/speex_echo.h"
#include "fftwrap.h"
#include "pseudofloat.h"
#include "math_approx.h"
Classes | |
struct | SpeexEchoState_ |
Defines | |
#define | M_PI 3.14159265358979323846 |
#define | min(a, b) ((a)<(b) ? (a) : (b)) |
#define | max(a, b) ((a)>(b) ? (a) : (b)) |
#define | WEIGHT_SHIFT 0 |
#define | TOP16(x) (x) |
Functions | |
SpeexEchoState * | speex_echo_state_init (int frame_size, int filter_length) |
void | speex_echo_state_reset (SpeexEchoState *st) |
void | speex_echo_state_destroy (SpeexEchoState *st) |
void | speex_echo_cancel (SpeexEchoState *st, short *ref, short *echo, short *out, spx_int32_t *Yout) |
int | speex_echo_ctl (SpeexEchoState *st, int request, void *ptr) |
Variables | |
int | fixed_point |
#define M_PI 3.14159265358979323846 |
#define max | ( | a, | |||
b | ) | ((a)>(b) ? (a) : (b)) |
Referenced by speex_preprocess(), and speex_preprocess_estimate_update().
#define min | ( | a, | |||
b | ) | ((a)<(b) ? (a) : (b)) |
#define TOP16 | ( | x | ) | (x) |
#define WEIGHT_SHIFT 0 |
Referenced by speex_echo_cancel().
void speex_echo_cancel | ( | SpeexEchoState * | st, | |
short * | ref, | |||
short * | echo, | |||
short * | out, | |||
spx_int32_t * | Yout | |||
) |
Performs echo cancellation on a frame
References ADD32, DIV32_16, EXTEND32, FLOAT_ADD, FLOAT_DIV32, FLOAT_DIV32_FLOAT, FLOAT_DIVU, FLOAT_EXTRACT16, FLOAT_GT, FLOAT_LT, FLOAT_MUL32U, FLOAT_MULT, FLOAT_ONE, FLOAT_SHL, FLOAT_SUB, MAC16_32_Q15, MULT16_16_P15, MULT16_16_Q15, MULT16_32_Q15, PSEUDOFLOAT, PSHR32, QCONST16, QCONST32, SHL, SHL16, SHL32, SHR32, spx_fft(), spx_float_t, spx_ifft(), SUB16, SUB32, and WEIGHT_SHIFT.
Referenced by main().
int speex_echo_ctl | ( | SpeexEchoState * | st, | |
int | request, | |||
void * | ptr | |||
) |
void speex_echo_state_destroy | ( | SpeexEchoState * | st | ) |
Destroys an echo canceller state
References speex_free(), and spx_fft_destroy().
Referenced by main().
SpeexEchoState* speex_echo_state_init | ( | int | frame_size, | |
int | filter_length | |||
) |
Creates a new echo canceller state
References DIV32_16, FLOAT_ONE, M_PI, MULT16_16, QCONST16, SHL16, SHL32, speex_alloc(), spx_cos(), spx_fft_init(), and spx_float_t.
Referenced by main().
void speex_echo_state_reset | ( | SpeexEchoState * | st | ) |
Resets echo canceller state
References FLOAT_ONE.
int fixed_point |