1
/* $Id: types.h 3664 2011-07-19 03:42:28Z nanang $ */
3
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
4
* Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
#ifndef __PJMEDIA_CODEC_TYPES_H__
21
#define __PJMEDIA_CODEC_TYPES_H__
25
* @brief PJMEDIA-CODEC types and constants
28
#include <pjmedia-codec/config.h>
29
#include <pjmedia/codec.h>
32
* @defgroup pjmedia_codec_types PJMEDIA-CODEC Types and Constants
33
* @ingroup PJMEDIA_CODEC
34
* @brief Constants used by PJMEDIA-CODEC
41
* These are the dynamic payload types that are used by audio codecs in
42
* this library. Also see the header file <pjmedia/codec.h> for list
43
* of static payload types.
47
/* According to IANA specifications, dynamic payload types are to be in
48
* the range 96-127 (inclusive). This enum is structured to place the
49
* values of the payload types specified below into that range.
51
* PJMEDIA_RTP_PT_DYNAMIC is defined in <pjmedia/codec.h>. It is defined
54
* PJMEDIA_RTP_PT_TELEPHONE_EVENTS is defined in <pjmedia/config.h>.
55
* The default value is 96.
57
#if PJMEDIA_RTP_PT_TELEPHONE_EVENTS
58
PJMEDIA_RTP_PT_START = PJMEDIA_RTP_PT_TELEPHONE_EVENTS,
60
PJMEDIA_RTP_PT_START = (PJMEDIA_RTP_PT_DYNAMIC-1),
63
PJMEDIA_RTP_PT_SPEEX_NB, /**< Speex narrowband/8KHz */
64
PJMEDIA_RTP_PT_SPEEX_WB, /**< Speex wideband/16KHz */
65
PJMEDIA_RTP_PT_SPEEX_UWB, /**< Speex 32KHz */
66
PJMEDIA_RTP_PT_L16_8KHZ_MONO, /**< L16 @ 8KHz, mono */
67
PJMEDIA_RTP_PT_L16_8KHZ_STEREO, /**< L16 @ 8KHz, stereo */
68
//PJMEDIA_RTP_PT_L16_11KHZ_MONO, /**< L16 @ 11KHz, mono */
69
//PJMEDIA_RTP_PT_L16_11KHZ_STEREO, /**< L16 @ 11KHz, stereo */
70
PJMEDIA_RTP_PT_L16_16KHZ_MONO, /**< L16 @ 16KHz, mono */
71
PJMEDIA_RTP_PT_L16_16KHZ_STEREO, /**< L16 @ 16KHz, stereo */
72
//PJMEDIA_RTP_PT_L16_22KHZ_MONO, /**< L16 @ 22KHz, mono */
73
//PJMEDIA_RTP_PT_L16_22KHZ_STEREO, /**< L16 @ 22KHz, stereo */
74
//PJMEDIA_RTP_PT_L16_32KHZ_MONO, /**< L16 @ 32KHz, mono */
75
//PJMEDIA_RTP_PT_L16_32KHZ_STEREO, /**< L16 @ 32KHz, stereo */
76
//PJMEDIA_RTP_PT_L16_48KHZ_MONO, /**< L16 @ 48KHz, mono */
77
//PJMEDIA_RTP_PT_L16_48KHZ_STEREO, /**< L16 @ 48KHz, stereo */
78
PJMEDIA_RTP_PT_ILBC, /**< iLBC (13.3/15.2Kbps) */
79
PJMEDIA_RTP_PT_AMR, /**< AMR (4.75 - 12.2Kbps) */
80
PJMEDIA_RTP_PT_AMRWB, /**< AMRWB (6.6 - 23.85Kbps)*/
81
PJMEDIA_RTP_PT_AMRWBE, /**< AMRWBE */
82
PJMEDIA_RTP_PT_G726_16, /**< G726 @ 16Kbps */
83
PJMEDIA_RTP_PT_G726_24, /**< G726 @ 24Kbps */
84
PJMEDIA_RTP_PT_G726_32, /**< G726 @ 32Kbps */
85
PJMEDIA_RTP_PT_G726_40, /**< G726 @ 40Kbps */
86
PJMEDIA_RTP_PT_G722_1_16, /**< G722.1 (16Kbps) */
87
PJMEDIA_RTP_PT_G722_1_24, /**< G722.1 (24Kbps) */
88
PJMEDIA_RTP_PT_G722_1_32, /**< G722.1 (32Kbps) */
89
PJMEDIA_RTP_PT_G7221C_24, /**< G722.1 Annex C (24Kbps)*/
90
PJMEDIA_RTP_PT_G7221C_32, /**< G722.1 Annex C (32Kbps)*/
91
PJMEDIA_RTP_PT_G7221C_48, /**< G722.1 Annex C (48Kbps)*/
92
PJMEDIA_RTP_PT_G7221_RSV1, /**< G722.1 reserve */
93
PJMEDIA_RTP_PT_G7221_RSV2, /**< G722.1 reserve */
96
* Ensure the value of the last pt above is <= 127.
101
* These are the dynamic payload types that are used by video codecs in
104
enum pjmedia_video_pt
106
/* Video payload types */
107
PJMEDIA_RTP_PT_VID_START = (PJMEDIA_RTP_PT_DYNAMIC-1),
108
PJMEDIA_RTP_PT_H263P,
110
PJMEDIA_RTP_PT_H264_RSV1,
111
PJMEDIA_RTP_PT_H264_RSV2,
112
PJMEDIA_RTP_PT_H264_RSV3,
113
PJMEDIA_RTP_PT_H264_RSV4,
116
* Ensure the value of the last pt above is <= 127.
126
#endif /* __PJMEDIA_CODEC_TYPES_H__ */