Asterisk - The Open Source Telephony Project
21.4.1
|
Translate between signed linear and Opus (Open Codec) More...
#include "asterisk.h"
#include "asterisk/astobj2.h"
#include "asterisk/cli.h"
#include "asterisk/codec.h"
#include "asterisk/format.h"
#include "asterisk/frame.h"
#include "asterisk/linkedlists.h"
#include "asterisk/lock.h"
#include "asterisk/logger.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/utils.h"
#include <opus/opus.h>
#include "asterisk/opus.h"
#include "asterisk/slin.h"
#include "ex_opus.h"
Go to the source code of this file.
Data Structures | |
struct | codec_usage |
struct | opus_attr |
Opus attribute structure. More... | |
struct | opus_coder_pvt |
Macros | |
#define | BUFFER_SAMPLES 5760 |
#define | MAX_CHANNELS 2 |
#define | OPUS_SAMPLES 960 |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static char * | handle_cli_opus_show (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static void | lintoopus_destroy (struct ast_trans_pvt *arg) |
static int | lintoopus_framein (struct ast_trans_pvt *pvt, struct ast_frame *f) |
static struct ast_frame * | lintoopus_frameout (struct ast_trans_pvt *pvt) |
static int | lintoopus_new (struct ast_trans_pvt *pvt) |
static int | load_module (void) |
static int | opus_decoder_construct (struct ast_trans_pvt *pvt, struct ast_frame *f) |
static int | opus_encoder_construct (struct ast_trans_pvt *pvt, int sampling_rate) |
static int | opus_samples (struct ast_frame *frame) |
static void | opustolin_destroy (struct ast_trans_pvt *arg) |
static int | opustolin_framein (struct ast_trans_pvt *pvt, struct ast_frame *f) |
static int | opustolin_new (struct ast_trans_pvt *pvt) |
static int | reload (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "Opus Coder/Decoder" , .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 = "da6642af068ee5e6490c5b1d2cc1d238" , .load = load_module, .unload = unload_module, .reload = reload, } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_cli_entry | cli [] |
static struct ast_translator | lin12toopus |
static struct ast_translator | lin16toopus |
static struct ast_translator | lin24toopus |
static struct ast_translator | lin48toopus |
static struct ast_translator | lintoopus |
static struct ast_codec * | opus_codec |
static int(* | opus_samples_previous )(struct ast_frame *frame) |
static struct ast_translator | opustolin |
static struct ast_translator | opustolin12 |
static struct ast_translator | opustolin16 |
static struct ast_translator | opustolin24 |
static struct ast_translator | opustolin48 |
static struct codec_usage | usage |
Translate between signed linear and Opus (Open Codec)
Definition in file asterisk-opus-a959f072d3f364be983dd27e6e250b038aaef747/codecs/codec_opus_open_source.c.
|
static |
Definition at line 785 of file asterisk-opus-a959f072d3f364be983dd27e6e250b038aaef747/codecs/codec_opus_open_source.c.