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

Side by Side Diff: webrtc/media/base/streamparams.h

Issue 2609783002: Reland of place basictypes.h with stdint.h for int_t types. (Closed)
Patch Set: add basictypes.h to systeminfo.cc Created 3 years, 11 months 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/examples/peerconnection/client/defaults.h ('k') | webrtc/media/base/videocapturer.h » ('j') | 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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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
11 // This file contains structures for describing SSRCs from a media source such 11 // This file contains structures for describing SSRCs from a media source such
12 // as a MediaStreamTrack when it is sent across an RTP session. Multiple media 12 // as a MediaStreamTrack when it is sent across an RTP session. Multiple media
13 // sources may be sent across the same RTP session, each of them will be 13 // sources may be sent across the same RTP session, each of them will be
14 // described by one StreamParams object 14 // described by one StreamParams object
15 // SsrcGroup is used to describe the relationship between the SSRCs that 15 // SsrcGroup is used to describe the relationship between the SSRCs that
16 // are used for this media source. 16 // are used for this media source.
17 // E.x: Consider a source that is sent as 3 simulcast streams 17 // E.x: Consider a source that is sent as 3 simulcast streams
18 // Let the simulcast elements have SSRC 10, 20, 30. 18 // Let the simulcast elements have SSRC 10, 20, 30.
19 // Let each simulcast element use FEC and let the protection packets have 19 // Let each simulcast element use FEC and let the protection packets have
20 // SSRC 11,21,31. 20 // SSRC 11,21,31.
21 // To describe this 4 SsrcGroups are needed, 21 // To describe this 4 SsrcGroups are needed,
22 // StreamParams would then contain ssrc = {10,11,20,21,30,31} and 22 // StreamParams would then contain ssrc = {10,11,20,21,30,31} and
23 // ssrc_groups = {{SIM,{10,20,30}, {FEC,{10,11}, {FEC, {20,21}, {FEC {30,31}}} 23 // ssrc_groups = {{SIM,{10,20,30}, {FEC,{10,11}, {FEC, {20,21}, {FEC {30,31}}}
24 // Please see RFC 5576. 24 // Please see RFC 5576.
25 25
26 #ifndef WEBRTC_MEDIA_BASE_STREAMPARAMS_H_ 26 #ifndef WEBRTC_MEDIA_BASE_STREAMPARAMS_H_
27 #define WEBRTC_MEDIA_BASE_STREAMPARAMS_H_ 27 #define WEBRTC_MEDIA_BASE_STREAMPARAMS_H_
28 28
29 #include <stdint.h>
30
29 #include <algorithm> 31 #include <algorithm>
30 #include <set> 32 #include <set>
31 #include <string> 33 #include <string>
32 #include <vector> 34 #include <vector>
33 35
34 #include "webrtc/base/basictypes.h"
35 #include "webrtc/base/constructormagic.h" 36 #include "webrtc/base/constructormagic.h"
36 37
37 namespace cricket { 38 namespace cricket {
38 39
39 extern const char kFecSsrcGroupSemantics[]; 40 extern const char kFecSsrcGroupSemantics[];
40 extern const char kFecFrSsrcGroupSemantics[]; 41 extern const char kFecFrSsrcGroupSemantics[];
41 extern const char kFidSsrcGroupSemantics[]; 42 extern const char kFidSsrcGroupSemantics[];
42 extern const char kSimSsrcGroupSemantics[]; 43 extern const char kSimSsrcGroupSemantics[];
43 44
44 struct SsrcGroup { 45 struct SsrcGroup {
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 bool IsOneSsrcStream(const StreamParams& sp); 308 bool IsOneSsrcStream(const StreamParams& sp);
308 309
309 // Checks if |sp| defines parameters for one Simulcast stream. There may be RTX 310 // Checks if |sp| defines parameters for one Simulcast stream. There may be RTX
310 // streams associated with the simulcast streams. Leaving as non-static so we 311 // streams associated with the simulcast streams. Leaving as non-static so we
311 // can test this function. 312 // can test this function.
312 bool IsSimulcastStream(const StreamParams& sp); 313 bool IsSimulcastStream(const StreamParams& sp);
313 314
314 } // namespace cricket 315 } // namespace cricket
315 316
316 #endif // WEBRTC_MEDIA_BASE_STREAMPARAMS_H_ 317 #endif // WEBRTC_MEDIA_BASE_STREAMPARAMS_H_
OLDNEW
« no previous file with comments | « webrtc/examples/peerconnection/client/defaults.h ('k') | webrtc/media/base/videocapturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698