VP8 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 = "VP8 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 vp8_attr | default_vp8_attr |
|
static struct ast_format_interface | vp8_interface |
|
◆ __reg_module()
static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ AST_MODULE_SELF_SYM()
◆ load_module()
static int load_module |
( |
void |
| ) |
|
|
static |
◆ unload_module()
static int unload_module |
( |
void |
| ) |
|
|
static |
◆ vp8_clone()
◆ vp8_destroy()
static void vp8_destroy |
( |
struct ast_format * |
format | ) |
|
|
static |
◆ vp8_generate_sdp_fmtp()
static void vp8_generate_sdp_fmtp |
( |
const struct ast_format * |
format, |
|
|
unsigned int |
payload, |
|
|
struct ast_str ** |
str |
|
) |
| |
|
static |
◆ vp8_getjoint()
◆ vp8_parse_sdp_fmtp()
static struct ast_format * vp8_parse_sdp_fmtp |
( |
const struct ast_format * |
format, |
|
|
const char * |
attributes |
|
) |
| |
|
static |
Definition at line 79 of file res_format_attr_vp8.c.
80{
84 const char *kvp;
86
88 if (!cloned) {
90 }
92
93
94 for (attrib = attribs; *attrib; ++attrib) {
95 *attrib = tolower(*attrib);
96 }
97
98 if ((kvp = strstr(attribs,
"max-fr")) && sscanf(kvp,
"max-fr=%30u", &
val) == 1) {
100 } else {
102 }
103
104 if ((kvp = strstr(attribs,
"max-fs")) && sscanf(kvp,
"max-fs=%30u", &
val) == 1) {
106 } else {
108 }
109
110 return cloned;
111}
#define ast_strdupa(s)
duplicate a string in memory from the stack
References ast_format_clone(), ast_format_get_attribute_data(), ast_strdupa, vp8_attr::maximum_frame_rate, vp8_attr::maximum_frame_size, and NULL.
◆ vp8_set()
static struct ast_format * vp8_set |
( |
const struct ast_format * |
format, |
|
|
const char * |
name, |
|
|
const char * |
value |
|
) |
| |
|
static |
Definition at line 177 of file res_format_attr_vp8.c.
178{
182
183 if (sscanf(
value,
"%30u", &
val) != 1) {
187 }
188
190 if (!cloned) {
192 }
194
195 if (!strcasecmp(
name,
"maximum_frame_rate")) {
197 }
else if (!strcasecmp(
name,
"maximum_frame_size")) {
199 } else {
201 }
202
203 return cloned;
204}
References ast_format_clone(), ast_format_get_attribute_data(), ast_log, LOG_WARNING, vp8_attr::maximum_frame_rate, vp8_attr::maximum_frame_size, name, NULL, and value.
◆ __mod_info
struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "VP8 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
◆ default_vp8_attr
◆ vp8_interface