资源简介
将G729编码加入Pjsip当中的方法。资源中包含关键文件,也可以参考我的博客http://blog.csdn.net/xu404741377/article/details/79271362
代码片段和文件信息
/* $Id$ */
/*
* Copyright (C) 2009 Samuel Vinson
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#if defined(PJMEDIA_HAS_G729_CODEC) && (PJMEDIA_HAS_G729_CODEC!=0)
#include “g729/typedef.h“
#include “g729/g729a.h“
#include “g729/g729a_encoder.h“
#include “g729/g729a_decoder.h“
#define THIS_FILE “g729.c“
//
/* We removed PLC in 0.6 (and re-enabled it again in 0.9!) */
#define PLC_DISABLED 0
#define G729_BPS 8000
#define L_PACKED_G729A 10
/* Prototypes for G729 factory */
static pj_status_t g729_test_alloc( pjmedia_codec_factory *factory
const pjmedia_codec_info *id );
static pj_status_t g729_default_attr( pjmedia_codec_factory *factory
const pjmedia_codec_info *id
pjmedia_codec_param *attr );
static pj_status_t g729_enum_codecs (pjmedia_codec_factory *factory
unsigned *count
pjmedia_codec_info codecs[]);
static pj_status_t g729_alloc_codec( pjmedia_codec_factory *factory
const pjmedia_codec_info *id
pjmedia_codec **p_codec);
static pj_status_t g729_dealloc_codec( pjmedia_codec_factory *factory
pjmedia_codec *codec );
/* Prototypes for G729 implementation. */
static pj_status_t g729_init( pjmedia_codec *codec
pj_pool_t *pool );
static pj_status_t g729_open( pjmedia_codec *codec
pjmedia_codec_param *attr );
static pj_status_t g729_close( pjmedia_codec *codec );
static pj_status_t g729_modify(pjmedia_codec *codec
const pjmedia_codec_param *attr );
static pj_status_t g729_parse(pjmedia_codec *codec
void *pkt
pj_size_t pkt_size
const pj_timestamp *timestamp
unsigned *frame_cnt
pjmedia_frame frames[]);
static pj_status_t g729_encode( pjmedia_codec *codec
const struct pjmedia_frame *input
unsigned output_buf_len
struct pjmedia_frame *output);
static pj_status_t g729_decode( pjmedia_codec *codec
const
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-03-07 13:21 merge g729 into pjsip\
目录 0 2016-03-07 13:19 merge g729 into pjsip\g729\
文件 16277 2015-12-15 18:01 merge g729 into pjsip\g729.c
文件 1718 2015-12-15 18:01 merge g729 into pjsip\g729.h
文件 3994 2015-12-15 18:01 merge g729 into pjsip\g729\abs_s.h
文件 29238 2015-12-15 18:01 merge g729 into pjsip\g729\acelp_ca.c
文件 3835 2015-12-15 18:01 merge g729 into pjsip\g729\add.h
文件 4178 2015-12-15 18:01 merge g729 into pjsip\g729\az_lsp.h
文件 4154 2015-12-15 18:01 merge g729 into pjsip\g729\basicop_malloc.h
文件 70457 2015-12-15 18:01 merge g729 into pjsip\g729\basic_op.c
文件 14384 2015-12-15 18:01 merge g729 into pjsip\g729\basic_op.h
文件 17407 2015-12-15 18:01 merge g729 into pjsip\g729\basic_op_arm_gcc_v5.h
文件 15781 2015-12-15 18:01 merge g729 into pjsip\g729\basic_op_c_equivalent.h
文件 4847 2015-12-15 18:01 merge g729 into pjsip\g729\bitno_tab.h
文件 4385 2015-12-15 18:01 merge g729 into pjsip\g729\bitreorder_tab.h
文件 7415 2015-12-15 18:01 merge g729 into pjsip\g729\bits.c
文件 3900 2015-12-15 18:01 merge g729 into pjsip\g729\bytesused.h
文件 6171 2015-12-15 18:01 merge g729 into pjsip\g729\cnst.h
文件 6849 2015-12-15 18:01 merge g729 into pjsip\g729\cnst_vad.h
文件 19905 2015-12-15 18:01 merge g729 into pjsip\g729\cod_ld8a.c
文件 5194 2015-12-15 18:01 merge g729 into pjsip\g729\cor_func.c
文件 5823 2015-12-15 18:01 merge g729 into pjsip\g729\dec_gain.c
文件 3192 2015-12-15 18:01 merge g729 into pjsip\g729\dec_lag3.c
文件 9994 2015-12-15 18:01 merge g729 into pjsip\g729\dec_ld8a.c
文件 2547 2015-12-15 18:01 merge g729 into pjsip\g729\de_acelp.c
文件 4013 2015-12-15 18:01 merge g729 into pjsip\g729\div_s.h
文件 9410 2015-12-15 18:01 merge g729 into pjsip\g729\dspfunc.c
文件 3911 2015-12-15 18:01 merge g729 into pjsip\g729\dtx_common_def.h
文件 4710 2015-12-15 18:01 merge g729 into pjsip\g729\d_gain_c.h
文件 3102 2015-12-15 18:01 merge g729 into pjsip\g729\d_gain_p.h
文件 7960 2015-12-15 18:01 merge g729 into pjsip\g729\d_plsf.h
............此处省略94个文件信息
- 上一篇:基于web的学生上机考勤管理系统
- 下一篇:A*算法实现迷宫问题
评论
共有 条评论