OLD | NEW |
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 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 video_encoder_config_.spatial_layers = params_.ss.spatial_layers; | 1473 video_encoder_config_.spatial_layers = params_.ss.spatial_layers; |
1474 | 1474 |
1475 CreateMatchingReceiveConfigs(recv_transport); | 1475 CreateMatchingReceiveConfigs(recv_transport); |
1476 | 1476 |
1477 const bool decode_all_receive_streams = | 1477 const bool decode_all_receive_streams = |
1478 params_.ss.selected_stream == params_.ss.streams.size(); | 1478 params_.ss.selected_stream == params_.ss.streams.size(); |
1479 | 1479 |
1480 for (size_t i = 0; i < num_video_streams; ++i) { | 1480 for (size_t i = 0; i < num_video_streams; ++i) { |
1481 video_receive_configs_[i].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; | 1481 video_receive_configs_[i].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; |
1482 video_receive_configs_[i].rtp.rtx_ssrc = kSendRtxSsrcs[i]; | 1482 video_receive_configs_[i].rtp.rtx_ssrc = kSendRtxSsrcs[i]; |
1483 video_receive_configs_[i].rtp.rtx_payload_types[payload_type] = | 1483 video_receive_configs_[i].rtp.media_pt_by_rtx_pt[kSendRtxPayloadType] = |
1484 kSendRtxPayloadType; | 1484 payload_type; |
1485 video_receive_configs_[i].rtp.transport_cc = params_.call.send_side_bwe; | 1485 video_receive_configs_[i].rtp.transport_cc = params_.call.send_side_bwe; |
1486 video_receive_configs_[i].rtp.remb = !params_.call.send_side_bwe; | 1486 video_receive_configs_[i].rtp.remb = !params_.call.send_side_bwe; |
1487 // Enable RTT calculation so NTP time estimator will work. | 1487 // Enable RTT calculation so NTP time estimator will work. |
1488 video_receive_configs_[i].rtp.rtcp_xr.receiver_reference_time_report = true; | 1488 video_receive_configs_[i].rtp.rtcp_xr.receiver_reference_time_report = true; |
1489 // Force fake decoders on non-selected simulcast streams. | 1489 // Force fake decoders on non-selected simulcast streams. |
1490 if (!decode_all_receive_streams && i != params_.ss.selected_stream) { | 1490 if (!decode_all_receive_streams && i != params_.ss.selected_stream) { |
1491 VideoReceiveStream::Decoder decoder; | 1491 VideoReceiveStream::Decoder decoder; |
1492 decoder.decoder = new test::FakeDecoder(); | 1492 decoder.decoder = new test::FakeDecoder(); |
1493 decoder.payload_type = video_send_config_.encoder_settings.payload_type; | 1493 decoder.payload_type = video_send_config_.encoder_settings.payload_type; |
1494 decoder.payload_name = video_send_config_.encoder_settings.payload_name; | 1494 decoder.payload_name = video_send_config_.encoder_settings.payload_name; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 test::CreateMatchingDecoder(thumbnail_send_config.encoder_settings); | 1616 test::CreateMatchingDecoder(thumbnail_send_config.encoder_settings); |
1617 allocated_decoders_.push_back( | 1617 allocated_decoders_.push_back( |
1618 std::unique_ptr<VideoDecoder>(decoder.decoder)); | 1618 std::unique_ptr<VideoDecoder>(decoder.decoder)); |
1619 thumbnail_receive_config.decoders.clear(); | 1619 thumbnail_receive_config.decoders.clear(); |
1620 thumbnail_receive_config.decoders.push_back(decoder); | 1620 thumbnail_receive_config.decoders.push_back(decoder); |
1621 thumbnail_receive_config.rtp.remote_ssrc = | 1621 thumbnail_receive_config.rtp.remote_ssrc = |
1622 thumbnail_send_config.rtp.ssrcs[0]; | 1622 thumbnail_send_config.rtp.ssrcs[0]; |
1623 | 1623 |
1624 thumbnail_receive_config.rtp.nack.rtp_history_ms = kNackRtpHistoryMs; | 1624 thumbnail_receive_config.rtp.nack.rtp_history_ms = kNackRtpHistoryMs; |
1625 thumbnail_receive_config.rtp.rtx_ssrc = kThumbnailRtxSsrcStart + i; | 1625 thumbnail_receive_config.rtp.rtx_ssrc = kThumbnailRtxSsrcStart + i; |
1626 thumbnail_receive_config.rtp.rtx_payload_types[kPayloadTypeVP8] = | 1626 thumbnail_receive_config.rtp.media_pt_by_rtx_pt[kSendRtxPayloadType] = |
1627 kSendRtxPayloadType; | 1627 kPayloadTypeVP8; |
1628 thumbnail_receive_config.rtp.transport_cc = params_.call.send_side_bwe; | 1628 thumbnail_receive_config.rtp.transport_cc = params_.call.send_side_bwe; |
1629 thumbnail_receive_config.rtp.remb = !params_.call.send_side_bwe; | 1629 thumbnail_receive_config.rtp.remb = !params_.call.send_side_bwe; |
1630 | 1630 |
1631 thumbnail_encoder_configs_.push_back(thumbnail_encoder_config.Copy()); | 1631 thumbnail_encoder_configs_.push_back(thumbnail_encoder_config.Copy()); |
1632 thumbnail_send_configs_.push_back(thumbnail_send_config.Copy()); | 1632 thumbnail_send_configs_.push_back(thumbnail_send_config.Copy()); |
1633 thumbnail_receive_configs_.push_back(thumbnail_receive_config.Copy()); | 1633 thumbnail_receive_configs_.push_back(thumbnail_receive_config.Copy()); |
1634 } | 1634 } |
1635 | 1635 |
1636 for (int i = 0; i < params_.call.num_thumbnails; ++i) { | 1636 for (int i = 0; i < params_.call.num_thumbnails; ++i) { |
1637 thumbnail_send_streams_.push_back(receiver_call_->CreateVideoSendStream( | 1637 thumbnail_send_streams_.push_back(receiver_call_->CreateVideoSendStream( |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2119 if (!params_.logging.encoded_frame_base_path.empty()) { | 2119 if (!params_.logging.encoded_frame_base_path.empty()) { |
2120 std::ostringstream str; | 2120 std::ostringstream str; |
2121 str << receive_logs_++; | 2121 str << receive_logs_++; |
2122 std::string path = | 2122 std::string path = |
2123 params_.logging.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; | 2123 params_.logging.encoded_frame_base_path + "." + str.str() + ".recv.ivf"; |
2124 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), | 2124 stream->EnableEncodedFrameRecording(rtc::CreatePlatformFile(path), |
2125 100000000); | 2125 100000000); |
2126 } | 2126 } |
2127 } | 2127 } |
2128 } // namespace webrtc | 2128 } // namespace webrtc |
OLD | NEW |