Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_payload_registry.cc

Issue 1211353002: Integration of VP9 packetization. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: set ss data if not set Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 RtpUtility::Payload* CreatePayloadType( 426 RtpUtility::Payload* CreatePayloadType(
427 const char payloadName[RTP_PAYLOAD_NAME_SIZE], 427 const char payloadName[RTP_PAYLOAD_NAME_SIZE],
428 const int8_t payloadType, 428 const int8_t payloadType,
429 const uint32_t frequency, 429 const uint32_t frequency,
430 const uint8_t channels, 430 const uint8_t channels,
431 const uint32_t rate) const override { 431 const uint32_t rate) const override {
432 RtpVideoCodecTypes videoType = kRtpVideoGeneric; 432 RtpVideoCodecTypes videoType = kRtpVideoGeneric;
433 433
434 if (RtpUtility::StringCompare(payloadName, "VP8", 3)) { 434 if (RtpUtility::StringCompare(payloadName, "VP8", 3)) {
435 videoType = kRtpVideoVp8; 435 videoType = kRtpVideoVp8;
436 } else if (RtpUtility::StringCompare(payloadName, "VP9", 3)) {
437 videoType = kRtpVideoVp9;
436 } else if (RtpUtility::StringCompare(payloadName, "H264", 4)) { 438 } else if (RtpUtility::StringCompare(payloadName, "H264", 4)) {
437 videoType = kRtpVideoH264; 439 videoType = kRtpVideoH264;
438 } else if (RtpUtility::StringCompare(payloadName, "I420", 4)) { 440 } else if (RtpUtility::StringCompare(payloadName, "I420", 4)) {
439 videoType = kRtpVideoGeneric; 441 videoType = kRtpVideoGeneric;
440 } else if (RtpUtility::StringCompare(payloadName, "ULPFEC", 6) || 442 } else if (RtpUtility::StringCompare(payloadName, "ULPFEC", 6) ||
441 RtpUtility::StringCompare(payloadName, "RED", 3)) { 443 RtpUtility::StringCompare(payloadName, "RED", 3)) {
442 videoType = kRtpVideoNone; 444 videoType = kRtpVideoNone;
443 } else { 445 } else {
444 videoType = kRtpVideoGeneric; 446 videoType = kRtpVideoGeneric;
445 } 447 }
(...skipping 15 matching lines...) Expand all
461 RTPPayloadStrategy* RTPPayloadStrategy::CreateStrategy( 463 RTPPayloadStrategy* RTPPayloadStrategy::CreateStrategy(
462 const bool handling_audio) { 464 const bool handling_audio) {
463 if (handling_audio) { 465 if (handling_audio) {
464 return new RTPPayloadAudioStrategy(); 466 return new RTPPayloadAudioStrategy();
465 } else { 467 } else {
466 return new RTPPayloadVideoStrategy(); 468 return new RTPPayloadVideoStrategy();
467 } 469 }
468 } 470 }
469 471
470 } // namespace webrtc 472 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_format_vp9_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698