Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: webrtc/media/base/testutils.cc

Issue 2503403004: Add support for FEC-FR semantics in StreamParams. (Closed)
Patch Set: No inline inside class declaration. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/media/base/testutils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 sp.ssrcs.push_back(rtx_ssrcs[i]); 261 sp.ssrcs.push_back(rtx_ssrcs[i]);
262 std::vector<uint32_t> fid_ssrcs; 262 std::vector<uint32_t> fid_ssrcs;
263 fid_ssrcs.push_back(ssrcs[i]); 263 fid_ssrcs.push_back(ssrcs[i]);
264 fid_ssrcs.push_back(rtx_ssrcs[i]); 264 fid_ssrcs.push_back(rtx_ssrcs[i]);
265 cricket::SsrcGroup fid_group(cricket::kFidSsrcGroupSemantics, fid_ssrcs); 265 cricket::SsrcGroup fid_group(cricket::kFidSsrcGroupSemantics, fid_ssrcs);
266 sp.ssrc_groups.push_back(fid_group); 266 sp.ssrc_groups.push_back(fid_group);
267 } 267 }
268 return sp; 268 return sp;
269 } 269 }
270 270
271 cricket::StreamParams CreatePrimaryWithFecFrStreamParams(
272 const std::string& cname,
273 uint32_t primary_ssrc,
274 uint32_t flexfec_ssrc) {
275 cricket::StreamParams sp;
276 cricket::SsrcGroup sg(cricket::kFecFrSsrcGroupSemantics,
277 {primary_ssrc, flexfec_ssrc});
278 sp.ssrcs = {primary_ssrc};
279 sp.ssrc_groups.push_back(sg);
280 sp.cname = cname;
281 return sp;
282 }
283
271 } // namespace cricket 284 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/base/testutils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698