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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 RtpUtility::Payload* CreatePayloadType( | 425 RtpUtility::Payload* CreatePayloadType( |
426 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 426 const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
427 const int8_t payloadType, | 427 const int8_t payloadType, |
428 const uint32_t frequency, | 428 const uint32_t frequency, |
429 const uint8_t channels, | 429 const uint8_t channels, |
430 const uint32_t rate) const override { | 430 const uint32_t rate) const override { |
431 RtpVideoCodecTypes videoType = kRtpVideoGeneric; | 431 RtpVideoCodecTypes videoType = kRtpVideoGeneric; |
432 | 432 |
433 if (RtpUtility::StringCompare(payloadName, "VP8", 3)) { | 433 if (RtpUtility::StringCompare(payloadName, "VP8", 3)) { |
434 videoType = kRtpVideoVp8; | 434 videoType = kRtpVideoVp8; |
| 435 } else if (RtpUtility::StringCompare(payloadName, "VP9", 3)) { |
| 436 videoType = kRtpVideoVp9; |
435 } else if (RtpUtility::StringCompare(payloadName, "H264", 4)) { | 437 } else if (RtpUtility::StringCompare(payloadName, "H264", 4)) { |
436 videoType = kRtpVideoH264; | 438 videoType = kRtpVideoH264; |
437 } else if (RtpUtility::StringCompare(payloadName, "I420", 4)) { | 439 } else if (RtpUtility::StringCompare(payloadName, "I420", 4)) { |
438 videoType = kRtpVideoGeneric; | 440 videoType = kRtpVideoGeneric; |
439 } else if (RtpUtility::StringCompare(payloadName, "ULPFEC", 6) || | 441 } else if (RtpUtility::StringCompare(payloadName, "ULPFEC", 6) || |
440 RtpUtility::StringCompare(payloadName, "RED", 3)) { | 442 RtpUtility::StringCompare(payloadName, "RED", 3)) { |
441 videoType = kRtpVideoNone; | 443 videoType = kRtpVideoNone; |
442 } else { | 444 } else { |
443 videoType = kRtpVideoGeneric; | 445 videoType = kRtpVideoGeneric; |
444 } | 446 } |
(...skipping 15 matching lines...) Expand all Loading... |
460 RTPPayloadStrategy* RTPPayloadStrategy::CreateStrategy( | 462 RTPPayloadStrategy* RTPPayloadStrategy::CreateStrategy( |
461 const bool handling_audio) { | 463 const bool handling_audio) { |
462 if (handling_audio) { | 464 if (handling_audio) { |
463 return new RTPPayloadAudioStrategy(); | 465 return new RTPPayloadAudioStrategy(); |
464 } else { | 466 } else { |
465 return new RTPPayloadVideoStrategy(); | 467 return new RTPPayloadVideoStrategy(); |
466 } | 468 } |
467 } | 469 } |
468 | 470 |
469 } // namespace webrtc | 471 } // namespace webrtc |
OLD | NEW |