/external/webrtc/webrtc/video/ |
D | vie_remb_unittest.cc | 53 std::vector<unsigned int> ssrcs(&ssrc, &ssrc + 1); in TEST_F() local 55 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate); in TEST_F() 58 EXPECT_CALL(rtp, SetREMBData(bitrate_estimate, ssrcs)) in TEST_F() 60 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate); in TEST_F() 63 EXPECT_CALL(rtp, SetREMBData(bitrate_estimate - 100, ssrcs)) in TEST_F() 65 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate - 100); in TEST_F() 78 std::vector<unsigned int> ssrcs(&ssrc, &ssrc + 1); in TEST_F() local 80 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate); in TEST_F() 83 EXPECT_CALL(rtp, SetREMBData(bitrate_estimate, ssrcs)) in TEST_F() 85 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate); in TEST_F() [all …]
|
D | send_statistics_proxy_unittest.cc | 40 config.rtp.ssrcs.push_back(17); in GetTestConfig() 41 config.rtp.ssrcs.push_back(42); in GetTestConfig() 42 config.rtp.rtx.ssrcs.push_back(18); in GetTestConfig() 43 config.rtp.rtx.ssrcs.push_back(43); in GetTestConfig() 101 for (std::vector<uint32_t>::const_iterator it = config_.rtp.ssrcs.begin(); in TEST_F() 102 it != config_.rtp.ssrcs.end(); in TEST_F() 115 for (std::vector<uint32_t>::const_iterator it = config_.rtp.rtx.ssrcs.begin(); in TEST_F() 116 it != config_.rtp.rtx.ssrcs.end(); in TEST_F() 159 for (std::vector<uint32_t>::const_iterator it = config_.rtp.ssrcs.begin(); in TEST_F() 160 it != config_.rtp.ssrcs.end(); in TEST_F() [all …]
|
D | video_send_stream.cc | 53 for (size_t i = 0; i < ssrcs.size(); ++i) { in ToString() 54 ss << ssrcs[i]; in ToString() 55 if (i != ssrcs.size() - 1) in ToString() 68 for (size_t i = 0; i < ssrcs.size(); ++i) { in ToString() 69 ss << ssrcs[i]; in ToString() 70 if (i != ssrcs.size() - 1) in ToString() 133 RTC_DCHECK(!config_.rtp.ssrcs.empty()); in VideoSendStream() 145 const std::vector<uint32_t>& ssrcs = config.rtp.ssrcs; in VideoSendStream() local 161 congestion_controller_->packet_router(), ssrcs.size(), true)); in VideoSendStream() 170 std::vector<uint32_t> first_ssrc(1, ssrcs[0]); in VideoSendStream() [all …]
|
D | send_statistics_proxy.cc | 221 if (std::find(config_.rtp.ssrcs.begin(), config_.rtp.ssrcs.end(), ssrc) == in GetStatsEntry() 222 config_.rtp.ssrcs.end() && in GetStatsEntry() 223 std::find(config_.rtp.rtx.ssrcs.begin(), in GetStatsEntry() 224 config_.rtp.rtx.ssrcs.end(), in GetStatsEntry() 225 ssrc) == config_.rtp.rtx.ssrcs.end()) { in GetStatsEntry() 254 if (simulcast_idx >= config_.rtp.ssrcs.size()) { in OnSendEncodedImage() 256 << " >= " << config_.rtp.ssrcs.size() << ")."; in OnSendEncodedImage() 259 uint32_t ssrc = config_.rtp.ssrcs[simulcast_idx]; in OnSendEncodedImage()
|
D | vie_remb.cc | 98 void VieRemb::OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, in OnReceiveBitrateChanged() argument 123 if (ssrcs.empty() || receive_modules_.empty()) { in OnReceiveBitrateChanged() 140 sender->SetREMBData(bitrate_, ssrcs); in OnReceiveBitrateChanged()
|
D | encoder_state_feedback.cc | 57 void EncoderStateFeedback::AddEncoder(const std::vector<uint32_t>& ssrcs, in AddEncoder() argument 59 RTC_DCHECK(!ssrcs.empty()); in AddEncoder() 61 for (uint32_t ssrc : ssrcs) { in AddEncoder()
|
/external/webrtc/talk/media/base/ |
D | streamparams.cc | 103 static std::string SsrcsToString(const std::vector<uint32_t>& ssrcs) { in SsrcsToString() argument 106 for (std::vector<uint32_t>::const_iterator it = ssrcs.begin(); in SsrcsToString() 107 it != ssrcs.end(); ++it) { in SsrcsToString() 108 if (it != ssrcs.begin()) { in SsrcsToString() 118 return (semantics == semantics_in && ssrcs.size() > 0); in has_semantics() 125 ost << SsrcsToString(ssrcs); in ToString() 139 ost << SsrcsToString(ssrcs) << ";"; in ToString() 164 void StreamParams::GetPrimarySsrcs(std::vector<uint32_t>* ssrcs) const { in GetPrimarySsrcs() 167 ssrcs->push_back(first_ssrc()); in GetPrimarySsrcs() 169 for (size_t i = 0; i < sim_group->ssrcs.size(); ++i) { in GetPrimarySsrcs() [all …]
|
D | streamparams.h | 61 SsrcGroup(const std::string& usage, const std::vector<uint32_t>& ssrcs) in SsrcGroup() 62 : semantics(usage), ssrcs(ssrcs) {} in SsrcGroup() 65 return (semantics == other.semantics && ssrcs == other.ssrcs); 76 std::vector<uint32_t> ssrcs; // SSRCs of this type. member 82 stream.ssrcs.push_back(ssrc); in CreateLegacy() 89 ssrcs == other.ssrcs && 101 if (ssrcs.empty()) { in first_ssrc() 105 return ssrcs[0]; in first_ssrc() 108 return !ssrcs.empty(); in has_ssrcs() 111 return std::find(ssrcs.begin(), ssrcs.end(), ssrc) != ssrcs.end(); in has_ssrc() [all …]
|
D | streamparams_unittest.cc | 43 std::vector<uint32_t> ssrcs(ssrcs_in, ssrcs_in + len); in CreateStreamParamsWithSsrcGroup() local 44 cricket::SsrcGroup sg(semantics, ssrcs); in CreateStreamParamsWithSsrcGroup() 45 stream.ssrcs = ssrcs; in CreateStreamParamsWithSsrcGroup() 85 EXPECT_EQ(1U, one_sp.ssrcs.size()); in TEST() 97 EXPECT_EQ(2U, sp.ssrcs.size()); in TEST() 104 EXPECT_EQ(2U, sp.ssrc_groups[0].ssrcs.size()); in TEST() 105 EXPECT_EQ(kSsrcs2[0], sp.ssrc_groups[0].ssrcs[0]); in TEST() 106 EXPECT_EQ(kSsrcs2[1], sp.ssrc_groups[0].ssrcs[1]); in TEST() 167 sp.ssrcs.push_back(1); in TEST() 168 sp.ssrcs.push_back(2); in TEST() [all …]
|
D | testutils.cc | 359 const std::vector<uint32_t>& ssrcs) { in CreateSimStreamParams() argument 361 cricket::SsrcGroup sg(cricket::kSimSsrcGroupSemantics, ssrcs); in CreateSimStreamParams() 362 sp.ssrcs = ssrcs; in CreateSimStreamParams() 371 const std::vector<uint32_t>& ssrcs, in CreateSimWithRtxStreamParams() argument 373 cricket::StreamParams sp = CreateSimStreamParams(cname, ssrcs); in CreateSimWithRtxStreamParams() 374 for (size_t i = 0; i < ssrcs.size(); ++i) { in CreateSimWithRtxStreamParams() 375 sp.ssrcs.push_back(rtx_ssrcs[i]); in CreateSimWithRtxStreamParams() 377 fid_ssrcs.push_back(ssrcs[i]); in CreateSimWithRtxStreamParams()
|
D | videoengine_unittest.h | 520 EXPECT_EQ(1U, info.senders[0].ssrcs().size()); in GetStats() 521 EXPECT_EQ(1U, info.receivers[0].ssrcs().size()); in GetStats() 522 EXPECT_EQ(info.senders[0].ssrcs()[0], info.receivers[0].ssrcs()[0]); in GetStats() 568 std::vector<uint32_t> ssrcs; in GetStatsMultipleRecvStreams() local 569 ssrcs.push_back(1); in GetStatsMultipleRecvStreams() 570 ssrcs.push_back(2); in GetStatsMultipleRecvStreams() 571 network_interface_.SetConferenceMode(true, ssrcs); in GetStatsMultipleRecvStreams() 592 EXPECT_EQ(1U, GetReceiverStats(i).ssrcs().size()); in GetStatsMultipleRecvStreams() 593 EXPECT_EQ(i + 1, GetReceiverStats(i).ssrcs()[0]); in GetStatsMultipleRecvStreams() 659 EXPECT_EQ(1U, info.senders[0].ssrcs().size()); in GetStatsMultipleSendStreams() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtcp_receiver_unittest.cc | 192 std::set<uint32_t> ssrcs; in TEST_F() local 193 ssrcs.insert(kSourceSsrc); in TEST_F() 194 rtcp_receiver_->SetSsrcs(kSourceSsrc, ssrcs); in TEST_F() 215 std::set<uint32_t> ssrcs; in TEST_F() local 216 ssrcs.insert(kSourceSsrc); in TEST_F() 217 rtcp_receiver_->SetSsrcs(kSourceSsrc, ssrcs); in TEST_F() 243 std::set<uint32_t> ssrcs(kSourceSsrcs, kSourceSsrcs + kNumSsrcs); in TEST_F() local 244 rtcp_receiver_->SetSsrcs(kSourceSsrcs[0], ssrcs); in TEST_F() 311 std::set<uint32_t> ssrcs(kSourceSsrcs, kSourceSsrcs + kNumSsrcs); in TEST_F() local 312 rtcp_receiver_->SetSsrcs(kSourceSsrcs[0], ssrcs); in TEST_F() [all …]
|
D | rtcp_sender_unittest.cc | 494 std::vector<uint32_t> ssrcs; in TEST_F() local 495 ssrcs.push_back(kRemoteSsrc); in TEST_F() 496 ssrcs.push_back(kRemoteSsrc + 1); in TEST_F() 498 rtcp_sender_->SetREMBData(kBitrate, ssrcs); in TEST_F() 510 std::vector<uint32_t> ssrcs; in TEST_F() local 511 ssrcs.push_back(kRemoteSsrc); in TEST_F() 515 rtcp_sender_->SetREMBData(kBitrate, ssrcs); in TEST_F() 527 std::vector<uint32_t> ssrcs; in TEST_F() local 528 ssrcs.push_back(kRemoteSsrc); in TEST_F() 530 rtcp_sender_->SetREMBData(kBitrate, ssrcs); in TEST_F() [all …]
|
D | rtp_rtcp_impl.cc | 161 std::vector<unsigned int> ssrcs; in Process() local 162 if (remote_bitrate_->LatestEstimate(&ssrcs, &target_bitrate)) { in Process() 163 if (!ssrcs.empty()) { in Process() 164 target_bitrate = target_bitrate / ssrcs.size(); in Process() 652 const std::vector<uint32_t>& ssrcs) { in SetREMBData() argument 653 rtcp_sender_.SetREMBData(bitrate, ssrcs); in SetREMBData() 972 std::set<uint32_t> ssrcs; in SetRtcpReceiverSsrcs() local 973 ssrcs.insert(main_ssrc); in SetRtcpReceiverSsrcs() 975 ssrcs.insert(rtp_sender_.RtxSsrc()); in SetRtcpReceiverSsrcs() 976 rtcp_receiver_.SetSsrcs(main_ssrc, ssrcs); in SetRtcpReceiverSsrcs()
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/ |
D | remote_bitrate_estimator_single_stream.cc | 181 std::vector<unsigned int> ssrcs; in UpdateEstimate() local 182 GetSsrcs(&ssrcs); in UpdateEstimate() 183 observer_->OnReceiveBitrateChanged(ssrcs, target_bitrate); in UpdateEstimate() 203 std::vector<unsigned int>* ssrcs, in LatestEstimate() argument 210 GetSsrcs(ssrcs); in LatestEstimate() 211 if (ssrcs->empty()) in LatestEstimate() 225 std::vector<unsigned int>* ssrcs) const { in GetSsrcs() 226 assert(ssrcs); in GetSsrcs() 227 ssrcs->resize(overuse_detectors_.size()); in GetSsrcs() 231 (*ssrcs)[i] = it->first; in GetSsrcs()
|
D | remote_bitrate_estimator_unittest_helper.cc | 24 const std::vector<unsigned int>& ssrcs, in OnReceiveBitrateChanged() argument 315 std::vector<unsigned int> ssrcs; in InitialBehaviorTestHelper() local 316 EXPECT_FALSE(bitrate_estimator_->LatestEstimate(&ssrcs, &bitrate_bps)); in InitialBehaviorTestHelper() 317 EXPECT_EQ(0u, ssrcs.size()); in InitialBehaviorTestHelper() 320 EXPECT_FALSE(bitrate_estimator_->LatestEstimate(&ssrcs, &bitrate_bps)); in InitialBehaviorTestHelper() 328 EXPECT_FALSE(bitrate_estimator_->LatestEstimate(&ssrcs, &bitrate_bps)); in InitialBehaviorTestHelper() 329 EXPECT_EQ(0u, ssrcs.size()); in InitialBehaviorTestHelper() 342 EXPECT_TRUE(bitrate_estimator_->LatestEstimate(&ssrcs, &bitrate_bps)); in InitialBehaviorTestHelper() 343 ASSERT_EQ(1u, ssrcs.size()); in InitialBehaviorTestHelper() 344 EXPECT_EQ(kDefaultSsrc, ssrcs.front()); in InitialBehaviorTestHelper() [all …]
|
D | remote_bitrate_estimator_single_stream.h | 38 bool LatestEstimate(std::vector<unsigned int>* ssrcs, 52 void GetSsrcs(std::vector<unsigned int>* ssrcs) const
|
/external/webrtc/talk/media/webrtc/ |
D | simulcast.cc | 77 void GetSimulcastSsrcs(const StreamParams& sp, std::vector<uint32_t>* ssrcs) { in GetSimulcastSsrcs() argument 80 ssrcs->insert( in GetSimulcastSsrcs() 81 ssrcs->end(), sim_group->ssrcs.begin(), sim_group->ssrcs.end()); in GetSimulcastSsrcs()
|
D | webrtcvideoengine2_unittest.cc | 569 std::vector<uint32_t> ssrcs = MAKE_VECTOR(kSsrcs3); in TEST_F() local 572 channel->AddSendStream(CreateSimStreamParams("cname", ssrcs))); in TEST_F() 576 EXPECT_TRUE(channel->SetCapturer(ssrcs.front(), &capturer)); in TEST_F() 594 EXPECT_TRUE(channel->SetCapturer(ssrcs.front(), NULL)); in TEST_F() 647 std::vector<uint32_t> ssrcs = MAKE_VECTOR(kSsrcs3); in TEST_F() local 650 channel->AddSendStream(CreateSimStreamParams("cname", ssrcs))); in TEST_F() 657 EXPECT_TRUE(channel->SetCapturer(ssrcs.front(), &capturer)); in TEST_F() 703 const std::vector<uint32_t> ssrcs = MAKE_VECTOR(kSsrcs3); in TEST_F() local 705 channel->AddSendStream(cricket::CreateSimStreamParams("cname", ssrcs))); in TEST_F() 710 EXPECT_TRUE(channel->SetSendStreamFormat(ssrcs[0], format)); in TEST_F() [all …]
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/tools/ |
D | bwe_rtp.cc | 56 std::set<uint32_t> ssrcs; in SsrcFilter() local 62 ssrcs.insert(ssrc); in SsrcFilter() 65 return ssrcs; in SsrcFilter()
|
/external/webrtc/talk/session/media/ |
D | mediasession.cc | 284 std::vector<uint32_t>* ssrcs) { in GenerateSsrcs() argument 290 std::count(ssrcs->begin(), ssrcs->end(), candidate) > 0); in GenerateSsrcs() 291 ssrcs->push_back(candidate); in GenerateSsrcs() 474 std::vector<uint32_t> ssrcs; in AddStreamParams() local 476 GenerateSctpSids(*current_streams, &ssrcs); in AddStreamParams() 479 GenerateSsrcs(*current_streams, num_ssrcs, &ssrcs); in AddStreamParams() 482 content_description->AddLegacyStream(ssrcs[0], ssrcs[1]); in AddStreamParams() 485 content_description->AddLegacyStream(ssrcs[0]); in AddStreamParams() 509 std::vector<uint32_t> ssrcs; in AddStreamParams() local 511 GenerateSctpSids(*current_streams, &ssrcs); in AddStreamParams() [all …]
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/estimators/ |
D | remb.cc | 132 const std::vector<unsigned int>& ssrcs, in OnReceiveBitrateChanged() argument 151 std::vector<unsigned int> ssrcs; in LatestEstimate() local 153 if (!estimator_->LatestEstimate(&ssrcs, &bps)) { in LatestEstimate()
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/include/ |
D | remote_bitrate_estimator.h | 35 virtual void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, 88 virtual bool LatestEstimate(std::vector<unsigned int>* ssrcs,
|
/external/webrtc/webrtc/call/ |
D | bitrate_estimator_tests.cc | 123 video_send_config_.rtp.ssrcs.push_back(kVideoSendSsrcs[0]); in SetUp() 133 receive_config_.rtp.remote_ssrc = video_send_config_.rtp.ssrcs[0]; in SetUp() 172 test_->video_send_config_.rtp.ssrcs[0]++; in Stream() 186 receive_config.rtp.remote_ssrc = test_->video_send_config_.rtp.ssrcs[0]; in Stream() 206 test_->video_send_config_.rtp.ssrcs[0]; in Stream()
|
/external/webrtc/webrtc/ |
D | video_send_stream.h | 103 std::vector<uint32_t> ssrcs; member 125 std::vector<uint32_t> ssrcs; member
|