2006-02-10 15:57:08 +00:00
|
|
|
/* $Id$ */
|
|
|
|
/*
|
2011-05-05 06:14:19 +00:00
|
|
|
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
|
2008-12-23 17:27:53 +00:00
|
|
|
* Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
|
2006-02-10 15:57:08 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
#ifndef __PJMEDIA_CODEC_TYPES_H__
|
|
|
|
#define __PJMEDIA_CODEC_TYPES_H__
|
|
|
|
|
2009-08-13 15:57:26 +00:00
|
|
|
/**
|
|
|
|
* @file types.h
|
|
|
|
* @brief PJMEDIA-CODEC types and constants
|
|
|
|
*/
|
|
|
|
|
2006-03-16 14:24:26 +00:00
|
|
|
#include <pjmedia-codec/config.h>
|
2010-10-28 08:31:42 +00:00
|
|
|
#include <pjmedia/codec.h>
|
2006-02-10 15:57:08 +00:00
|
|
|
|
2009-08-13 15:57:26 +00:00
|
|
|
/**
|
|
|
|
* @defgroup pjmedia_codec_types PJMEDIA-CODEC Types and Constants
|
|
|
|
* @ingroup PJMEDIA_CODEC
|
|
|
|
* @brief Constants used by PJMEDIA-CODEC
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-04-27 22:36:40 +00:00
|
|
|
/**
|
2011-03-17 11:33:34 +00:00
|
|
|
* These are the dynamic payload types that are used by audio codecs in
|
2006-04-27 22:36:40 +00:00
|
|
|
* this library. Also see the header file <pjmedia/codec.h> for list
|
|
|
|
* of static payload types.
|
|
|
|
*/
|
2011-03-17 11:33:34 +00:00
|
|
|
enum pjmedia_audio_pt
|
2006-04-27 22:36:40 +00:00
|
|
|
{
|
2010-10-14 08:30:57 +00:00
|
|
|
/* According to IANA specifications, dynamic payload types are to be in
|
|
|
|
* the range 96-127 (inclusive). This enum is structured to place the
|
|
|
|
* values of the payload types specified below into that range.
|
|
|
|
*
|
|
|
|
* PJMEDIA_RTP_PT_DYNAMIC is defined in <pjmedia/codec.h>. It is defined
|
|
|
|
* to be 96.
|
|
|
|
*
|
|
|
|
* PJMEDIA_RTP_PT_TELEPHONE_EVENTS is defined in <pjmedia/config.h>.
|
|
|
|
* The default value is 96.
|
2006-04-27 22:36:40 +00:00
|
|
|
*/
|
2007-03-15 21:15:16 +00:00
|
|
|
#if PJMEDIA_RTP_PT_TELEPHONE_EVENTS
|
2006-07-02 12:29:54 +00:00
|
|
|
PJMEDIA_RTP_PT_START = PJMEDIA_RTP_PT_TELEPHONE_EVENTS,
|
2007-03-15 21:15:16 +00:00
|
|
|
#else
|
2010-10-14 08:30:57 +00:00
|
|
|
PJMEDIA_RTP_PT_START = (PJMEDIA_RTP_PT_DYNAMIC-1),
|
2007-03-15 21:15:16 +00:00
|
|
|
#endif
|
2006-04-27 22:36:40 +00:00
|
|
|
|
|
|
|
PJMEDIA_RTP_PT_SPEEX_NB, /**< Speex narrowband/8KHz */
|
|
|
|
PJMEDIA_RTP_PT_SPEEX_WB, /**< Speex wideband/16KHz */
|
|
|
|
PJMEDIA_RTP_PT_SPEEX_UWB, /**< Speex 32KHz */
|
2012-09-24 06:58:16 +00:00
|
|
|
PJMEDIA_RTP_PT_SILK_NB, /**< SILK narrowband/8KHz */
|
|
|
|
PJMEDIA_RTP_PT_SILK_MB, /**< SILK mediumband/12KHz */
|
|
|
|
PJMEDIA_RTP_PT_SILK_WB, /**< SILK wideband/16KHz */
|
|
|
|
PJMEDIA_RTP_PT_SILK_SWB, /**< SILK 24KHz */
|
2008-08-15 13:17:39 +00:00
|
|
|
PJMEDIA_RTP_PT_ILBC, /**< iLBC (13.3/15.2Kbps) */
|
|
|
|
PJMEDIA_RTP_PT_AMR, /**< AMR (4.75 - 12.2Kbps) */
|
|
|
|
PJMEDIA_RTP_PT_AMRWB, /**< AMRWB (6.6 - 23.85Kbps)*/
|
|
|
|
PJMEDIA_RTP_PT_AMRWBE, /**< AMRWBE */
|
|
|
|
PJMEDIA_RTP_PT_G726_16, /**< G726 @ 16Kbps */
|
|
|
|
PJMEDIA_RTP_PT_G726_24, /**< G726 @ 24Kbps */
|
2010-04-26 13:57:28 +00:00
|
|
|
PJMEDIA_RTP_PT_G726_32, /**< G726 @ 32Kbps */
|
2008-08-15 13:17:39 +00:00
|
|
|
PJMEDIA_RTP_PT_G726_40, /**< G726 @ 40Kbps */
|
2008-08-25 13:58:25 +00:00
|
|
|
PJMEDIA_RTP_PT_G722_1_16, /**< G722.1 (16Kbps) */
|
|
|
|
PJMEDIA_RTP_PT_G722_1_24, /**< G722.1 (24Kbps) */
|
|
|
|
PJMEDIA_RTP_PT_G722_1_32, /**< G722.1 (32Kbps) */
|
2009-04-01 12:05:34 +00:00
|
|
|
PJMEDIA_RTP_PT_G7221C_24, /**< G722.1 Annex C (24Kbps)*/
|
|
|
|
PJMEDIA_RTP_PT_G7221C_32, /**< G722.1 Annex C (32Kbps)*/
|
|
|
|
PJMEDIA_RTP_PT_G7221C_48, /**< G722.1 Annex C (48Kbps)*/
|
|
|
|
PJMEDIA_RTP_PT_G7221_RSV1, /**< G722.1 reserve */
|
|
|
|
PJMEDIA_RTP_PT_G7221_RSV2, /**< G722.1 reserve */
|
2012-09-24 06:58:16 +00:00
|
|
|
PJMEDIA_RTP_PT_L16_8KHZ_MONO, /**< L16 @ 8KHz, mono */
|
|
|
|
PJMEDIA_RTP_PT_L16_8KHZ_STEREO, /**< L16 @ 8KHz, stereo */
|
|
|
|
//PJMEDIA_RTP_PT_L16_11KHZ_MONO, /**< L16 @ 11KHz, mono */
|
|
|
|
//PJMEDIA_RTP_PT_L16_11KHZ_STEREO, /**< L16 @ 11KHz, stereo */
|
|
|
|
PJMEDIA_RTP_PT_L16_16KHZ_MONO, /**< L16 @ 16KHz, mono */
|
|
|
|
PJMEDIA_RTP_PT_L16_16KHZ_STEREO, /**< L16 @ 16KHz, stereo */
|
|
|
|
//PJMEDIA_RTP_PT_L16_22KHZ_MONO, /**< L16 @ 22KHz, mono */
|
|
|
|
//PJMEDIA_RTP_PT_L16_22KHZ_STEREO, /**< L16 @ 22KHz, stereo */
|
|
|
|
//PJMEDIA_RTP_PT_L16_32KHZ_MONO, /**< L16 @ 32KHz, mono */
|
|
|
|
//PJMEDIA_RTP_PT_L16_32KHZ_STEREO, /**< L16 @ 32KHz, stereo */
|
|
|
|
//PJMEDIA_RTP_PT_L16_48KHZ_MONO, /**< L16 @ 48KHz, mono */
|
|
|
|
//PJMEDIA_RTP_PT_L16_48KHZ_STEREO, /**< L16 @ 48KHz, stereo */
|
2010-10-14 08:30:57 +00:00
|
|
|
|
|
|
|
/* Caution!
|
|
|
|
* Ensure the value of the last pt above is <= 127.
|
|
|
|
*/
|
2006-04-27 22:36:40 +00:00
|
|
|
};
|
|
|
|
|
2011-03-17 11:33:34 +00:00
|
|
|
/**
|
|
|
|
* These are the dynamic payload types that are used by video codecs in
|
|
|
|
* this library.
|
|
|
|
*/
|
|
|
|
enum pjmedia_video_pt
|
|
|
|
{
|
|
|
|
/* Video payload types */
|
|
|
|
PJMEDIA_RTP_PT_VID_START = (PJMEDIA_RTP_PT_DYNAMIC-1),
|
|
|
|
PJMEDIA_RTP_PT_H263P,
|
|
|
|
PJMEDIA_RTP_PT_H264,
|
2011-04-06 13:55:01 +00:00
|
|
|
PJMEDIA_RTP_PT_H264_RSV1,
|
|
|
|
PJMEDIA_RTP_PT_H264_RSV2,
|
|
|
|
PJMEDIA_RTP_PT_H264_RSV3,
|
|
|
|
PJMEDIA_RTP_PT_H264_RSV4,
|
2011-03-17 11:33:34 +00:00
|
|
|
|
|
|
|
/* Caution!
|
|
|
|
* Ensure the value of the last pt above is <= 127.
|
|
|
|
*/
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-08-13 15:57:26 +00:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
2006-04-27 22:36:40 +00:00
|
|
|
|
|
|
|
|
2006-02-10 15:57:08 +00:00
|
|
|
#endif /* __PJMEDIA_CODEC_TYPES_H__ */
|