Lines Matching full:streams
17 // E.x: Consider a source that is sent as 3 simulcast streams
30 // lines for redundancy streams, as the same RIDs appear in the redundancy
187 // For 1:1 calls, should be left empty (which means remote streams
188 // and local streams should not be mixed together). This is not used
253 const StreamParams* GetStream(const StreamParamsVec& streams, in GetStream() argument
255 auto found = absl::c_find_if(streams, condition); in GetStream()
256 return found == streams.end() ? nullptr : &(*found); in GetStream()
260 StreamParams* GetStream(StreamParamsVec& streams, Condition condition) { in GetStream() argument
261 auto found = absl::c_find_if(streams, condition); in GetStream()
262 return found == streams.end() ? nullptr : &(*found); in GetStream()
265 inline bool HasStreamWithNoSsrcs(const StreamParamsVec& streams) { in HasStreamWithNoSsrcs() argument
266 return GetStream(streams, in HasStreamWithNoSsrcs()
270 inline const StreamParams* GetStreamBySsrc(const StreamParamsVec& streams, in GetStreamBySsrc() argument
273 streams, [&ssrc](const StreamParams& sp) { return sp.has_ssrc(ssrc); }); in GetStreamBySsrc()
276 inline const StreamParams* GetStreamByIds(const StreamParamsVec& streams, in GetStreamByIds() argument
279 return GetStream(streams, [&groupid, &id](const StreamParams& sp) { in GetStreamByIds()
284 inline StreamParams* GetStreamByIds(StreamParamsVec& streams, in GetStreamByIds() argument
287 return GetStream(streams, [&groupid, &id](const StreamParams& sp) { in GetStreamByIds()
292 inline const StreamParams* GetStream(const StreamParamsVec& streams, in GetStream() argument
294 return GetStream(streams, [&selector](const StreamParams& sp) { in GetStream()
300 bool RemoveStream(StreamParamsVec* streams, Condition condition) { in RemoveStream() argument
301 auto iter(std::remove_if(streams->begin(), streams->end(), condition)); in RemoveStream()
302 if (iter == streams->end()) in RemoveStream()
304 streams->erase(iter, streams->end()); in RemoveStream()
308 // Removes the stream from streams. Returns true if a stream is
310 inline bool RemoveStream(StreamParamsVec* streams, in RemoveStream() argument
312 return RemoveStream(streams, [&selector](const StreamParams& sp) { in RemoveStream()
316 inline bool RemoveStreamBySsrc(StreamParamsVec* streams, uint32_t ssrc) { in RemoveStreamBySsrc() argument
318 streams, [&ssrc](const StreamParams& sp) { return sp.has_ssrc(ssrc); }); in RemoveStreamBySsrc()
320 inline bool RemoveStreamByIds(StreamParamsVec* streams, in RemoveStreamByIds() argument
323 return RemoveStream(streams, [&groupid, &id](const StreamParams& sp) { in RemoveStreamByIds()