Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PayloadTypes.h

Go to the documentation of this file.
00001 /* Copyright (C) 2002 Carsten Griwodz 00002 * 00003 * You are allowed to use all other parts of the code under the following terms: 00004 * 00005 * For non-commercial use, this code may be used in unmodified form 00006 * provided that this copyright notice and this permission notice appear 00007 * in supporting documentation. 00008 * 00009 * The code may be made subject to the terms of the GNU General Public 00010 * License, Version 2, and re-distributed under the terms of this license. 00011 * 00012 * Commercial use other than under the terms of the GNU General Public 00013 * License is allowed only after negotiation of conditions with the authors. 00014 */ 00015 #ifndef SDP_PAYLOAD_TYPES_H 00016 #define SDP_PAYLOAD_TYPES_H 00017 00018 #include "mnstream.h" 00019 00020 namespace SDP 00021 { 00022 00040 enum PayloadTypes 00041 { 00042 PT_EXPECT_DYNAMIC = -2, 00043 PT_UNDEFINED = -1, 00044 00045 /* begin of legally assigned numbers section 0 - 71 */ 00046 PT_PCMU = 0, 00047 PT_DEFAULT = PT_PCMU, 00048 PT_1016 = 1, 00049 PT_G721 = 2, 00050 PT_GSM = 3, 00051 PT_G723 = 4, 00052 PT_DVI4 = 5, 00053 PT_DVI42 = 6, 00054 PT_LPC = 7, 00055 PT_PCMA = 8, 00056 PT_G722 = 9, 00057 PT_L16 = 10, 00058 PT_L162 = 11, 00059 PT_QCELP = 12, 00060 PT_CN = 13, 00061 PT_MPA = 14, 00062 PT_G728 = 15, 00063 PT_DVI43 = 16, 00064 PT_DVI44 = 17, 00065 PT_G729 = 18, 00066 /* 19 - 24 */ 00067 PT_CELLB = 25, 00068 PT_JPEG = 26, 00069 PT_CUSM = 27, 00070 PT_NV = 28, 00071 PT_PICW = 29, 00072 PT_CPV = 30, 00073 PT_H261 = 31, 00074 PT_MPV = 32, 00075 PT_MPEG = PT_MPV, 00076 PT_MP2T = 33, 00077 PT_H263 = 34, 00078 PT_SPEG = 35, 00079 /* 34 - 71 unassigned */ 00080 /* 72 - 76 reserved */ 00081 /* 77 - 95 unassigned */ 00082 PT_X_LD = 95, 00083 00084 /* 96 - 127 dynamic 00085 * known audio codecs in this range: 00086 * GSM-HR from IOP 2 00087 * GSM-EFR from IOP 2 00088 * L8 from IOP 2 00089 * RED from IOP 2 00090 * VDVI from IOP 2 00091 * known video codecs in this range: 00092 * BT656 from IOP 2 00093 * H263-1998 from IOP 2 00094 * MP1S from IOP 2 00095 * MP2P from IOP 2 00096 * BMPEG from IOP 2 00097 * 00098 * 128 - open internal use only, when a=rtpmap: is resolved 00099 */ 00100 PT_D_GSM_HR = 200, 00101 PT_D_GSM_EFR = 201, 00102 PT_D_L8 = 202, 00103 PT_D_RED = 203, 00104 PT_D_VDVI = 204, 00105 00106 PT_D_BT656 = 220, 00107 PT_D_H263_1998 = 221, 00108 PT_D_MP1S = 222, 00109 PT_D_MP2P = 223, 00110 PT_D_BMPEG = 224, 00111 00112 PT_MP4V = 230, 00113 PT_MP4A = 237, 00114 PT_JVC_ASF = 255, 00115 00116 PT_D_AVI = 256, 00117 00118 PT_MAX = 257 00119 }; 00120 00123 PayloadTypes pt_from_int( int val ); 00124 00127 bool is_known_pt( int val ); 00128 00131 bool is_layered_pt( PayloadTypes val ); 00132 00135 bool is_audio_pt( PayloadTypes val ); 00136 00139 bool is_multiplexed_pt( PayloadTypes val ); 00140 00143 int default_rate_from_pt( PayloadTypes pt ); 00144 00147 int default_channels_from_pt( PayloadTypes pt ); 00148 00149 ostream& operator<<( ostream& ostr, PayloadTypes t ); 00150 00151 }; // namespace SDP 00152 00153 #endif /* SDP_PAYLOAD_TYPES_H */

Generated on Sun Mar 6 13:35:49 2005 for Komssys by doxygen 1.3.8