CELT format attribute interface.
More...
Go to the source code of this file.
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "CELT Format Attribute Module" , .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, .load_pri = AST_MODPRI_CHANNEL_DEPEND, } |
|
static const struct ast_module_info * | ast_module_info = &__mod_info |
|
static struct ast_format_interface | celt_interface |
|
CELT format attribute interface.
- Author
- David Vossel dvoss.nosp@m.el@d.nosp@m.igium.nosp@m..com
Definition in file res_format_attr_celt.c.
◆ __reg_module()
static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ AST_MODULE_SELF_SYM()
◆ celt_clone()
◆ celt_cmp()
◆ celt_destroy()
static void celt_destroy |
( |
struct ast_format * |
format | ) |
|
|
static |
◆ celt_generate_sdp_fmtp()
static void celt_generate_sdp_fmtp |
( |
const struct ast_format * |
format, |
|
|
unsigned int |
payload, |
|
|
struct ast_str ** |
str |
|
) |
| |
|
static |
◆ celt_getjoint()
◆ celt_parse_sdp_fmtp()
static struct ast_format * celt_parse_sdp_fmtp |
( |
const struct ast_format * |
format, |
|
|
const char * |
attributes |
|
) |
| |
|
static |
◆ celt_set()
static struct ast_format * celt_set |
( |
const struct ast_format * |
format, |
|
|
const char * |
name, |
|
|
const char * |
value |
|
) |
| |
|
static |
Definition at line 153 of file res_format_attr_celt.c.
154{
158
160 if (!cloned) {
162 }
164
165 if (sscanf(
value,
"%30u", &
val) != 1) {
170 }
171
172 if (!strcasecmp(
name,
"sample_rate")) {
174 }
else if (!strcasecmp(
name,
"max_bitrate")) {
176 }
else if (!strcasecmp(
name,
"frame_size")) {
178 } else {
182 }
183
184 return cloned;
185}
#define ao2_ref(o, delta)
Reference/unreference an object and return the old refcount.
References ao2_ref, ast_format_clone(), ast_format_get_attribute_data(), ast_log, celt_attr::framesize, LOG_WARNING, celt_attr::maxbitrate, name, NULL, celt_attr::samplerate, and value.
◆ 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_LOAD_ORDER , .description = "CELT Format Attribute Module" , .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, .load_pri = AST_MODPRI_CHANNEL_DEPEND, } |
|
static |
◆ ast_module_info
◆ celt_interface