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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 switch (type) { | 62 switch (type) { |
63 case kVideoCodecVP8: | 63 case kVideoCodecVP8: |
64 return kRtpVideoVp8; | 64 return kRtpVideoVp8; |
65 case kVideoCodecVP9: | 65 case kVideoCodecVP9: |
66 return kRtpVideoVp9; | 66 return kRtpVideoVp9; |
67 case kVideoCodecH264: | 67 case kVideoCodecH264: |
68 return kRtpVideoH264; | 68 return kRtpVideoH264; |
69 case kVideoCodecRED: | 69 case kVideoCodecRED: |
70 case kVideoCodecULPFEC: | 70 case kVideoCodecULPFEC: |
71 return kRtpVideoNone; | 71 return kRtpVideoNone; |
| 72 case kVideoCodecStereo: |
| 73 return kRtpVideoStereo; |
72 default: | 74 default: |
73 return kRtpVideoGeneric; | 75 return kRtpVideoGeneric; |
74 } | 76 } |
75 } | 77 } |
76 | 78 |
77 RtpUtility::Payload CreatePayloadType(const VideoCodec& video_codec) { | 79 RtpUtility::Payload CreatePayloadType(const VideoCodec& video_codec) { |
78 RtpUtility::Payload payload; | 80 RtpUtility::Payload payload; |
79 payload.name[RTP_PAYLOAD_NAME_SIZE - 1] = 0; | 81 payload.name[RTP_PAYLOAD_NAME_SIZE - 1] = 0; |
80 strncpy(payload.name, video_codec.plName, RTP_PAYLOAD_NAME_SIZE - 1); | 82 strncpy(payload.name, video_codec.plName, RTP_PAYLOAD_NAME_SIZE - 1); |
81 payload.typeSpecific.Video.videoCodecType = | 83 payload.typeSpecific.Video.videoCodecType = |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 const char* payload_name) const { | 424 const char* payload_name) const { |
423 rtc::CritScope cs(&crit_sect_); | 425 rtc::CritScope cs(&crit_sect_); |
424 for (const auto& it : payload_type_map_) { | 426 for (const auto& it : payload_type_map_) { |
425 if (_stricmp(it.second.name, payload_name) == 0) | 427 if (_stricmp(it.second.name, payload_name) == 0) |
426 return it.first; | 428 return it.first; |
427 } | 429 } |
428 return -1; | 430 return -1; |
429 } | 431 } |
430 | 432 |
431 } // namespace webrtc | 433 } // namespace webrtc |
OLD | NEW |