u-Law to Signed linear conversion More...
Go to the source code of this file.
Macros | |
#define | AST_LIN2MU(a) (__ast_lin2mu[((unsigned short)(a)) >> 2]) |
#define | AST_MULAW(a) (__ast_mulaw[(a)]) |
#define | AST_ULAW_BIT_LOSS 3 |
#define | AST_ULAW_SIGN_BIT 0x80 |
#define | AST_ULAW_STEP (1 << AST_ULAW_BIT_LOSS) |
#define | AST_ULAW_TAB_SIZE (32768 / AST_ULAW_STEP + 1) |
Functions | |
void | ast_ulaw_init (void) |
Set up mu-law conversion table. More... | |
Variables | |
unsigned char | __ast_lin2mu [16384] |
converts signed linear to mulaw More... | |
short | __ast_mulaw [256] |
u-Law to Signed linear conversion
Definition in file ulaw.h.
#define AST_LIN2MU | ( | a | ) | (__ast_lin2mu[((unsigned short)(a)) >> 2]) |
Definition at line 49 of file ulaw.h.
Referenced by ast_dsp_process(), ast_ulaw_init(), fill_rxgain(), fill_txgain(), lintoulaw(), lintoulaw_framein(), load_module(), and make_tone_burst().
#define AST_MULAW | ( | a | ) | (__ast_mulaw[(a)]) |
Definition at line 85 of file ulaw.h.
Referenced by ast_dsp_process(), ast_ulaw_init(), calc_energy(), fill_rxgain(), fill_txgain(), load_module(), tdd_feed(), ulawtolin(), and ulawtolin_framein().
#define AST_ULAW_STEP (1 << AST_ULAW_BIT_LOSS) |
Definition at line 33 of file ulaw.h.
Referenced by ast_ulaw_init().
#define AST_ULAW_TAB_SIZE (32768 / AST_ULAW_STEP + 1) |
void ast_ulaw_init | ( | void | ) |
Set up mu-law conversion table.
To init the ulaw to slinear conversion stuff, this needs to be run.
Definition at line 175 of file ulaw.c.
References AST_LIN2MU, ast_log(), AST_MULAW, AST_ULAW_STEP, f, linear2ulaw(), LOG_NOTICE, and LOG_WARNING.
Referenced by load_module(), and main().
unsigned char __ast_lin2mu[16384] |