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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 const char* payload_name) const { | 364 const char* payload_name) const { |
363 rtc::CritScope cs(&crit_sect_); | 365 rtc::CritScope cs(&crit_sect_); |
364 for (const auto& it : payload_type_map_) { | 366 for (const auto& it : payload_type_map_) { |
365 if (_stricmp(it.second.name, payload_name) == 0) | 367 if (_stricmp(it.second.name, payload_name) == 0) |
366 return it.first; | 368 return it.first; |
367 } | 369 } |
368 return -1; | 370 return -1; |
369 } | 371 } |
370 | 372 |
371 } // namespace webrtc | 373 } // namespace webrtc |
OLD | NEW |