#include <math.h>#include "nb_celp.h"#include "lpc.h"#include "lsp.h"#include "ltp.h"#include "quant_lsp.h"#include "cb_search.h"#include "filters.h"#include "stack_alloc.h"#include "vq.h"#include "speex_bits.h"#include "vbr.h"#include "misc.h"#include "speex_callbacks.h"Defines | |
| #define | M_PI 3.14159265358979323846 |
| #define | NULL 0 |
| #define | SUBMODE(x) st->submodes[st->submodeID]->x |
| #define | sqr(x) ((x)*(x)) |
| #define | median3(a, b, c) ((a) < (b) ? ((b) < (c) ? (b) : ((a) < (c) ? (c) : (a))) : ((c) < (b) ? (b) : ((c) < (a) ? (c) : (a)))) |
Functions | |
| void * | nb_encoder_init (SpeexMode *m) |
| void | nb_encoder_destroy (void *state) |
| int | nb_encode (void *state, float *in, SpeexBits *bits) |
| void * | nb_decoder_init (SpeexMode *m) |
| void | nb_decoder_destroy (void *state) |
| int | nb_decode (void *state, SpeexBits *bits, float *out) |
| int | nb_encoder_ctl (void *state, int request, void *ptr) |
| int | nb_decoder_ctl (void *state, int request, void *ptr) |
Variables | |
| float | exc_gain_quant_scal3 [8] = {-2.794750, -1.810660, -1.169850, -0.848119, -0.587190, -0.329818, -0.063266, 0.282826} |
| float | exc_gain_quant_scal1 [2] = {-0.35, 0.05} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Decodes one frame |
|
||||||||||||||||
|
ioctl-like function for controlling a narrowband decoder |
|
|
De-allocates decoder state resources |
|
|
Initializes decoder state |
|
||||||||||||||||
|
Encodes one frame |
|
||||||||||||||||
|
ioctl-like function for controlling a narrowband encoder |
|
|
De-allocates encoder state resources |
|
|
Initializes encoder state |
|
|
|
|
|
|
1.2.15