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

Side by Side Diff: webrtc/config.cc

Issue 1247293002: Add support for transport wide sequence numbers (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase, again 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
« no previous file with comments | « webrtc/config.h ('k') | webrtc/modules/bitrate_controller/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 #include "webrtc/config.h" 10 #include "webrtc/config.h"
(...skipping 17 matching lines...) Expand all
28 ss << '}'; 28 ss << '}';
29 return ss.str(); 29 return ss.str();
30 } 30 }
31 31
32 const char* RtpExtension::kTOffset = "urn:ietf:params:rtp-hdrext:toffset"; 32 const char* RtpExtension::kTOffset = "urn:ietf:params:rtp-hdrext:toffset";
33 const char* RtpExtension::kAbsSendTime = 33 const char* RtpExtension::kAbsSendTime =
34 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; 34 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time";
35 const char* RtpExtension::kVideoRotation = "urn:3gpp:video-orientation"; 35 const char* RtpExtension::kVideoRotation = "urn:3gpp:video-orientation";
36 const char* RtpExtension::kAudioLevel = 36 const char* RtpExtension::kAudioLevel =
37 "urn:ietf:params:rtp-hdrext:ssrc-audio-level"; 37 "urn:ietf:params:rtp-hdrext:ssrc-audio-level";
38 const char* RtpExtension::kTransportSequenceNumber =
39 "http://www.webrtc.org/experiments/rtp-hdrext/transport-sequence-number";
38 40
39 bool RtpExtension::IsSupportedForAudio(const std::string& name) { 41 bool RtpExtension::IsSupportedForAudio(const std::string& name) {
40 return name == webrtc::RtpExtension::kAbsSendTime || 42 return name == webrtc::RtpExtension::kAbsSendTime ||
41 name == webrtc::RtpExtension::kAudioLevel; 43 name == webrtc::RtpExtension::kAudioLevel ||
44 name == webrtc::RtpExtension::kTransportSequenceNumber;
42 } 45 }
43 46
44 bool RtpExtension::IsSupportedForVideo(const std::string& name) { 47 bool RtpExtension::IsSupportedForVideo(const std::string& name) {
45 return name == webrtc::RtpExtension::kTOffset || 48 return name == webrtc::RtpExtension::kTOffset ||
46 name == webrtc::RtpExtension::kAbsSendTime || 49 name == webrtc::RtpExtension::kAbsSendTime ||
47 name == webrtc::RtpExtension::kVideoRotation; 50 name == webrtc::RtpExtension::kVideoRotation ||
51 name == webrtc::RtpExtension::kTransportSequenceNumber;
48 } 52 }
49 53
50 VideoStream::VideoStream() 54 VideoStream::VideoStream()
51 : width(0), 55 : width(0),
52 height(0), 56 height(0),
53 max_framerate(-1), 57 max_framerate(-1),
54 min_bitrate_bps(-1), 58 min_bitrate_bps(-1),
55 target_bitrate_bps(-1), 59 target_bitrate_bps(-1),
56 max_bitrate_bps(-1), 60 max_bitrate_bps(-1),
57 max_qp(-1) {} 61 max_qp(-1) {}
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 113 }
110 ss << ", encoder_specific_settings: "; 114 ss << ", encoder_specific_settings: ";
111 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL"); 115 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL");
112 116
113 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps; 117 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps;
114 ss << '}'; 118 ss << '}';
115 return ss.str(); 119 return ss.str();
116 } 120 }
117 121
118 } // namespace webrtc 122 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/config.h ('k') | webrtc/modules/bitrate_controller/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698