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

Side by Side Diff: webrtc/config.cc

Issue 2007743003: Add sender controlled playout delay limits (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@cleanup_rtp_hdr_extensions
Patch Set: Remove notion of max and current header length Created 4 years, 6 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) 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; 42 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time";
43 const int RtpExtension::kAbsSendTimeDefaultId = 3; 43 const int RtpExtension::kAbsSendTimeDefaultId = 3;
44 44
45 const char* RtpExtension::kVideoRotationUri = "urn:3gpp:video-orientation"; 45 const char* RtpExtension::kVideoRotationUri = "urn:3gpp:video-orientation";
46 const int RtpExtension::kVideoRotationDefaultId = 4; 46 const int RtpExtension::kVideoRotationDefaultId = 4;
47 47
48 const char* RtpExtension::kTransportSequenceNumberUri = 48 const char* RtpExtension::kTransportSequenceNumberUri =
49 "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"; 49 "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01";
50 const int RtpExtension::kTransportSequenceNumberDefaultId = 5; 50 const int RtpExtension::kTransportSequenceNumberDefaultId = 5;
51 51
52 // This extension allows applications to adaptively limit the playout delay
53 // on frames as per the current needs. For example, a gaming application
54 // has very different needs on end-to-end delay compared to a video-conference
55 // application.
56 const char* RtpExtension::kPlayoutDelayUri =
57 "http://www.webrtc.org/experiments/rtp-hdrext/playout-delay";
58 const int RtpExtension::kPlayoutDelayDefaultId = 6;
59
52 bool RtpExtension::IsSupportedForAudio(const std::string& uri) { 60 bool RtpExtension::IsSupportedForAudio(const std::string& uri) {
53 return uri == webrtc::RtpExtension::kAbsSendTimeUri || 61 return uri == webrtc::RtpExtension::kAbsSendTimeUri ||
54 uri == webrtc::RtpExtension::kAudioLevelUri || 62 uri == webrtc::RtpExtension::kAudioLevelUri ||
55 uri == webrtc::RtpExtension::kTransportSequenceNumberUri; 63 uri == webrtc::RtpExtension::kTransportSequenceNumberUri ||
64 uri == webrtc::RtpExtension::kPlayoutDelayUri;
danilchap 2016/06/03 09:01:37 for now this extension is not used for Audio, may
Irfan 2016/06/03 15:55:33 Done.
56 } 65 }
57 66
58 bool RtpExtension::IsSupportedForVideo(const std::string& uri) { 67 bool RtpExtension::IsSupportedForVideo(const std::string& uri) {
59 return uri == webrtc::RtpExtension::kTimestampOffsetUri || 68 return uri == webrtc::RtpExtension::kTimestampOffsetUri ||
60 uri == webrtc::RtpExtension::kAbsSendTimeUri || 69 uri == webrtc::RtpExtension::kAbsSendTimeUri ||
61 uri == webrtc::RtpExtension::kVideoRotationUri || 70 uri == webrtc::RtpExtension::kVideoRotationUri ||
62 uri == webrtc::RtpExtension::kTransportSequenceNumberUri; 71 uri == webrtc::RtpExtension::kTransportSequenceNumberUri ||
72 uri == webrtc::RtpExtension::kPlayoutDelayUri;
63 } 73 }
64 74
65 VideoStream::VideoStream() 75 VideoStream::VideoStream()
66 : width(0), 76 : width(0),
67 height(0), 77 height(0),
68 max_framerate(-1), 78 max_framerate(-1),
69 min_bitrate_bps(-1), 79 min_bitrate_bps(-1),
70 target_bitrate_bps(-1), 80 target_bitrate_bps(-1),
71 max_bitrate_bps(-1), 81 max_bitrate_bps(-1),
72 max_qp(-1) {} 82 max_qp(-1) {}
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 134 }
125 ss << ", encoder_specific_settings: "; 135 ss << ", encoder_specific_settings: ";
126 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL"); 136 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL");
127 137
128 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps; 138 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps;
129 ss << '}'; 139 ss << '}';
130 return ss.str(); 140 return ss.str();
131 } 141 }
132 142
133 } // namespace webrtc 143 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698