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

Side by Side Diff: webrtc/video/video_quality_test.cc

Issue 2911193002: Implement timing frames. (Closed)
Patch Set: Fix capture timestamp issues which cause capture time from the future 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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/video/video_quality_test.h" 10 #include "webrtc/video/video_quality_test.h"
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 if (params_.call.send_side_bwe) { 1298 if (params_.call.send_side_bwe) {
1299 video_send_config_.rtp.extensions.push_back( 1299 video_send_config_.rtp.extensions.push_back(
1300 RtpExtension(RtpExtension::kTransportSequenceNumberUri, 1300 RtpExtension(RtpExtension::kTransportSequenceNumberUri,
1301 test::kTransportSequenceNumberExtensionId)); 1301 test::kTransportSequenceNumberExtensionId));
1302 } else { 1302 } else {
1303 video_send_config_.rtp.extensions.push_back(RtpExtension( 1303 video_send_config_.rtp.extensions.push_back(RtpExtension(
1304 RtpExtension::kAbsSendTimeUri, test::kAbsSendTimeExtensionId)); 1304 RtpExtension::kAbsSendTimeUri, test::kAbsSendTimeExtensionId));
1305 } 1305 }
1306 video_send_config_.rtp.extensions.push_back(RtpExtension( 1306 video_send_config_.rtp.extensions.push_back(RtpExtension(
1307 RtpExtension::kVideoContentTypeUri, test::kVideoContentTypeExtensionId)); 1307 RtpExtension::kVideoContentTypeUri, test::kVideoContentTypeExtensionId));
1308 video_send_config_.rtp.extensions.push_back(RtpExtension(
1309 RtpExtension::kVideoTimingUri, test::kVideoTimingExtensionId));
1308 1310
1309 video_encoder_config_.min_transmit_bitrate_bps = 1311 video_encoder_config_.min_transmit_bitrate_bps =
1310 params_.video.min_transmit_bps; 1312 params_.video.min_transmit_bps;
1311 1313
1312 video_send_config_.suspend_below_min_bitrate = 1314 video_send_config_.suspend_below_min_bitrate =
1313 params_.video.suspend_below_min_bitrate; 1315 params_.video.suspend_below_min_bitrate;
1314 1316
1315 video_encoder_config_.number_of_streams = params_.ss.streams.size(); 1317 video_encoder_config_.number_of_streams = params_.ss.streams.size();
1316 video_encoder_config_.max_bitrate_bps = 0; 1318 video_encoder_config_.max_bitrate_bps = 0;
1317 for (size_t i = 0; i < params_.ss.streams.size(); ++i) { 1319 for (size_t i = 0; i < params_.ss.streams.size(); ++i) {
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 if (!params_.video.encoded_frame_base_path.empty()) { 1910 if (!params_.video.encoded_frame_base_path.empty()) {
1909 std::ostringstream str; 1911 std::ostringstream str;
1910 str << receive_logs_++; 1912 str << receive_logs_++;
1911 std::string path = 1913 std::string path =
1912 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; 1914 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf";
1913 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), 1915 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path),
1914 10000000); 1916 10000000);
1915 } 1917 }
1916 } 1918 }
1917 } // namespace webrtc 1919 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698