Home
last modified time | relevance | path

Searched refs:ssrcs (Results 1 – 25 of 64) sorted by relevance

123

/external/chromium_org/third_party/webrtc/video_engine/
Dvie_remb_unittest.cc51 std::vector<unsigned int> ssrcs(&ssrc, &ssrc + 1); in TEST_F() local
53 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate); in TEST_F()
58 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate); in TEST_F()
63 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate - 100); in TEST_F()
76 std::vector<unsigned int> ssrcs(&ssrc, &ssrc + 1); in TEST_F() local
78 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate); in TEST_F()
83 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate); in TEST_F()
90 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate); in TEST_F()
102 std::vector<unsigned int> ssrcs(ssrc, ssrc + sizeof(ssrc) / sizeof(ssrc[0])); in TEST_F() local
104 vie_remb_->OnReceiveBitrateChanged(ssrcs, bitrate_estimate[0]); in TEST_F()
[all …]
Dvie_remb.cc97 void VieRemb::OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, in OnReceiveBitrateChanged() argument
122 if (ssrcs.empty() || receive_modules_.empty()) { in OnReceiveBitrateChanged()
140 sender->SetREMBData(bitrate_, ssrcs.size(), &ssrcs[0]); in OnReceiveBitrateChanged()
Dvie_channel_manager.cc123 std::list<unsigned int> ssrcs; in CreateChannel() local
124 ssrcs.push_back(ssrc); in CreateChannel()
125 vie_encoder->SetSsrcs(ssrcs); in CreateChannel()
368 const std::list<unsigned int>& ssrcs) { in UpdateSsrcs() argument
382 for (std::list<unsigned int>::const_iterator it = ssrcs.begin(); in UpdateSsrcs()
383 it != ssrcs.end(); ++it) { in UpdateSsrcs()
417 std::vector<unsigned int> ssrcs; in GetEstimatedReceiveBandwidth() local
419 &ssrcs, estimated_bandwidth) || ssrcs.empty()) { in GetEstimatedReceiveBandwidth()
/external/chromium_org/third_party/libjingle/source/talk/media/base/
Dstreamparams.cc39 static std::string SsrcsToString(const std::vector<uint32>& ssrcs) { in SsrcsToString() argument
42 for (std::vector<uint32>::const_iterator it = ssrcs.begin(); in SsrcsToString()
43 it != ssrcs.end(); ++it) { in SsrcsToString()
44 if (it != ssrcs.begin()) { in SsrcsToString()
54 return (semantics == semantics_in && ssrcs.size() > 0); in has_semantics()
61 ost << SsrcsToString(ssrcs); in ToString()
75 ost << SsrcsToString(ssrcs) << ";"; in ToString()
108 ssrcs.push_back(secondary_ssrc); in AddSecondarySsrc()
123 it->ssrcs.size() >= 2 && in GetSecondarySsrc()
124 it->ssrcs[0] == primary_ssrc) { in GetSecondarySsrc()
[all …]
Dstreamparams.h60 SsrcGroup(const std::string& usage, const std::vector<uint32>& ssrcs) in SsrcGroup()
61 : semantics(usage), ssrcs(ssrcs) { in SsrcGroup()
65 return (semantics == other.semantics && ssrcs == other.ssrcs);
76 std::vector<uint32> 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 …]
Dstreamparams_unittest.cc40 std::vector<uint32> ssrcs(ssrcs_in, ssrcs_in + len); in CreateStreamParamsWithSsrcGroup() local
41 cricket::SsrcGroup sg(semantics, ssrcs); in CreateStreamParamsWithSsrcGroup()
42 stream.ssrcs = ssrcs; in CreateStreamParamsWithSsrcGroup()
82 EXPECT_EQ(1U, one_sp.ssrcs.size()); in TEST()
94 EXPECT_EQ(2U, sp.ssrcs.size()); in TEST()
101 EXPECT_EQ(2U, sp.ssrc_groups[0].ssrcs.size()); in TEST()
102 EXPECT_EQ(kSsrcs2[0], sp.ssrc_groups[0].ssrcs[0]); in TEST()
103 EXPECT_EQ(kSsrcs2[1], sp.ssrc_groups[0].ssrcs[1]); in TEST()
237 std::remove(stream2.ssrcs.begin(), stream2.ssrcs.end(), 13); in TEST()
Dtestutils.cc341 const std::string& cname, const std::vector<uint32>& ssrcs) { in CreateSimStreamParams() argument
343 cricket::SsrcGroup sg(cricket::kSimSsrcGroupSemantics, ssrcs); in CreateSimStreamParams()
344 sp.ssrcs = ssrcs; in CreateSimStreamParams()
352 const std::string& cname, const std::vector<uint32>& ssrcs, in CreateSimWithRtxStreamParams() argument
354 cricket::StreamParams sp = CreateSimStreamParams(cname, ssrcs); in CreateSimWithRtxStreamParams()
355 for (size_t i = 0; i < ssrcs.size(); ++i) { in CreateSimWithRtxStreamParams()
356 sp.ssrcs.push_back(rtx_ssrcs[i]); in CreateSimWithRtxStreamParams()
358 fid_ssrcs.push_back(ssrcs[i]); in CreateSimWithRtxStreamParams()
Dfilemediaengine.cc301 if (send_ssrc_ != 0 || sp.ssrcs.size() != 1) { in AddSendStream()
305 send_ssrc_ = sp.ssrcs[0]; in AddSendStream()
347 if (send_ssrc_ != 0 || sp.ssrcs.size() != 1) { in AddSendStream()
351 send_ssrc_ = sp.ssrcs[0]; in AddSendStream()
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/
Drtcp_receiver_unittest.cc360 std::set<uint32_t> ssrcs; in TEST_F() local
361 ssrcs.insert(kSourceSsrc); in TEST_F()
362 rtcp_receiver_->SetSsrcs(kSourceSsrc, ssrcs); in TEST_F()
385 std::set<uint32_t> ssrcs; in TEST_F() local
386 ssrcs.insert(kSourceSsrc); in TEST_F()
387 rtcp_receiver_->SetSsrcs(kSourceSsrc, ssrcs); in TEST_F()
400 std::set<uint32_t> ssrcs; in TEST_F() local
401 ssrcs.insert(kSourceSsrc); in TEST_F()
402 rtcp_receiver_->SetSsrcs(kSourceSsrc, ssrcs); in TEST_F()
416 std::set<uint32_t> ssrcs; in TEST_F() local
[all …]
/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/
Dremote_bitrate_estimator_single_stream.cc55 virtual bool LatestEstimate(std::vector<unsigned int>* ssrcs,
84 void GetSsrcs(std::vector<unsigned int>* ssrcs) const;
199 std::vector<unsigned int> ssrcs; in UpdateEstimate() local
200 GetSsrcs(&ssrcs); in UpdateEstimate()
201 observer_->OnReceiveBitrateChanged(ssrcs, target_bitrate); in UpdateEstimate()
220 std::vector<unsigned int>* ssrcs, in LatestEstimate() argument
227 GetSsrcs(ssrcs); in LatestEstimate()
228 if (ssrcs->empty()) in LatestEstimate()
242 std::vector<unsigned int>* ssrcs) const { in GetSsrcs()
243 assert(ssrcs); in GetSsrcs()
[all …]
Dremote_bitrate_estimator_unittest_helper.cc22 const std::vector<unsigned int>& ssrcs, in OnReceiveBitrateChanged() argument
313 std::vector<unsigned int> ssrcs; in InitialBehaviorTestHelper() local
314 EXPECT_FALSE(bitrate_estimator_->LatestEstimate(&ssrcs, &bitrate_bps)); in InitialBehaviorTestHelper()
315 EXPECT_EQ(0u, ssrcs.size()); in InitialBehaviorTestHelper()
318 EXPECT_FALSE(bitrate_estimator_->LatestEstimate(&ssrcs, &bitrate_bps)); in InitialBehaviorTestHelper()
326 EXPECT_FALSE(bitrate_estimator_->LatestEstimate(&ssrcs, &bitrate_bps)); in InitialBehaviorTestHelper()
327 EXPECT_EQ(0u, ssrcs.size()); in InitialBehaviorTestHelper()
340 EXPECT_TRUE(bitrate_estimator_->LatestEstimate(&ssrcs, &bitrate_bps)); in InitialBehaviorTestHelper()
341 ASSERT_EQ(1u, ssrcs.size()); in InitialBehaviorTestHelper()
342 EXPECT_EQ(kDefaultSsrc, ssrcs.front()); in InitialBehaviorTestHelper()
[all …]
/external/chromium_org/third_party/webrtc/video/
Drampup_tests.cc99 virtual void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, in OnReceiveBitrateChanged() argument
120 bitrate, static_cast<uint8_t>(ssrcs.size()), &ssrcs[0]); in OnReceiveBitrateChanged()
258 virtual void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, in OnReceiveBitrateChanged() argument
262 bitrate, static_cast<uint8_t>(ssrcs.size()), &ssrcs[0]); in OnReceiveBitrateChanged()
431 std::vector<uint32_t> ssrcs(GenerateSsrcs(num_streams, 100)); in RunRampUpTest() local
435 for (size_t i = 0; i < ssrcs.size(); ++i) in RunRampUpTest()
436 rtx_ssrc_map[rtx_ssrcs[i]] = ssrcs[i]; in RunRampUpTest()
466 send_config.rtp.ssrcs = ssrcs; in RunRampUpTest()
469 send_config.rtp.rtx.ssrcs = rtx_ssrcs; in RunRampUpTest()
512 std::vector<uint32_t> ssrcs; in RunRampUpDownUpTest() local
[all …]
Dsend_statistics_proxy_unittest.cc38 config.rtp.ssrcs.push_back(17); in GetTestConfig()
39 config.rtp.ssrcs.push_back(42); in GetTestConfig()
102 for (std::vector<uint32_t>::const_iterator it = config_.rtp.ssrcs.begin(); in TEST_F()
103 it != config_.rtp.ssrcs.end(); in TEST_F()
151 for (std::vector<uint32_t>::const_iterator it = config_.rtp.ssrcs.begin(); in TEST_F()
152 it != config_.rtp.ssrcs.end(); in TEST_F()
170 for (std::vector<uint32_t>::const_iterator it = config_.rtp.ssrcs.begin(); in TEST_F()
171 it != config_.rtp.ssrcs.end(); in TEST_F()
192 for (std::vector<uint32_t>::const_iterator it = config_.rtp.ssrcs.begin(); in TEST_F()
193 it != config_.rtp.ssrcs.end(); in TEST_F()
[all …]
Dvideo_send_stream.cc45 for (size_t i = 0; i < ssrcs.size(); ++i) { in ToString()
46 ss << ssrcs[i]; in ToString()
47 if (i != ssrcs.size() - 1) in ToString()
60 for (size_t i = 0; i < ssrcs.size(); ++i) { in ToString()
61 ss << ssrcs[i]; in ToString()
62 if (i != ssrcs.size() - 1) in ToString()
83 if (rtx.payload_type != 0 || !rtx.ssrcs.empty()) in ToString()
134 assert(config_.rtp.ssrcs.size() > 0); in VideoSendStream()
295 assert(config_.rtp.ssrcs.size() >= streams.size()); in ReconfigureVideoEncoder()
379 for (size_t i = 0; i < config_.rtp.ssrcs.size(); ++i) { in ReconfigureVideoEncoder()
[all …]
Dsend_statistics_proxy.cc63 if (std::find(config_.rtp.ssrcs.begin(), config_.rtp.ssrcs.end(), ssrc) == in GetStatsEntry()
64 config_.rtp.ssrcs.end()) in GetStatsEntry()
Dbitrate_estimator_tests.cc71 send_config_.rtp.ssrcs.push_back(kSendSsrc); in SetUp()
84 receive_config_.rtp.remote_ssrc = send_config_.rtp.ssrcs[0]; in SetUp()
172 test_->send_config_.rtp.ssrcs[0]++; in Stream()
189 test_->receive_config_.rtp.remote_ssrc = test_->send_config_.rtp.ssrcs[0]; in Stream()
Dcall.cc185 assert(config.rtp.ssrcs.size() > 0); in CreateVideoSendStream()
201 for (size_t i = 0; i < config.rtp.ssrcs.size(); ++i) { in CreateVideoSendStream()
202 assert(send_ssrcs_.find(config.rtp.ssrcs[i]) == send_ssrcs_.end()); in CreateVideoSendStream()
203 send_ssrcs_[config.rtp.ssrcs[i]] = send_stream; in CreateVideoSendStream()
/external/chromium_org/third_party/libjingle/source/talk/session/media/
Dmediamessages.cc224 std::vector<uint32>* ssrcs, in ParseSsrcs() argument
235 ssrcs->push_back(ssrc); in ParseSsrcs()
248 std::vector<uint32> ssrcs; in ParseSsrcGroups() local
249 if (!ParseSsrcs(group_elem, &ssrcs, error)) { in ParseSsrcGroups()
252 ssrc_groups->push_back(SsrcGroup(semantics, ssrcs)); in ParseSsrcGroups()
267 if (!ParseSsrcs(stream_elem, &(stream.ssrcs), error)) { in ParseJingleStream()
320 void WriteSsrcs(const std::vector<uint32>& ssrcs, in WriteSsrcs() argument
322 for (std::vector<uint32>::const_iterator ssrc = ssrcs.begin(); in WriteSsrcs()
323 ssrc != ssrcs.end(); ++ssrc) { in WriteSsrcs()
339 WriteSsrcs(group->ssrcs, group_elem); in WriteSsrcGroups()
[all …]
Dmediasession.cc253 std::vector<uint32>* ssrcs) { in GenerateSsrcs() argument
259 std::count(ssrcs->begin(), ssrcs->end(), candidate) > 0); in GenerateSsrcs()
260 ssrcs->push_back(candidate); in GenerateSsrcs()
444 std::vector<uint32> ssrcs; in AddStreamParams() local
446 GenerateSctpSids(*current_streams, &ssrcs); in AddStreamParams()
449 GenerateSsrcs(*current_streams, num_ssrcs, &ssrcs); in AddStreamParams()
452 content_description->AddLegacyStream(ssrcs[0], ssrcs[1]); in AddStreamParams()
455 content_description->AddLegacyStream(ssrcs[0]); in AddStreamParams()
479 std::vector<uint32> ssrcs; in AddStreamParams() local
481 GenerateSctpSids(*current_streams, &ssrcs); in AddStreamParams()
[all …]
Dbundlefilter_unittest.cc113 stream2.ssrcs.push_back(kSsrc2); in TEST()
114 stream2.ssrcs.push_back(kSsrc3); in TEST()
/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/include/
Dremote_bitrate_estimator.h39 virtual void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs,
85 virtual bool LatestEstimate(std::vector<unsigned int>* ssrcs,
/external/chromium_org/third_party/libjingle/source/talk/media/webrtc/
Dwebrtcvideoengine2.cc894 config->rtp.ssrcs = sp.ssrcs; in ConfigureSendSsrcs()
904 std::vector<uint32_t> ssrcs; in ConfigureSendSsrcs() local
908 ssrcs.push_back(sp.first_ssrc()); in ConfigureSendSsrcs()
917 ssrcs = sim_group->ssrcs; in ConfigureSendSsrcs()
918 for (size_t i = 0; i < sim_group->ssrcs.size(); ++i) { in ConfigureSendSsrcs()
920 if (!sp.GetFidSsrc(sim_group->ssrcs[i], &rtx_ssrc)) { in ConfigureSendSsrcs()
926 if (!rtx_ssrcs.empty() && ssrcs.size() != rtx_ssrcs.size()) { in ConfigureSendSsrcs()
932 config->rtp.rtx.ssrcs = rtx_ssrcs; in ConfigureSendSsrcs()
933 config->rtp.ssrcs = ssrcs; in ConfigureSendSsrcs()
939 if (sp.ssrcs.empty()) { in AddSendStream()
[all …]
/external/chromium_org/third_party/webrtc/
Dvideo_send_stream.h86 std::vector<uint32_t> ssrcs; member
111 std::vector<uint32_t> ssrcs; member
/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/tools/
Dbwe_rtp_play.cc29 virtual void OnReceiveBitrateChanged(const std::vector<unsigned int>& ssrcs, in OnReceiveBitrateChanged() argument
33 static_cast<int>(ssrcs.size()), bitrate); in OnReceiveBitrateChanged()
/external/chromium_org/third_party/webrtc/video_engine/test/auto_test/automated/
Dvie_network_test.cc82 uint8_t ssrcs = buf[4]; in TryParseREMB() local
88 if (length < (8 + 4 * ssrcs)) { in TryParseREMB()
92 for (uint8_t i = 0; i < ssrcs; ++i) { in TryParseREMB()

123