codec_g722.c - translate between signed linear and ITU G.722-64kbps
More...
Go to the source code of this file.
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "ITU G.722-64kbps G722 Transcoder" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "30ef0c93b36035ec78c9cfd712d36d9b" , .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, } |
|
static const struct ast_module_info * | ast_module_info = &__mod_info |
|
static struct ast_translator | g722tolin |
|
static struct ast_translator | g722tolin16 |
|
static struct ast_translator | lin16tog722 |
|
static struct ast_translator | lintog722 |
|
codec_g722.c - translate between signed linear and ITU G.722-64kbps
- Author
- Matthew Fredrickson cresl.nosp@m.in@d.nosp@m.igium.nosp@m..com
-
Russell Bryant russe.nosp@m.ll@d.nosp@m.igium.nosp@m..com
Definition in file codec_g722.c.
◆ BUF_SHIFT
◆ BUFFER_SAMPLES
#define BUFFER_SAMPLES 8096 /* size for the translation buffers */ |
◆ __reg_module()
static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ AST_MODULE_SELF_SYM()
◆ g722tolin16_new()
◆ g722tolin_framein()
Definition at line 103 of file codec_g722.c.
References ast_frame::data, ast_trans_pvt::datalen, g722_decoder_pvt::g722, g722_decode(), ast_trans_pvt::i16, ast_trans_pvt::outbuf, ast_frame::ptr, ast_trans_pvt::pvt, ast_frame::samples, ast_trans_pvt::samples, and tmp().
113 (uint8_t *) f->
data.
ptr, in_samples);
int datalen
actual space used in outbuf
int g722_decode(g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[], int len)
union ast_trans_pvt::@327 outbuf
union ast_frame::@263 data
◆ g722tolin_new()
◆ lin16tog722_new()
◆ lintog722_framein()
Definition at line 122 of file codec_g722.c.
References ast_frame::data, ast_trans_pvt::datalen, g722_encoder_pvt::g722, g722_encode(), ast_trans_pvt::outbuf, ast_frame::ptr, ast_trans_pvt::pvt, ast_frame::samples, ast_trans_pvt::samples, tmp(), and ast_trans_pvt::ui8.
int datalen
actual space used in outbuf
union ast_trans_pvt::@327 outbuf
int g722_encode(g722_encode_state_t *s, uint8_t g722_data[], const int16_t amp[], int len)
union ast_frame::@263 data
◆ lintog722_new()
◆ load_module()
static int load_module |
( |
void |
| ) |
|
|
static |
◆ unload_module()
static int unload_module |
( |
void |
| ) |
|
|
static |
Definition at line 221 of file codec_g722.c.
References ast_unregister_translator().
Referenced by load_module().
static struct ast_translator lintog722
static struct ast_translator g722tolin
int ast_unregister_translator(struct ast_translator *t)
Unregister a translator Unregisters the given tranlator.
static struct ast_translator g722tolin16
static struct ast_translator lin16tog722
◆ __mod_info
struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "ITU G.722-64kbps G722 Transcoder" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "30ef0c93b36035ec78c9cfd712d36d9b" , .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, } |
|
static |
◆ ast_module_info
◆ g722tolin
◆ g722tolin16
◆ lin16tog722
◆ lintog722