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

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

Issue 3000273002: Reverse |rtx_payload_types| map, and rename. (Closed)
Patch Set: Rebased. Created 3 years, 3 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/video/rtp_video_stream_receiver.cc ('k') | no next file » | 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 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1477 video_encoder_config_.spatial_layers = params_.ss.spatial_layers; 1477 video_encoder_config_.spatial_layers = params_.ss.spatial_layers;
1478 1478
1479 CreateMatchingReceiveConfigs(recv_transport); 1479 CreateMatchingReceiveConfigs(recv_transport);
1480 1480
1481 const bool decode_all_receive_streams = 1481 const bool decode_all_receive_streams =
1482 params_.ss.selected_stream == params_.ss.streams.size(); 1482 params_.ss.selected_stream == params_.ss.streams.size();
1483 1483
1484 for (size_t i = 0; i < num_video_streams; ++i) { 1484 for (size_t i = 0; i < num_video_streams; ++i) {
1485 video_receive_configs_[i].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; 1485 video_receive_configs_[i].rtp.nack.rtp_history_ms = kNackRtpHistoryMs;
1486 video_receive_configs_[i].rtp.rtx_ssrc = kSendRtxSsrcs[i]; 1486 video_receive_configs_[i].rtp.rtx_ssrc = kSendRtxSsrcs[i];
1487 video_receive_configs_[i].rtp.rtx_payload_types[payload_type] = 1487 video_receive_configs_[i]
1488 kSendRtxPayloadType; 1488 .rtp.rtx_associated_payload_types[kSendRtxPayloadType] = payload_type;
1489 video_receive_configs_[i].rtp.transport_cc = params_.call.send_side_bwe; 1489 video_receive_configs_[i].rtp.transport_cc = params_.call.send_side_bwe;
1490 video_receive_configs_[i].rtp.remb = !params_.call.send_side_bwe; 1490 video_receive_configs_[i].rtp.remb = !params_.call.send_side_bwe;
1491 // Enable RTT calculation so NTP time estimator will work. 1491 // Enable RTT calculation so NTP time estimator will work.
1492 video_receive_configs_[i].rtp.rtcp_xr.receiver_reference_time_report = true; 1492 video_receive_configs_[i].rtp.rtcp_xr.receiver_reference_time_report = true;
1493 // Force fake decoders on non-selected simulcast streams. 1493 // Force fake decoders on non-selected simulcast streams.
1494 if (!decode_all_receive_streams && i != params_.ss.selected_stream) { 1494 if (!decode_all_receive_streams && i != params_.ss.selected_stream) {
1495 VideoReceiveStream::Decoder decoder; 1495 VideoReceiveStream::Decoder decoder;
1496 decoder.decoder = new test::FakeDecoder(); 1496 decoder.decoder = new test::FakeDecoder();
1497 decoder.payload_type = video_send_config_.encoder_settings.payload_type; 1497 decoder.payload_type = video_send_config_.encoder_settings.payload_type;
1498 decoder.payload_name = video_send_config_.encoder_settings.payload_name; 1498 decoder.payload_name = video_send_config_.encoder_settings.payload_name;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1620 test::CreateMatchingDecoder(thumbnail_send_config.encoder_settings); 1620 test::CreateMatchingDecoder(thumbnail_send_config.encoder_settings);
1621 allocated_decoders_.push_back( 1621 allocated_decoders_.push_back(
1622 std::unique_ptr<VideoDecoder>(decoder.decoder)); 1622 std::unique_ptr<VideoDecoder>(decoder.decoder));
1623 thumbnail_receive_config.decoders.clear(); 1623 thumbnail_receive_config.decoders.clear();
1624 thumbnail_receive_config.decoders.push_back(decoder); 1624 thumbnail_receive_config.decoders.push_back(decoder);
1625 thumbnail_receive_config.rtp.remote_ssrc = 1625 thumbnail_receive_config.rtp.remote_ssrc =
1626 thumbnail_send_config.rtp.ssrcs[0]; 1626 thumbnail_send_config.rtp.ssrcs[0];
1627 1627
1628 thumbnail_receive_config.rtp.nack.rtp_history_ms = kNackRtpHistoryMs; 1628 thumbnail_receive_config.rtp.nack.rtp_history_ms = kNackRtpHistoryMs;
1629 thumbnail_receive_config.rtp.rtx_ssrc = kThumbnailRtxSsrcStart + i; 1629 thumbnail_receive_config.rtp.rtx_ssrc = kThumbnailRtxSsrcStart + i;
1630 thumbnail_receive_config.rtp.rtx_payload_types[kPayloadTypeVP8] = 1630 thumbnail_receive_config.rtp
1631 kSendRtxPayloadType; 1631 .rtx_associated_payload_types[kSendRtxPayloadType] = kPayloadTypeVP8;
1632 thumbnail_receive_config.rtp.transport_cc = params_.call.send_side_bwe; 1632 thumbnail_receive_config.rtp.transport_cc = params_.call.send_side_bwe;
1633 thumbnail_receive_config.rtp.remb = !params_.call.send_side_bwe; 1633 thumbnail_receive_config.rtp.remb = !params_.call.send_side_bwe;
1634 1634
1635 thumbnail_encoder_configs_.push_back(thumbnail_encoder_config.Copy()); 1635 thumbnail_encoder_configs_.push_back(thumbnail_encoder_config.Copy());
1636 thumbnail_send_configs_.push_back(thumbnail_send_config.Copy()); 1636 thumbnail_send_configs_.push_back(thumbnail_send_config.Copy());
1637 thumbnail_receive_configs_.push_back(thumbnail_receive_config.Copy()); 1637 thumbnail_receive_configs_.push_back(thumbnail_receive_config.Copy());
1638 } 1638 }
1639 1639
1640 for (int i = 0; i < params_.call.num_thumbnails; ++i) { 1640 for (int i = 0; i < params_.call.num_thumbnails; ++i) {
1641 thumbnail_send_streams_.push_back(receiver_call_->CreateVideoSendStream( 1641 thumbnail_send_streams_.push_back(receiver_call_->CreateVideoSendStream(
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
2159 if (!params_.logging.encoded_frame_base_path.empty()) { 2159 if (!params_.logging.encoded_frame_base_path.empty()) {
2160 std::ostringstream str; 2160 std::ostringstream str;
2161 str << receive_logs_++; 2161 str << receive_logs_++;
2162 std::string path = 2162 std::string path =
2163 params_.logging.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; 2163 params_.logging.encoded_frame_base_path + "." + str.str() + ".recv.ivf";
2164 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), 2164 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path),
2165 100000000); 2165 100000000);
2166 } 2166 }
2167 } 2167 }
2168 } // namespace webrtc 2168 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/rtp_video_stream_receiver.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698