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

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

Issue 2870123002: Fixing video loopback test with encoder factory. (Closed)
Patch Set: Created 3 years, 7 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 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 test::kTransportSequenceNumberExtensionId)); 1729 test::kTransportSequenceNumberExtensionId));
1730 audio_send_config_.min_bitrate_bps = kOpusMinBitrateBps; 1730 audio_send_config_.min_bitrate_bps = kOpusMinBitrateBps;
1731 audio_send_config_.max_bitrate_bps = kOpusBitrateFbBps; 1731 audio_send_config_.max_bitrate_bps = kOpusBitrateFbBps;
1732 } 1732 }
1733 audio_send_config_.send_codec_spec = 1733 audio_send_config_.send_codec_spec =
1734 rtc::Optional<AudioSendStream::Config::SendCodecSpec>( 1734 rtc::Optional<AudioSendStream::Config::SendCodecSpec>(
1735 {kAudioSendPayloadType, 1735 {kAudioSendPayloadType,
1736 {"OPUS", 48000, 2, 1736 {"OPUS", 48000, 2,
1737 {{"usedtx", (params_.audio.dtx ? "1" : "0")}, 1737 {{"usedtx", (params_.audio.dtx ? "1" : "0")},
1738 {"stereo", "1"}}}}); 1738 {"stereo", "1"}}}});
1739 1739 audio_send_config_.encoder_factory = encoder_factory_;
1740 audio_send_stream_ = call->CreateAudioSendStream(audio_send_config_); 1740 audio_send_stream_ = call->CreateAudioSendStream(audio_send_config_);
1741 1741
1742 AudioReceiveStream::Config audio_config; 1742 AudioReceiveStream::Config audio_config;
1743 audio_config.rtp.local_ssrc = kReceiverLocalAudioSsrc; 1743 audio_config.rtp.local_ssrc = kReceiverLocalAudioSsrc;
1744 audio_config.rtcp_send_transport = transport; 1744 audio_config.rtcp_send_transport = transport;
1745 audio_config.voe_channel_id = receive_channel_id; 1745 audio_config.voe_channel_id = receive_channel_id;
1746 audio_config.rtp.remote_ssrc = audio_send_config_.rtp.ssrc; 1746 audio_config.rtp.remote_ssrc = audio_send_config_.rtp.ssrc;
1747 audio_config.rtp.transport_cc = params_.call.send_side_bwe; 1747 audio_config.rtp.transport_cc = params_.call.send_side_bwe;
1748 audio_config.rtp.extensions = audio_send_config_.rtp.extensions; 1748 audio_config.rtp.extensions = audio_send_config_.rtp.extensions;
1749 audio_config.decoder_factory = decoder_factory_; 1749 audio_config.decoder_factory = decoder_factory_;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 if (!params_.video.encoded_frame_base_path.empty()) { 1908 if (!params_.video.encoded_frame_base_path.empty()) {
1909 std::ostringstream str; 1909 std::ostringstream str;
1910 str << receive_logs_++; 1910 str << receive_logs_++;
1911 std::string path = 1911 std::string path =
1912 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; 1912 params_.video.encoded_frame_base_path + "." + str.str() + ".recv.ivf";
1913 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), 1913 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path),
1914 10000000); 1914 10000000);
1915 } 1915 }
1916 } 1916 }
1917 } // namespace webrtc 1917 } // namespace webrtc
OLDNEW
« webrtc/audio/audio_send_stream.cc ('K') | « webrtc/audio/audio_send_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698