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 = AST_BUILDOPT_SUM, .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.
104{
106 int out_samples;
107 int in_samples;
108
109
111
113 (uint8_t *) f->
data.
ptr, in_samples);
114
116
118
119 return 0;
120}
int g722_decode(g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[], int len)
union ast_frame::@226 data
int datalen
actual space used in outbuf
union ast_trans_pvt::@287 outbuf
References ast_frame::data, ast_trans_pvt::datalen, 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().
◆ g722tolin_new()
◆ lin16tog722_new()
◆ lintog722_framein()
Definition at line 122 of file codec_g722.c.
123{
125 int outlen;
126
129
131
133
134 return 0;
135}
int g722_encode(g722_encode_state_t *s, uint8_t g722_data[], const int16_t amp[], int len)
References ast_frame::data, ast_trans_pvt::datalen, 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.
◆ lintog722_new()
◆ load_module()
static int load_module |
( |
void |
| ) |
|
|
static |
◆ unload_module()
static int unload_module |
( |
void |
| ) |
|
|
static |
◆ __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 = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, } |
|
static |
◆ ast_module_info
◆ g722tolin
◆ g722tolin16
◆ lin16tog722
◆ lintog722