OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 switch (type) { | 61 switch (type) { |
62 case kVideoCodecVP8: | 62 case kVideoCodecVP8: |
63 return kRtpVideoVp8; | 63 return kRtpVideoVp8; |
64 case kVideoCodecVP9: | 64 case kVideoCodecVP9: |
65 return kRtpVideoVp9; | 65 return kRtpVideoVp9; |
66 case kVideoCodecH264: | 66 case kVideoCodecH264: |
67 return kRtpVideoH264; | 67 return kRtpVideoH264; |
68 case kVideoCodecRED: | 68 case kVideoCodecRED: |
69 case kVideoCodecULPFEC: | 69 case kVideoCodecULPFEC: |
70 return kRtpVideoNone; | 70 return kRtpVideoNone; |
| 71 case kVideoCodecStereo: |
| 72 return kRtpVideoStereo; |
71 default: | 73 default: |
72 return kRtpVideoGeneric; | 74 return kRtpVideoGeneric; |
73 } | 75 } |
74 } | 76 } |
75 | 77 |
76 RtpUtility::Payload CreatePayloadType(const VideoCodec& video_codec) { | 78 RtpUtility::Payload CreatePayloadType(const VideoCodec& video_codec) { |
77 RtpUtility::Payload payload; | 79 RtpUtility::Payload payload; |
78 payload.name[RTP_PAYLOAD_NAME_SIZE - 1] = 0; | 80 payload.name[RTP_PAYLOAD_NAME_SIZE - 1] = 0; |
79 strncpy(payload.name, video_codec.plName, RTP_PAYLOAD_NAME_SIZE - 1); | 81 strncpy(payload.name, video_codec.plName, RTP_PAYLOAD_NAME_SIZE - 1); |
80 payload.typeSpecific.Video.videoCodecType = | 82 payload.typeSpecific.Video.videoCodecType = |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 const char* payload_name) const { | 346 const char* payload_name) const { |
345 rtc::CritScope cs(&crit_sect_); | 347 rtc::CritScope cs(&crit_sect_); |
346 for (const auto& it : payload_type_map_) { | 348 for (const auto& it : payload_type_map_) { |
347 if (_stricmp(it.second.name, payload_name) == 0) | 349 if (_stricmp(it.second.name, payload_name) == 0) |
348 return it.first; | 350 return it.first; |
349 } | 351 } |
350 return -1; | 352 return -1; |
351 } | 353 } |
352 | 354 |
353 } // namespace webrtc | 355 } // namespace webrtc |
OLD | NEW |