Asterisk - The Open Source Telephony Project GIT-master-5782b03
|
H.263 Format Attribute Module. More...
#include "asterisk.h"
#include <ctype.h>
#include "asterisk/module.h"
#include "asterisk/format.h"
#include "asterisk/strings.h"
#include "asterisk/utils.h"
Go to the source code of this file.
Data Structures | |
struct | h263_attr |
Macros | |
#define | APPEND_IF_NONZERO(field, str, name) |
#define | APPEND_IF_NOT_H263_UNSET(field, str, name) |
#define | DETERMINE_JOINT(joint, attr1, attr2, field) (joint->field = (attr1 && attr1->field) ? attr1->field : (attr2 && attr2->field) ? attr2->field : 0) |
#define | H263_ATTR_KEY_UNSET UINT8_MAX |
Value that indicates an attribute is actually unset. More... | |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | h263_clone (const struct ast_format *src, struct ast_format *dst) |
static enum ast_format_cmp_res | h263_cmp (const struct ast_format *format1, const struct ast_format *format2) |
static void | h263_destroy (struct ast_format *format) |
static void | h263_generate_sdp_fmtp (const struct ast_format *format, unsigned int payload, struct ast_str **str) |
static struct ast_format * | h263_getjoint (const struct ast_format *format1, const struct ast_format *format2) |
static struct ast_format * | h263_parse_sdp_fmtp (const struct ast_format *format, const char *attributes) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "H.263 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, } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_format_interface | h263_interface |
H.263 Format Attribute Module.
This is a format attribute module for the H.263 codec.
Definition in file res_format_attr_h263.c.
Definition at line 277 of file res_format_attr_h263.c.
Definition at line 266 of file res_format_attr_h263.c.
#define DETERMINE_JOINT | ( | joint, | |
attr1, | |||
attr2, | |||
field | |||
) | (joint->field = (attr1 && attr1->field) ? attr1->field : (attr2 && attr2->field) ? attr2->field : 0) |
Definition at line 117 of file res_format_attr_h263.c.
#define H263_ATTR_KEY_UNSET UINT8_MAX |
Value that indicates an attribute is actually unset.
Definition at line 44 of file res_format_attr_h263.c.
|
static |
Definition at line 399 of file res_format_attr_h263.c.
|
static |
Definition at line 399 of file res_format_attr_h263.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 399 of file res_format_attr_h263.c.
|
static |
Definition at line 88 of file res_format_attr_h263.c.
References ast_calloc, ast_format_get_attribute_data(), and ast_format_set_attribute_data().
|
static |
Definition at line 106 of file res_format_attr_h263.c.
References AST_FORMAT_CMP_EQUAL, AST_FORMAT_CMP_NOT_EQUAL, and ast_format_get_attribute_data().
|
static |
Definition at line 81 of file res_format_attr_h263.c.
References ast_format_get_attribute_data(), and ast_free.
|
static |
Definition at line 288 of file res_format_attr_h263.c.
References APPEND_IF_NONZERO, APPEND_IF_NOT_H263_UNSET, ast_format_get_attribute_data(), ast_str_append(), h263_attr::BPP, h263_attr::CIF, h263_attr::CIF16, h263_attr::CIF4, h263_attr::CPCF, h263_attr::CPCF_2, h263_attr::CPCF_3, h263_attr::CPCF_4, h263_attr::CPCF_5, h263_attr::CPCF_6, h263_attr::CPCF_7, h263_attr::CPCF_MPI, h263_attr::CUSTOM_MPI, h263_attr::CUSTOM_XMAX, h263_attr::CUSTOM_YMAX, h263_attr::F, H263_ATTR_KEY_UNSET, h263_attr::HRD, h263_attr::I, h263_attr::J, h263_attr::K, h263_attr::MaxBR, h263_attr::N, h263_attr::P_SUB1, h263_attr::P_SUB2, h263_attr::P_SUB3, h263_attr::P_SUB4, h263_attr::PAR_HEIGHT, h263_attr::PAR_WIDTH, h263_attr::QCIF, h263_attr::SQCIF, str, h263_attr::T, and h263_attr::VGA.
|
static |
Definition at line 119 of file res_format_attr_h263.c.
References ast_format_clone(), ast_format_get_attribute_data(), h263_attr::BPP, h263_attr::CIF, h263_attr::CIF16, h263_attr::CIF4, h263_attr::CPCF, h263_attr::CPCF_2, h263_attr::CPCF_3, h263_attr::CPCF_4, h263_attr::CPCF_5, h263_attr::CPCF_6, h263_attr::CPCF_7, h263_attr::CPCF_MPI, h263_attr::CUSTOM_MPI, h263_attr::CUSTOM_XMAX, h263_attr::CUSTOM_YMAX, DETERMINE_JOINT, h263_attr::F, h263_attr::HRD, h263_attr::I, h263_attr::J, h263_attr::K, h263_attr::MaxBR, h263_attr::N, NULL, h263_attr::P_SUB1, h263_attr::P_SUB2, h263_attr::P_SUB3, h263_attr::P_SUB4, h263_attr::PAR_HEIGHT, h263_attr::PAR_WIDTH, h263_attr::QCIF, h263_attr::SQCIF, h263_attr::T, and h263_attr::VGA.
|
static |
Definition at line 169 of file res_format_attr_h263.c.
References ast_format_clone(), ast_format_get_attribute_data(), ast_strdupa, ast_strip(), h263_attr::BPP, h263_attr::CIF, h263_attr::CIF16, h263_attr::CIF4, h263_attr::CPCF, h263_attr::CPCF_2, h263_attr::CPCF_3, h263_attr::CPCF_4, h263_attr::CPCF_5, h263_attr::CPCF_6, h263_attr::CPCF_7, h263_attr::CPCF_MPI, h263_attr::CUSTOM_MPI, h263_attr::CUSTOM_XMAX, h263_attr::CUSTOM_YMAX, h263_attr::F, H263_ATTR_KEY_UNSET, h263_attr::HRD, h263_attr::I, h263_attr::J, h263_attr::K, h263_attr::MaxBR, h263_attr::N, NULL, h263_attr::P_SUB1, h263_attr::P_SUB2, h263_attr::P_SUB3, h263_attr::P_SUB4, h263_attr::PAR_HEIGHT, h263_attr::PAR_WIDTH, h263_attr::QCIF, h263_attr::SQCIF, strsep(), h263_attr::T, and h263_attr::VGA.
|
static |
Definition at line 382 of file res_format_attr_h263.c.
References ast_format_interface_register, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, and h263_interface.
|
static |
Definition at line 377 of file res_format_attr_h263.c.
|
static |
Definition at line 399 of file res_format_attr_h263.c.
|
static |
Definition at line 399 of file res_format_attr_h263.c.
|
static |
Definition at line 368 of file res_format_attr_h263.c.
Referenced by load_module().