Ignore:
Timestamp:
Jan 23, 2013 6:18:18 AM (11 years ago)
Author:
ming
Message:

Re #1608: Add support for OpenCORE AMR-WB

File:
1 moved

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-codec/opencore_amr.h

    r4314 r4331  
    11/* $Id$ */ 
    22/* 
    3  * Copyright (C) 2011 Teluu Inc. (http://www.teluu.com) 
     3 * Copyright (C) 2011-2013 Teluu Inc. (http://www.teluu.com) 
    44 * Copyright (C) 2011 Dan Arrhenius <dan@keystream.se> 
    55 * 
     
    1818 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    1919 */ 
    20 #ifndef __PJMEDIA_CODEC_OPENCORE_AMRNB_H__ 
    21 #define __PJMEDIA_CODEC_OPENCORE_AMRNB_H__ 
     20#ifndef __PJMEDIA_CODEC_OPENCORE_AMR_H__ 
     21#define __PJMEDIA_CODEC_OPENCORE_AMR_H__ 
    2222 
    2323#include <pjmedia-codec/types.h> 
    2424 
    2525/** 
    26  * @defgroup PJMED_OC_AMRNB OpenCORE AMR-NB Codec 
     26 * @defgroup PJMED_OC_AMR OpenCORE AMR Codec 
    2727 * @ingroup PJMEDIA_CODEC_CODECS 
    28  * @brief AMRCodec wrapper for OpenCORE AMR-NB codec 
     28 * @brief AMRCodec wrapper for OpenCORE AMR codec 
    2929 * @{ 
    3030 */ 
     
    3333 
    3434/** 
    35  * Settings. Use #pjmedia_codec_opencore_amrnb_set_config() to 
     35 * Settings. Use #pjmedia_codec_opencore_amrnb/wb_set_config() to 
    3636 * activate. 
    3737 */ 
    38 typedef struct pjmedia_codec_amrnb_config 
     38typedef struct pjmedia_codec_amr_config 
    3939{ 
    4040    /** 
     
    4848    unsigned bitrate; 
    4949 
    50 } pjmedia_codec_amrnb_config; 
     50} pjmedia_codec_amr_config; 
    5151 
     52typedef pjmedia_codec_amr_config pjmedia_codec_amrnb_config; 
     53typedef pjmedia_codec_amr_config pjmedia_codec_amrwb_config; 
    5254 
    5355/** 
     
    7981                                const pjmedia_codec_amrnb_config* cfg); 
    8082 
     83/** 
     84 * Initialize and register AMR-WB codec factory to pjmedia endpoint. 
     85 * 
     86 * @param endpt The pjmedia endpoint. 
     87 * 
     88 * @return      PJ_SUCCESS on success. 
     89 */ 
     90PJ_DECL(pj_status_t) pjmedia_codec_opencore_amrwb_init(pjmedia_endpt* endpt); 
     91 
     92/** 
     93 * Unregister AMR-WB codec factory from pjmedia endpoint and deinitialize 
     94 * the OpenCORE codec library. 
     95 * 
     96 * @return      PJ_SUCCESS on success. 
     97 */ 
     98PJ_DECL(pj_status_t) pjmedia_codec_opencore_amrwb_deinit(void); 
     99 
     100 
     101/** 
     102 * Set AMR-WB parameters. 
     103 * 
     104 * @param cfg   The settings; 
     105 * 
     106 * @return      PJ_SUCCESS on success. 
     107 */ 
     108PJ_DECL(pj_status_t) pjmedia_codec_opencore_amrwb_set_config( 
     109                                        const pjmedia_codec_amrwb_config* cfg); 
     110 
    81111PJ_END_DECL 
    82112 
Note: See TracChangeset for help on using the changeset viewer.