Lines Matching refs:ssrcs
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()
170 ssrcs->push_back(sim_group->ssrcs[i]); in GetPrimarySsrcs()
192 ssrcs.push_back(secondary_ssrc); in AddSecondarySsrc()
207 it->ssrcs.size() >= 2 && in GetSecondarySsrc()
208 it->ssrcs[0] == primary_ssrc) { in GetSecondarySsrc()
209 *secondary_ssrc = it->ssrcs[1]; in GetSecondarySsrc()
217 if (sp.ssrcs.size() == 1 && sp.ssrc_groups.empty()) { in IsOneSsrcStream()
220 if (sp.ssrcs.size() == 2) { in IsOneSsrcStream()
223 return (sp.ssrcs == fid_group->ssrcs); in IsOneSsrcStream()
229 static void RemoveFirst(std::list<uint32_t>* ssrcs, uint32_t value) { in RemoveFirst() argument
231 std::find(ssrcs->begin(), ssrcs->end(), value); in RemoveFirst()
232 if (it != ssrcs->end()) { in RemoveFirst()
233 ssrcs->erase(it); in RemoveFirst()
239 if (sg == NULL || sg->ssrcs.size() < 2) { in IsSimulcastStream()
245 std::list<uint32_t> sp_ssrcs(sp.ssrcs.begin(), sp.ssrcs.end()); in IsSimulcastStream()
246 for (size_t i = 0; i < sg->ssrcs.size(); ++i) { in IsSimulcastStream()
247 RemoveFirst(&sp_ssrcs, sg->ssrcs[i]); in IsSimulcastStream()
252 group.ssrcs.size() != 2) { in IsSimulcastStream()
255 RemoveFirst(&sp_ssrcs, group.ssrcs[1]); in IsSimulcastStream()