VP8 format attribute interface.
More...
Go to the source code of this file.
◆ __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
◆ ast_module_info
◆ default_vp8_attr
◆ vp8_interface