OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // and 1 here, to increase the chances it will be correctly used if | 46 // and 1 here, to increase the chances it will be correctly used if |
47 // someone implements an MPEG audio encoder/decoder. | 47 // someone implements an MPEG audio encoder/decoder. |
48 {{"MPA", 90000, 0}, 14}, | 48 {{"MPA", 90000, 0}, 14}, |
49 {{"MPA", 90000, 1}, 14}, | 49 {{"MPA", 90000, 1}, 14}, |
50 {{"G728", 8000, 1}, 15}, | 50 {{"G728", 8000, 1}, 15}, |
51 {{"DVI4", 11025, 1}, 16}, | 51 {{"DVI4", 11025, 1}, 16}, |
52 {{"DVI4", 22050, 1}, 17}, | 52 {{"DVI4", 22050, 1}, 17}, |
53 {{"G729", 8000, 1}, 18}, | 53 {{"G729", 8000, 1}, 18}, |
54 | 54 |
55 // Payload type assignments currently used by WebRTC. | 55 // Payload type assignments currently used by WebRTC. |
56 // Includes data to reduce collisions (and thus reassignments) | 56 // Includes video and data to reduce collisions (and thus |
| 57 // reassignments). |
57 // RTX codecs mapping to specific video payload types | 58 // RTX codecs mapping to specific video payload types |
| 59 {{kRtxCodecName, 90000, 0, |
| 60 {{kCodecParamAssociatedPayloadType, |
| 61 std::to_string(kDefaultVp8PlType)}}}, |
| 62 kDefaultRtxVp8PlType}, |
| 63 {{kRtxCodecName, 90000, 0, |
| 64 {{kCodecParamAssociatedPayloadType, |
| 65 std::to_string(kDefaultVp9PlType)}}}, |
| 66 kDefaultRtxVp9PlType}, |
| 67 {{kRtxCodecName, 90000, 0, |
| 68 {{kCodecParamAssociatedPayloadType, |
| 69 std::to_string(kDefaultRedPlType)}}}, |
| 70 kDefaultRtxRedPlType}, |
| 71 {{kRtxCodecName, 90000, 0, |
| 72 {{kCodecParamAssociatedPayloadType, |
| 73 std::to_string(kDefaultH264PlType)}}}, |
| 74 kDefaultRtxH264ConstrainedBaselinePlType}, |
58 // Other codecs | 75 // Other codecs |
| 76 {{kVp8CodecName, 90000, 0}, kDefaultVp8PlType}, |
| 77 {{kVp9CodecName, 90000, 0}, kDefaultVp9PlType}, |
59 {{kGoogleRtpDataCodecName, 0, 0}, kGoogleRtpDataCodecPlType}, | 78 {{kGoogleRtpDataCodecName, 0, 0}, kGoogleRtpDataCodecPlType}, |
60 {{kIlbcCodecName, 8000, 1}, 102}, | 79 {{kIlbcCodecName, 8000, 1}, 102}, |
61 {{kIsacCodecName, 16000, 1}, 103}, | 80 {{kIsacCodecName, 16000, 1}, 103}, |
62 {{kIsacCodecName, 32000, 1}, 104}, | 81 {{kIsacCodecName, 32000, 1}, 104}, |
63 {{kCnCodecName, 16000, 1}, 105}, | 82 {{kCnCodecName, 16000, 1}, 105}, |
64 {{kCnCodecName, 32000, 1}, 106}, | 83 {{kCnCodecName, 32000, 1}, 106}, |
| 84 {{kH264CodecName, 90000, 0}, kDefaultH264PlType}, |
65 {{kGoogleSctpDataCodecName, 0, 0}, kGoogleSctpDataCodecPlType}, | 85 {{kGoogleSctpDataCodecName, 0, 0}, kGoogleSctpDataCodecPlType}, |
66 {{kOpusCodecName, 48000, 2, | 86 {{kOpusCodecName, 48000, 2, |
67 {{"minptime", "10"}, {"useinbandfec", "1"}}}, 111}, | 87 {{"minptime", "10"}, {"useinbandfec", "1"}}}, 111}, |
| 88 {{kRedCodecName, 90000, 0}, kDefaultRedPlType}, |
| 89 {{kUlpfecCodecName, 90000, 0}, kDefaultUlpfecType}, |
| 90 {{kFlexfecCodecName, 90000, 0}, kDefaultFlexfecPlType}, |
68 // TODO(solenberg): Remove the hard coded 16k,32k,48k DTMF once we | 91 // TODO(solenberg): Remove the hard coded 16k,32k,48k DTMF once we |
69 // assign payload types dynamically for send side as well. | 92 // assign payload types dynamically for send side as well. |
70 {{kDtmfCodecName, 48000, 1}, 110}, | 93 {{kDtmfCodecName, 48000, 1}, 110}, |
71 {{kDtmfCodecName, 32000, 1}, 112}, | 94 {{kDtmfCodecName, 32000, 1}, 112}, |
72 {{kDtmfCodecName, 16000, 1}, 113}, | 95 {{kDtmfCodecName, 16000, 1}, 113}, |
73 {{kDtmfCodecName, 8000, 1}, 126}}) { | 96 {{kDtmfCodecName, 8000, 1}, 126}}) { |
74 // TODO(ossu): Try to keep this as change-proof as possible until we're able | 97 // TODO(ossu): Try to keep this as change-proof as possible until we're able |
75 // to remove the payload type constants from everywhere in the code. | 98 // to remove the payload type constants from everywhere in the code. |
76 for (const auto& mapping : mappings_) { | 99 for (const auto& mapping : mappings_) { |
77 used_payload_types_.insert(mapping.second); | 100 used_payload_types_.insert(mapping.second); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 if (name_cmp == 0) | 159 if (name_cmp == 0) |
137 return a.parameters < b.parameters; | 160 return a.parameters < b.parameters; |
138 return name_cmp < 0; | 161 return name_cmp < 0; |
139 } | 162 } |
140 return a.num_channels < b.num_channels; | 163 return a.num_channels < b.num_channels; |
141 } | 164 } |
142 return a.clockrate_hz < b.clockrate_hz; | 165 return a.clockrate_hz < b.clockrate_hz; |
143 } | 166 } |
144 | 167 |
145 } // namespace cricket | 168 } // namespace cricket |
OLD | NEW |