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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; | 57 "http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"; |
58 const int RtpExtension::kAbsSendTimeDefaultId = 3; | 58 const int RtpExtension::kAbsSendTimeDefaultId = 3; |
59 | 59 |
60 const char* RtpExtension::kVideoRotationUri = "urn:3gpp:video-orientation"; | 60 const char* RtpExtension::kVideoRotationUri = "urn:3gpp:video-orientation"; |
61 const int RtpExtension::kVideoRotationDefaultId = 4; | 61 const int RtpExtension::kVideoRotationDefaultId = 4; |
62 | 62 |
63 const char* RtpExtension::kTransportSequenceNumberUri = | 63 const char* RtpExtension::kTransportSequenceNumberUri = |
64 "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"; | 64 "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"; |
65 const int RtpExtension::kTransportSequenceNumberDefaultId = 5; | 65 const int RtpExtension::kTransportSequenceNumberDefaultId = 5; |
66 | 66 |
67 const char* RtpExtension::kVideoContentTypeUri = | |
68 "http://www.webrtc.org/experiments/rtp-hdrext/video-content-type"; | |
69 const int RtpExtension::kVideoContentTypeDefaultId = 6; | |
70 | |
71 // This extension allows applications to adaptively limit the playout delay | 67 // This extension allows applications to adaptively limit the playout delay |
72 // on frames as per the current needs. For example, a gaming application | 68 // on frames as per the current needs. For example, a gaming application |
73 // has very different needs on end-to-end delay compared to a video-conference | 69 // has very different needs on end-to-end delay compared to a video-conference |
74 // application. | 70 // application. |
75 const char* RtpExtension::kPlayoutDelayUri = | 71 const char* RtpExtension::kPlayoutDelayUri = |
76 "http://www.webrtc.org/experiments/rtp-hdrext/playout-delay"; | 72 "http://www.webrtc.org/experiments/rtp-hdrext/playout-delay"; |
77 const int RtpExtension::kPlayoutDelayDefaultId = 6; | 73 const int RtpExtension::kPlayoutDelayDefaultId = 6; |
78 | 74 |
| 75 const char* RtpExtension::kVideoContentTypeUri = |
| 76 "http://www.webrtc.org/experiments/rtp-hdrext/video-content-type"; |
| 77 const int RtpExtension::kVideoContentTypeDefaultId = 7; |
| 78 |
79 const int RtpExtension::kMinId = 1; | 79 const int RtpExtension::kMinId = 1; |
80 const int RtpExtension::kMaxId = 14; | 80 const int RtpExtension::kMaxId = 14; |
81 | 81 |
82 bool RtpExtension::IsSupportedForAudio(const std::string& uri) { | 82 bool RtpExtension::IsSupportedForAudio(const std::string& uri) { |
83 return uri == webrtc::RtpExtension::kAudioLevelUri || | 83 return uri == webrtc::RtpExtension::kAudioLevelUri || |
84 uri == webrtc::RtpExtension::kTransportSequenceNumberUri; | 84 uri == webrtc::RtpExtension::kTransportSequenceNumberUri; |
85 } | 85 } |
86 | 86 |
87 bool RtpExtension::IsSupportedForVideo(const std::string& uri) { | 87 bool RtpExtension::IsSupportedForVideo(const std::string& uri) { |
88 return uri == webrtc::RtpExtension::kTimestampOffsetUri || | 88 return uri == webrtc::RtpExtension::kTimestampOffsetUri || |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 VideoEncoderConfig::Vp9EncoderSpecificSettings::Vp9EncoderSpecificSettings( | 207 VideoEncoderConfig::Vp9EncoderSpecificSettings::Vp9EncoderSpecificSettings( |
208 const VideoCodecVP9& specifics) | 208 const VideoCodecVP9& specifics) |
209 : specifics_(specifics) {} | 209 : specifics_(specifics) {} |
210 | 210 |
211 void VideoEncoderConfig::Vp9EncoderSpecificSettings::FillVideoCodecVp9( | 211 void VideoEncoderConfig::Vp9EncoderSpecificSettings::FillVideoCodecVp9( |
212 VideoCodecVP9* vp9_settings) const { | 212 VideoCodecVP9* vp9_settings) const { |
213 *vp9_settings = specifics_; | 213 *vp9_settings = specifics_; |
214 } | 214 } |
215 | 215 |
216 } // namespace webrtc | 216 } // namespace webrtc |
OLD | NEW |