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

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

Issue 2500943002: Add FlexFEC to CallTest. (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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/video/end_to_end_tests.cc ('k') | webrtc/video/video_send_stream_tests.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) 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 params->ss.spatial_layers.push_back(layer); 994 params->ss.spatial_layers.push_back(layer);
995 } 995 }
996 } 996 }
997 997
998 void VideoQualityTest::SetupVideo(Transport* send_transport, 998 void VideoQualityTest::SetupVideo(Transport* send_transport,
999 Transport* recv_transport) { 999 Transport* recv_transport) {
1000 if (params_.logs) 1000 if (params_.logs)
1001 trace_to_stderr_.reset(new test::TraceToStderr); 1001 trace_to_stderr_.reset(new test::TraceToStderr);
1002 1002
1003 size_t num_streams = params_.ss.streams.size(); 1003 size_t num_streams = params_.ss.streams.size();
1004 CreateSendConfig(num_streams, 0, send_transport); 1004 CreateSendConfig(num_streams, 0, 0, send_transport);
1005 1005
1006 int payload_type; 1006 int payload_type;
1007 if (params_.video.codec == "H264") { 1007 if (params_.video.codec == "H264") {
1008 video_encoder_.reset(VideoEncoder::Create(VideoEncoder::kH264)); 1008 video_encoder_.reset(VideoEncoder::Create(VideoEncoder::kH264));
1009 payload_type = kPayloadTypeH264; 1009 payload_type = kPayloadTypeH264;
1010 } else if (params_.video.codec == "VP8") { 1010 } else if (params_.video.codec == "VP8") {
1011 video_encoder_.reset(VideoEncoder::Create(VideoEncoder::kVp8)); 1011 video_encoder_.reset(VideoEncoder::Create(VideoEncoder::kVp8));
1012 payload_type = kPayloadTypeVP8; 1012 payload_type = kPayloadTypeVP8;
1013 } else if (params_.video.codec == "VP9") { 1013 } else if (params_.video.codec == "VP9") {
1014 video_encoder_.reset(VideoEncoder::Create(VideoEncoder::kVp9)); 1014 video_encoder_.reset(VideoEncoder::Create(VideoEncoder::kVp9));
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 std::ostringstream str; 1448 std::ostringstream str;
1449 str << receive_logs_++; 1449 str << receive_logs_++;
1450 std::string path = 1450 std::string path =
1451 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; 1451 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf";
1452 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), 1452 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path),
1453 10000000); 1453 10000000);
1454 } 1454 }
1455 } 1455 }
1456 1456
1457 } // namespace webrtc 1457 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/video_send_stream_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698