Debian Codegraph @

Xpjproject/pjmedia/include/pjmedia-codec/types.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
3 * Copyright (C) 2003-2008 Benny Prijono <[email protected]>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 #ifndef __PJMEDIA_CODEC_TYPES_H__
20 #define __PJMEDIA_CODEC_TYPES_H__
21
22 /**
23 * @file types.h
24 * @brief PJMEDIA-CODEC types and constants
25 */
26
27 #include <pjmedia-codec/config.h>
28 #include <pjmedia/codec.h>
29
30 /**
31 * @defgroup pjmedia_codec_types PJMEDIA-CODEC Types and Constants
32 * @ingroup PJMEDIA_CODEC
33 * @brief Constants used by PJMEDIA-CODEC
34 * @{
35 */
36
37
38
39 /**
40 * These are the dynamic payload types that are used by audio codecs in
41 * this library. Also see the header file <pjmedia/codec.h> for list
42 * of static payload types.
43 *
44 * These enumeration is for older audio codecs only, newer audio codec using
45 * dynamic payload type can simply assign PJMEDIA_RTP_PT_DYNAMIC in its
46 * payload type (i.e: pjmedia_codec_info.pt). Endpoint will automatically
47 * rearrange dynamic payload types in SDP generation.
48 */
49 enum pjmedia_audio_pt
50 {
51 /* According to IANA specifications, dynamic payload types are to be in
52 * the range 96-127 (inclusive), but this enum allows the value to be
53 * outside that range, later endpoint will rearrange dynamic payload types
54 * in SDP generation to be inside the 96-127 range and not equal to
55 * PJMEDIA_RTP_PT_TELEPHONE_EVENTS.
56 *
57 * PJMEDIA_RTP_PT_DYNAMIC is defined in <pjmedia/codec.h>. It is defined
58 * to be 96.
59 */
60 PJMEDIA_RTP_PT_START = (PJMEDIA_RTP_PT_DYNAMIC-1),
61
62 PJMEDIA_RTP_PT_SPEEX_NB, /**< Speex narrowband/8KHz */
63 PJMEDIA_RTP_PT_SPEEX_WB, /**< Speex wideband/16KHz */
64 PJMEDIA_RTP_PT_SPEEX_UWB, /**< Speex 32KHz */
65 PJMEDIA_RTP_PT_SILK_NB, /**< SILK narrowband/8KHz */
66 PJMEDIA_RTP_PT_SILK_MB, /**< SILK mediumband/12KHz */
67 PJMEDIA_RTP_PT_SILK_WB, /**< SILK wideband/16KHz */
68 PJMEDIA_RTP_PT_SILK_SWB, /**< SILK 24KHz */
69 PJMEDIA_RTP_PT_ILBC, /**< iLBC (13.3/15.2Kbps) */
70 PJMEDIA_RTP_PT_AMR, /**< AMR (4.75 - 12.2Kbps) */
71 PJMEDIA_RTP_PT_AMRWB, /**< AMRWB (6.6 - 23.85Kbps)*/
72 PJMEDIA_RTP_PT_AMRWBE, /**< AMRWBE */
73 PJMEDIA_RTP_PT_G726_16, /**< G726 @ 16Kbps */
74 PJMEDIA_RTP_PT_G726_24, /**< G726 @ 24Kbps */
75 PJMEDIA_RTP_PT_G726_32, /**< G726 @ 32Kbps */
76 PJMEDIA_RTP_PT_G726_40, /**< G726 @ 40Kbps */
77 PJMEDIA_RTP_PT_G722_1_16, /**< G722.1 (16Kbps) */
78 PJMEDIA_RTP_PT_G722_1_24, /**< G722.1 (24Kbps) */
79 PJMEDIA_RTP_PT_G722_1_32, /**< G722.1 (32Kbps) */
80 PJMEDIA_RTP_PT_G7221C_24, /**< G722.1 Annex C (24Kbps)*/
81 PJMEDIA_RTP_PT_G7221C_32, /**< G722.1 Annex C (32Kbps)*/
82 PJMEDIA_RTP_PT_G7221C_48, /**< G722.1 Annex C (48Kbps)*/
83 PJMEDIA_RTP_PT_G7221_RSV1, /**< G722.1 reserve */
84 PJMEDIA_RTP_PT_G7221_RSV2, /**< G722.1 reserve */
85 PJMEDIA_RTP_PT_OPUS, /**< OPUS */
86 PJMEDIA_RTP_PT_LYRA_8, /**< LYRA @ 8KHz */
87 PJMEDIA_RTP_PT_LYRA_16, /**< LYRA @ 16KHz */
88 PJMEDIA_RTP_PT_LYRA_32, /**< LYRA @ 32KHz */
89 PJMEDIA_RTP_PT_LYRA_48, /**< LYRA @ 48KHz */
90 #if PJMEDIA_CODEC_L16_HAS_8KHZ_MONO
91 PJMEDIA_RTP_PT_L16_8KHZ_MONO, /**< L16 @ 8KHz, mono */
92 #endif
93 #if PJMEDIA_CODEC_L16_HAS_8KHZ_STEREO
94 PJMEDIA_RTP_PT_L16_8KHZ_STEREO, /**< L16 @ 8KHz, stereo */
95 #endif
96 //PJMEDIA_RTP_PT_L16_11KHZ_MONO, /**< L16 @ 11KHz, mono */
97 //PJMEDIA_RTP_PT_L16_11KHZ_STEREO, /**< L16 @ 11KHz, stereo */
98 #if PJMEDIA_CODEC_L16_HAS_16KHZ_MONO
99 PJMEDIA_RTP_PT_L16_16KHZ_MONO, /**< L16 @ 16KHz, mono */
100 #endif
101 #if PJMEDIA_CODEC_L16_HAS_16KHZ_STEREO
102 PJMEDIA_RTP_PT_L16_16KHZ_STEREO, /**< L16 @ 16KHz, stereo */
103 #endif
104 //PJMEDIA_RTP_PT_L16_22KHZ_MONO, /**< L16 @ 22KHz, mono */
105 //PJMEDIA_RTP_PT_L16_22KHZ_STEREO, /**< L16 @ 22KHz, stereo */
106 //PJMEDIA_RTP_PT_L16_32KHZ_MONO, /**< L16 @ 32KHz, mono */
107 //PJMEDIA_RTP_PT_L16_32KHZ_STEREO, /**< L16 @ 32KHz, stereo */
108 #if PJMEDIA_CODEC_L16_HAS_48KHZ_MONO
109 PJMEDIA_RTP_PT_L16_48KHZ_MONO, /**< L16 @ 48KHz, mono */
110 #endif
111 #if PJMEDIA_CODEC_L16_HAS_48KHZ_STEREO
112 PJMEDIA_RTP_PT_L16_48KHZ_STEREO, /**< L16 @ 48KHz, stereo */
113 #endif
114 };
115
116 /**
117 * These are the dynamic payload types that are used by video codecs in
118 * this library.
119 */
120 enum pjmedia_video_pt
121 {
122 /* Video payload types */
123 PJMEDIA_RTP_PT_VID_START = (PJMEDIA_RTP_PT_DYNAMIC-1),
124 PJMEDIA_RTP_PT_H263P, /* used by ffmpeg avcodec */
125 PJMEDIA_RTP_PT_H264, /* used by OpenH264 */
126 PJMEDIA_RTP_PT_H264_RSV1, /* used by video toolbox */
127 PJMEDIA_RTP_PT_H264_RSV2, /* used by MediaCodec */
128 PJMEDIA_RTP_PT_H264_RSV3, /* used by ffmpeg avcodec */
129 PJMEDIA_RTP_PT_H264_RSV4,
130
131 PJMEDIA_RTP_PT_VP8, /* used by VPX */
132 PJMEDIA_RTP_PT_VP8_RSV1, /* used by MediaCodec */
133 PJMEDIA_RTP_PT_VP8_RSV2, /* used by ffmpeg avcodec */
134 PJMEDIA_RTP_PT_VP9, /* used by VPX */
135 PJMEDIA_RTP_PT_VP9_RSV1, /* used by MediaCodec */
136 PJMEDIA_RTP_PT_VP9_RSV2, /* used by ffmpeg avcodec */
137
138 /* Caution!
139 * Ensure the value of the last pt above is <= 127.
140 */
141 };
142
143
144 /**
145 * @}
146 */
147
148
149 #endif /* __PJMEDIA_CODEC_TYPES_H__ */