Home
last modified time | relevance | path

Searched refs:ssrc (Results 1 – 25 of 237) sorted by relevance

12345678910

/external/webrtc/webrtc/modules/pacing/
Dpaced_sender_unittest.cc30 bool(uint32_t ssrc,
42 bool TimeToSendPacket(uint32_t ssrc, in TimeToSendPacket() argument
70 bool TimeToSendPacket(uint32_t ssrc, in TimeToSendPacket() argument
122 uint32_t ssrc, in SendAndExpectPacket() argument
127 send_bucket_->InsertPacket(priority, ssrc, sequence_number, capture_time_ms, in SendAndExpectPacket()
130 TimeToSendPacket(ssrc, sequence_number, capture_time_ms, false)) in SendAndExpectPacket()
141 uint32_t ssrc = 12345; in TEST_F() local
145 ssrc, in TEST_F()
151 ssrc, in TEST_F()
157 ssrc, in TEST_F()
[all …]
/external/webrtc/talk/media/base/
Dfakemediaengine.h117 virtual bool RemoveSendStream(uint32_t ssrc) { in RemoveSendStream() argument
118 return RemoveStreamBySsrc(&send_streams_, ssrc); in RemoveSendStream()
128 virtual bool RemoveRecvStream(uint32_t ssrc) { in RemoveRecvStream() argument
129 return RemoveStreamBySsrc(&receive_streams_, ssrc); in RemoveRecvStream()
131 bool IsStreamMuted(uint32_t ssrc) const { in IsStreamMuted() argument
132 bool ret = muted_streams_.find(ssrc) != muted_streams_.end(); in IsStreamMuted()
134 if (!ret && ssrc == 0 && !send_streams_.empty()) { in IsStreamMuted()
146 bool HasRecvStream(uint32_t ssrc) const { in HasRecvStream() argument
147 return GetStreamBySsrc(receive_streams_, ssrc) != nullptr; in HasRecvStream()
149 bool HasSendStream(uint32_t ssrc) const { in HasSendStream() argument
[all …]
Drtpdataengine.cc190 bool RtpDataMediaChannel::RemoveSendStream(uint32_t ssrc) { in RemoveSendStream() argument
191 if (!GetStreamBySsrc(send_streams_, ssrc)) { in RemoveSendStream()
195 RemoveStreamBySsrc(&send_streams_, ssrc); in RemoveSendStream()
196 delete rtp_clock_by_send_ssrc_[ssrc]; in RemoveSendStream()
197 rtp_clock_by_send_ssrc_.erase(ssrc); in RemoveSendStream()
219 bool RtpDataMediaChannel::RemoveRecvStream(uint32_t ssrc) { in RemoveRecvStream() argument
220 RemoveStreamBySsrc(&recv_streams_, ssrc); in RemoveRecvStream()
248 << header.ssrc << ":" << header.seq_num in OnPacketReceived()
264 if (!GetStreamBySsrc(recv_streams_, header.ssrc)) { in OnPacketReceived()
265 LOG(LS_WARNING) << "Received packet for unknown ssrc: " << header.ssrc; in OnPacketReceived()
[all …]
Dstreamparams.h80 static StreamParams CreateLegacy(uint32_t ssrc) { in CreateLegacy()
82 stream.ssrcs.push_back(ssrc); in CreateLegacy()
110 bool has_ssrc(uint32_t ssrc) const { in has_ssrc()
111 return std::find(ssrcs.begin(), ssrcs.end(), ssrc) != ssrcs.end(); in has_ssrc()
113 void add_ssrc(uint32_t ssrc) { ssrcs.push_back(ssrc); } in add_ssrc()
180 explicit StreamSelector(uint32_t ssrc) : ssrc(ssrc) {} in StreamSelector()
184 ssrc(0), in StreamSelector()
190 if (ssrc == 0) { in Matches()
193 return stream.has_ssrc(ssrc); in Matches()
197 uint32_t ssrc; member
[all …]
Drtputils_unittest.cc95 uint32_t ssrc; in TEST() local
96 EXPECT_TRUE(GetRtpSsrc(kPcmuFrame, sizeof(kPcmuFrame), &ssrc)); in TEST()
97 EXPECT_EQ(1u, ssrc); in TEST()
104 EXPECT_EQ(1u, header.ssrc); in TEST()
109 EXPECT_FALSE(GetRtpSsrc(kInvalidPacket, sizeof(kInvalidPacket), &ssrc)); in TEST()
129 EXPECT_EQ(3333u, header.ssrc); in TEST()
160 uint32_t ssrc; in TEST() local
163 &ssrc)); in TEST()
166 &ssrc)); in TEST()
169 &ssrc)); in TEST()
Dmediachannel.h491 virtual bool RemoveSendStream(uint32_t ssrc) = 0;
498 virtual bool RemoveRecvStream(uint32_t ssrc) = 0;
572 : ssrc(0), in SsrcSenderInfo()
575 uint32_t ssrc; member
581 : ssrc(0), in SsrcReceiverInfo()
584 uint32_t ssrc; member
601 void add_ssrc(uint32_t ssrc) { in add_ssrc()
603 stat.ssrc = ssrc; in add_ssrc()
611 retval.push_back(it->ssrc); in ssrcs()
618 uint32_t ssrc() const { in ssrc() function
[all …]
/external/webrtc/webrtc/video/
Dvie_remb_unittest.cc52 unsigned int ssrc = 1234; in TEST_F() local
53 std::vector<unsigned int> ssrcs(&ssrc, &ssrc + 1); in TEST_F()
77 unsigned int ssrc = 1234; in TEST_F() local
78 std::vector<unsigned int> ssrcs(&ssrc, &ssrc + 1); in TEST_F()
103 unsigned int ssrc[] = { 1234, 5678 }; in TEST_F() local
104 std::vector<unsigned int> ssrcs(ssrc, ssrc + sizeof(ssrc) / sizeof(ssrc[0])); in TEST_F()
134 unsigned int ssrc[] = { 1234, 5678 }; in TEST_F() local
135 std::vector<unsigned int> ssrcs(ssrc, ssrc + sizeof(ssrc) / sizeof(ssrc[0])); in TEST_F()
168 unsigned int ssrc[] = { 1234, 5678 }; in TEST_F() local
169 std::vector<unsigned int> ssrcs(ssrc, ssrc + sizeof(ssrc) / sizeof(ssrc[0])); in TEST_F()
[all …]
Dencoder_state_feedback.cc31 virtual void OnReceivedIntraFrameRequest(uint32_t ssrc) { in OnReceivedIntraFrameRequest() argument
32 owner_->OnReceivedIntraFrameRequest(ssrc); in OnReceivedIntraFrameRequest()
34 virtual void OnReceivedSLI(uint32_t ssrc, uint8_t picture_id) { in OnReceivedSLI() argument
35 owner_->OnReceivedSLI(ssrc, picture_id); in OnReceivedSLI()
37 virtual void OnReceivedRPSI(uint32_t ssrc, uint64_t picture_id) { in OnReceivedRPSI() argument
38 owner_->OnReceivedRPSI(ssrc, picture_id); in OnReceivedRPSI()
61 for (uint32_t ssrc : ssrcs) { in AddEncoder() local
62 RTC_DCHECK(encoders_.find(ssrc) == encoders_.end()); in AddEncoder()
63 encoders_[ssrc] = encoder; in AddEncoder()
83 void EncoderStateFeedback::OnReceivedIntraFrameRequest(uint32_t ssrc) { in OnReceivedIntraFrameRequest() argument
[all …]
Dsend_statistics_proxy_unittest.cc104 const uint32_t ssrc = *it; in TEST_F() local
105 VideoSendStream::StreamStats& ssrc_stats = expected_.substreams[ssrc]; in TEST_F()
108 uint32_t offset = ssrc * sizeof(RtcpStatistics); in TEST_F()
113 callback->StatisticsUpdated(ssrc_stats.rtcp_stats, ssrc); in TEST_F()
118 const uint32_t ssrc = *it; in TEST_F() local
119 VideoSendStream::StreamStats& ssrc_stats = expected_.substreams[ssrc]; in TEST_F()
122 uint32_t offset = ssrc * sizeof(RtcpStatistics); in TEST_F()
127 callback->StatisticsUpdated(ssrc_stats.rtcp_stats, ssrc); in TEST_F()
162 const uint32_t ssrc = *it; in TEST_F() local
164 VideoSendStream::StreamStats& stats = expected_.substreams[ssrc]; in TEST_F()
[all …]
Dsend_statistics_proxy.cc206 uint32_t ssrc = it->first; in PurgeOldStats() local
207 if (update_times_[ssrc].resolution_update_ms <= old_stats_ms) { in PurgeOldStats()
215 uint32_t ssrc) { in GetStatsEntry() argument
217 stats_.substreams.find(ssrc); in GetStatsEntry()
221 if (std::find(config_.rtp.ssrcs.begin(), config_.rtp.ssrcs.end(), ssrc) == in GetStatsEntry()
225 ssrc) == config_.rtp.rtx.ssrcs.end()) { in GetStatsEntry()
229 return &stats_.substreams[ssrc]; // Insert new entry and return ptr. in GetStatsEntry()
232 void SendStatisticsProxy::OnInactiveSsrc(uint32_t ssrc) { in OnInactiveSsrc() argument
234 VideoSendStream::StreamStats* stats = GetStatsEntry(ssrc); in OnInactiveSsrc()
259 uint32_t ssrc = config_.rtp.ssrcs[simulcast_idx]; in OnSendEncodedImage() local
[all …]
Dreceive_statistics_proxy.cc23 ReceiveStatisticsProxy::ReceiveStatisticsProxy(uint32_t ssrc, Clock* clock) in ReceiveStatisticsProxy() argument
30 stats_.ssrc = ssrc; in ReceiveStatisticsProxy()
120 uint32_t ssrc, in RtcpPacketTypesCounterUpdated() argument
123 if (stats_.ssrc != ssrc) in RtcpPacketTypesCounterUpdated()
130 uint32_t ssrc) { in StatisticsUpdated() argument
134 if (stats_.ssrc != ssrc) in StatisticsUpdated()
137 report_block_stats_.Store(statistics, ssrc, 0); in StatisticsUpdated()
140 void ReceiveStatisticsProxy::CNameChanged(const char* cname, uint32_t ssrc) { in CNameChanged() argument
144 if (stats_.ssrc != ssrc) in CNameChanged()
151 uint32_t ssrc) { in DataCountersUpdated() argument
[all …]
Dencoder_state_feedback_unittest.cc41 void(uint32_t ssrc, uint8_t picture_id));
43 void(uint32_t ssrc, uint64_t picture_id));
68 const int ssrc = 1234; in TEST_F() local
70 encoder_state_feedback_->AddEncoder(std::vector<uint32_t>(1, ssrc), &encoder); in TEST_F()
72 EXPECT_CALL(encoder, OnReceivedIntraFrameRequest(ssrc)) in TEST_F()
75 OnReceivedIntraFrameRequest(ssrc); in TEST_F()
78 EXPECT_CALL(encoder, OnReceivedSLI(ssrc, sli_picture_id)) in TEST_F()
81 ssrc, sli_picture_id); in TEST_F()
84 EXPECT_CALL(encoder, OnReceivedRPSI(ssrc, rpsi_picture_id)) in TEST_F()
87 ssrc, rpsi_picture_id); in TEST_F()
Dsend_statistics_proxy.h64 void OnInactiveSsrc(uint32_t ssrc);
75 uint32_t ssrc) override;
76 void CNameChanged(const char* cname, uint32_t ssrc) override;
79 uint32_t ssrc,
83 uint32_t ssrc) override;
88 uint32_t ssrc) override;
92 uint32_t ssrc) override;
96 uint32_t ssrc) override;
129 VideoSendStream::StreamStats* GetStatsEntry(uint32_t ssrc)
/external/webrtc/webrtc/call/
Dcall_unittest.cc47 config.rtp.ssrc = 42; in TEST()
70 for (uint32_t ssrc = 0; ssrc < 1234567; ssrc += 34567) { in TEST() local
71 config.rtp.ssrc = ssrc; in TEST()
74 if (ssrc & 1) { in TEST()
93 for (uint32_t ssrc = 0; ssrc < 1234567; ssrc += 34567) { in TEST() local
94 config.rtp.remote_ssrc = ssrc; in TEST()
97 if (ssrc & 1) { in TEST()
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtcp_packet.h159 void From(uint32_t ssrc) { in From() argument
160 sr_.SenderSSRC = ssrc; in From()
233 bool WithCName(uint32_t ssrc, const std::string& cname);
236 uint32_t ssrc; member
279 void From(uint32_t ssrc) { in From() argument
280 rpsi_.SenderSSRC = ssrc; in From()
282 void To(uint32_t ssrc) { in To() argument
283 rpsi_.MediaSSRC = ssrc; in To()
330 void From(uint32_t ssrc) { in From() argument
331 fir_.SenderSSRC = ssrc; in From()
[all …]
Dssrc_database.cc37 uint32_t ssrc = random_.Rand(1u, 0xfffffffe); in CreateSSRC() local
38 if (ssrcs_.insert(ssrc).second) { in CreateSSRC()
39 return ssrc; in CreateSSRC()
44 void SSRCDatabase::RegisterSSRC(uint32_t ssrc) { in RegisterSSRC() argument
46 ssrcs_.insert(ssrc); in RegisterSSRC()
49 void SSRCDatabase::ReturnSSRC(uint32_t ssrc) { in ReturnSSRC() argument
51 ssrcs_.erase(ssrc); in ReturnSSRC()
Dreceive_statistics_impl.cc64 ssrc_ = header.ssrc; in UpdateCounters()
151 uint32_t ssrc; in NotifyRtpCallback() local
155 ssrc = ssrc_; in NotifyRtpCallback()
157 rtp_callback_->DataCountersUpdated(data, ssrc); in NotifyRtpCallback()
162 uint32_t ssrc; in NotifyRtcpCallback() local
166 ssrc = ssrc_; in NotifyRtcpCallback()
168 rtcp_callback_->StatisticsUpdated(data, ssrc); in NotifyRtcpCallback()
398 StatisticianImplMap::iterator it = statisticians_.find(header.ssrc); in IncomingPacket()
403 statisticians_[header.ssrc] = impl; in IncomingPacket()
416 StatisticianImplMap::iterator it = statisticians_.find(header.ssrc); in FecPacketReceived()
[all …]
/external/webrtc/talk/app/webrtc/
Dmediastreamprovider.h61 virtual void SetAudioPlayout(uint32_t ssrc, bool enable) = 0;
64 virtual void SetAudioSend(uint32_t ssrc,
71 virtual void SetAudioPlayoutVolume(uint32_t ssrc, double volume) = 0;
77 uint32_t ssrc,
88 virtual bool SetCaptureDevice(uint32_t ssrc,
91 virtual void SetVideoPlayout(uint32_t ssrc,
95 virtual void SetVideoSend(uint32_t ssrc,
/external/webrtc/webrtc/modules/video_coding/test/
Drtp_player.cc46 uint32_t ssrc, in RawRtpPacket() argument
51 ssrc_(ssrc), in RawRtpPacket()
61 uint32_t ssrc() const { return ssrc_; } in ssrc() function in webrtc::rtpplayer::RawRtpPacket
99 printf("Throw: %08x:%u\n", packet->ssrc(), packet->seq_num()); in AddPacket()
109 void SetResendTime(uint32_t ssrc, int16_t resendSeqNum) { in SetResendTime() argument
115 if (ssrc == packet->ssrc() && resendSeqNum == packet->seq_num() && in SetResendTime()
207 int RegisterSsrc(uint32_t ssrc, LostPackets* lost_packets, Clock* clock) { in RegisterSsrc() argument
208 if (handlers_.count(ssrc) > 0) { in RegisterSsrc()
211 DEBUG_LOG1("Registering handler for ssrc=%08x", ssrc); in RegisterSsrc()
214 new Handler(ssrc, payload_types_, lost_packets)); in RegisterSsrc()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
DNETEQTEST_RTPpacket.cc292 rtp_header->header.ssrc = _rtpInfo.header.ssrc; in parseHeader()
401 return tempRTPinfo.header.ssrc; in SSRC()
486 int NETEQTEST_RTPpacket::setSSRC(uint32_t ssrc) in setSSRC() argument
496 _rtpInfo.header.ssrc = ssrc; in setSSRC()
499 _datagram[8]=(unsigned char)((ssrc>>24)&0xFF); in setSSRC()
500 _datagram[9]=(unsigned char)((ssrc>>16)&0xFF); in setSSRC()
501 _datagram[10]=(unsigned char)((ssrc>>8)&0xFF); in setSSRC()
502 _datagram[11]=(unsigned char)(ssrc & 0xFF); in setSSRC()
546 RTPinfo->header.ssrc, in setRTPheader()
621 uint32_t ssrc, in makeRTPheader() argument
[all …]
/external/webrtc/talk/session/media/
Dchannel.cc51 uint32_t ssrc, in SetRawAudioSink_w() argument
53 channel->SetRawAudioSink(ssrc, std::move(*sink)); in SetRawAudioSink_w()
88 : ssrc(s), event(we) {} in ScreencastEventMessageData()
89 uint32_t ssrc; member
96 : ssrc(in_ssrc), error(in_error) {} in VoiceChannelErrorMessageData()
97 uint32_t ssrc; member
104 : ssrc(in_ssrc), error(in_error) {} in VideoChannelErrorMessageData()
105 uint32_t ssrc; member
112 : ssrc(in_ssrc), error(in_error) {} in DataChannelErrorMessageData()
113 uint32_t ssrc; member
[all …]
Dsrtpfilter.h262 void AddProtectRtpResult(uint32_t ssrc, int result);
264 void AddUnprotectRtpResult(uint32_t ssrc, int result);
285 : ssrc(0), in FailureKey()
292 : ssrc(in_ssrc), mode(in_mode), error(in_error) {} in FailureKey()
295 (ssrc < key.ssrc) ||
296 (ssrc == key.ssrc && mode < key.mode) ||
297 (ssrc == key.ssrc && mode == key.mode && error < key.error);
299 uint32_t ssrc; member
/external/webrtc/talk/media/webrtc/
Dwebrtcvoiceengine.cc1078 uint32_t ssrc, const std::string& c_name, in WebRtcAudioSendStream() argument
1089 config_.rtp.ssrc = ssrc; in WebRtcAudioSendStream()
1814 bool WebRtcVoiceMediaChannel::SetAudioSend(uint32_t ssrc, in SetAudioSend() argument
1821 if (!SetLocalRenderer(ssrc, renderer)) { in SetAudioSend()
1824 if (!MuteStream(ssrc, !enable)) { in SetAudioSend()
1862 uint32_t ssrc = sp.first_ssrc(); in AddSendStream() local
1863 RTC_DCHECK(0 != ssrc); in AddSendStream()
1865 if (GetSendChannelId(ssrc) != -1) { in AddSendStream()
1866 LOG(LS_ERROR) << "Stream already exists with ssrc " << ssrc; in AddSendStream()
1880 send_streams_.insert(std::make_pair(ssrc, new WebRtcAudioSendStream( in AddSendStream()
[all …]
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Drtp_rtcp_test.cc33 void SetIncomingSsrc(unsigned int ssrc) { in SetIncomingSsrc() argument
35 incoming_ssrc_ = ssrc; in SetIncomingSsrc()
112 unsigned int ssrc; in TEST_F() local
113 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc)); in TEST_F()
114 EXPECT_EQ(local_ssrc, ssrc); in TEST_F()
116 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc)); in TEST_F()
117 EXPECT_EQ(local_ssrc, ssrc); in TEST_F()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/
Dremote_bitrate_estimator_unittest_helper.h54 unsigned int ssrc; member
61 unsigned int ssrc; member
68 RtpStream(int fps, int bitrate_bps, unsigned int ssrc, unsigned int frequency,
87 unsigned int ssrc() const;
126 void set_rtp_timestamp_offset(unsigned int ssrc, uint32_t offset);
168 void IncomingPacket(uint32_t ssrc,
181 bool GenerateAndProcessFrame(unsigned int ssrc, unsigned int bitrate_bps);
187 unsigned int SteadyStateRun(unsigned int ssrc,

12345678910