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

Side by Side Diff: webrtc/config.cc

Issue 2911193002: Implement timing frames. (Closed)
Patch Set: Implement Holmer@ comments Created 3 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
« no previous file with comments | « webrtc/config.h ('k') | webrtc/media/engine/webrtcvideoengine.cc » ('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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // 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
70 // application. 70 // application.
71 const char* RtpExtension::kPlayoutDelayUri = 71 const char* RtpExtension::kPlayoutDelayUri =
72 "http://www.webrtc.org/experiments/rtp-hdrext/playout-delay"; 72 "http://www.webrtc.org/experiments/rtp-hdrext/playout-delay";
73 const int RtpExtension::kPlayoutDelayDefaultId = 6; 73 const int RtpExtension::kPlayoutDelayDefaultId = 6;
74 74
75 const char* RtpExtension::kVideoContentTypeUri = 75 const char* RtpExtension::kVideoContentTypeUri =
76 "http://www.webrtc.org/experiments/rtp-hdrext/video-content-type"; 76 "http://www.webrtc.org/experiments/rtp-hdrext/video-content-type";
77 const int RtpExtension::kVideoContentTypeDefaultId = 7; 77 const int RtpExtension::kVideoContentTypeDefaultId = 7;
78 78
79 const char* RtpExtension::kVideoTimingUri =
80 "http://www.webrtc.org/experiments/rtp-hdrext/video-timing";
81 const int RtpExtension::kVideoTimingDefaultId = 8;
82
79 const int RtpExtension::kMinId = 1; 83 const int RtpExtension::kMinId = 1;
80 const int RtpExtension::kMaxId = 14; 84 const int RtpExtension::kMaxId = 14;
81 85
82 bool RtpExtension::IsSupportedForAudio(const std::string& uri) { 86 bool RtpExtension::IsSupportedForAudio(const std::string& uri) {
83 return uri == webrtc::RtpExtension::kAudioLevelUri || 87 return uri == webrtc::RtpExtension::kAudioLevelUri ||
84 uri == webrtc::RtpExtension::kTransportSequenceNumberUri; 88 uri == webrtc::RtpExtension::kTransportSequenceNumberUri;
85 } 89 }
86 90
87 bool RtpExtension::IsSupportedForVideo(const std::string& uri) { 91 bool RtpExtension::IsSupportedForVideo(const std::string& uri) {
88 return uri == webrtc::RtpExtension::kTimestampOffsetUri || 92 return uri == webrtc::RtpExtension::kTimestampOffsetUri ||
89 uri == webrtc::RtpExtension::kAbsSendTimeUri || 93 uri == webrtc::RtpExtension::kAbsSendTimeUri ||
90 uri == webrtc::RtpExtension::kVideoRotationUri || 94 uri == webrtc::RtpExtension::kVideoRotationUri ||
91 uri == webrtc::RtpExtension::kTransportSequenceNumberUri || 95 uri == webrtc::RtpExtension::kTransportSequenceNumberUri ||
92 uri == webrtc::RtpExtension::kPlayoutDelayUri || 96 uri == webrtc::RtpExtension::kPlayoutDelayUri ||
93 uri == webrtc::RtpExtension::kVideoContentTypeUri; 97 uri == webrtc::RtpExtension::kVideoContentTypeUri ||
98 uri == webrtc::RtpExtension::kVideoTimingUri;
94 } 99 }
95 100
96 VideoStream::VideoStream() 101 VideoStream::VideoStream()
97 : width(0), 102 : width(0),
98 height(0), 103 height(0),
99 max_framerate(-1), 104 max_framerate(-1),
100 min_bitrate_bps(-1), 105 min_bitrate_bps(-1),
101 target_bitrate_bps(-1), 106 target_bitrate_bps(-1),
102 max_bitrate_bps(-1), 107 max_bitrate_bps(-1),
103 max_qp(-1) {} 108 max_qp(-1) {}
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 VideoEncoderConfig::Vp9EncoderSpecificSettings::Vp9EncoderSpecificSettings( 212 VideoEncoderConfig::Vp9EncoderSpecificSettings::Vp9EncoderSpecificSettings(
208 const VideoCodecVP9& specifics) 213 const VideoCodecVP9& specifics)
209 : specifics_(specifics) {} 214 : specifics_(specifics) {}
210 215
211 void VideoEncoderConfig::Vp9EncoderSpecificSettings::FillVideoCodecVp9( 216 void VideoEncoderConfig::Vp9EncoderSpecificSettings::FillVideoCodecVp9(
212 VideoCodecVP9* vp9_settings) const { 217 VideoCodecVP9* vp9_settings) const {
213 *vp9_settings = specifics_; 218 *vp9_settings = specifics_;
214 } 219 }
215 220
216 } // namespace webrtc 221 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/config.h ('k') | webrtc/media/engine/webrtcvideoengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698