| OLD | NEW |
| 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 Loading... |
| 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; |
| 56 } | 64 } |
| 57 | 65 |
| 58 bool RtpExtension::IsSupportedForVideo(const std::string& uri) { | 66 bool RtpExtension::IsSupportedForVideo(const std::string& uri) { |
| 59 return uri == webrtc::RtpExtension::kTimestampOffsetUri || | 67 return uri == webrtc::RtpExtension::kTimestampOffsetUri || |
| 60 uri == webrtc::RtpExtension::kAbsSendTimeUri || | 68 uri == webrtc::RtpExtension::kAbsSendTimeUri || |
| 61 uri == webrtc::RtpExtension::kVideoRotationUri || | 69 uri == webrtc::RtpExtension::kVideoRotationUri || |
| 62 uri == webrtc::RtpExtension::kTransportSequenceNumberUri; | 70 uri == webrtc::RtpExtension::kTransportSequenceNumberUri || |
| 71 uri == webrtc::RtpExtension::kPlayoutDelayUri; |
| 63 } | 72 } |
| 64 | 73 |
| 65 VideoStream::VideoStream() | 74 VideoStream::VideoStream() |
| 66 : width(0), | 75 : width(0), |
| 67 height(0), | 76 height(0), |
| 68 max_framerate(-1), | 77 max_framerate(-1), |
| 69 min_bitrate_bps(-1), | 78 min_bitrate_bps(-1), |
| 70 target_bitrate_bps(-1), | 79 target_bitrate_bps(-1), |
| 71 max_bitrate_bps(-1), | 80 max_bitrate_bps(-1), |
| 72 max_qp(-1) {} | 81 max_qp(-1) {} |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 } | 133 } |
| 125 ss << ", encoder_specific_settings: "; | 134 ss << ", encoder_specific_settings: "; |
| 126 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL"); | 135 ss << (encoder_specific_settings != NULL ? "(ptr)" : "NULL"); |
| 127 | 136 |
| 128 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps; | 137 ss << ", min_transmit_bitrate_bps: " << min_transmit_bitrate_bps; |
| 129 ss << '}'; | 138 ss << '}'; |
| 130 return ss.str(); | 139 return ss.str(); |
| 131 } | 140 } |
| 132 | 141 |
| 133 } // namespace webrtc | 142 } // namespace webrtc |
| OLD | NEW |