#include <assert.h>
#include <inttypes.h>
#include <stdlib.h>
#include "spandsp/telephony.h"
#include "spandsp/dc_restore.h"
#include "spandsp/gsm0610.h"
#include "gsm0610_local.h"
Defines | |
#define | STEP(B, MIC, INVA) |
Functions | |
void | gsm0610_short_term_analysis_filter (gsm0610_state_t *s, int16_t LARc[8], int16_t amp[GSM0610_FRAME_LEN]) |
void | gsm0610_short_term_synthesis_filter (gsm0610_state_t *s, int16_t LARcr[8], int16_t wt[GSM0610_FRAME_LEN], int16_t amp[GSM0610_FRAME_LEN]) |
#define STEP | ( | B, | |||
MIC, | |||||
INVA | ) |
Value:
temp1 = gsm_add(*LARc++, MIC) << 10; \ temp1 = gsm_sub(temp1, B << 1); \ temp1 = gsm_mult_r (INVA, temp1); \ *LARpp++ = gsm_add(temp1, temp1);