OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 22 matching lines...) Expand all Loading... |
33 // are used for this media source. | 33 // are used for this media source. |
34 // E.x: Consider a source that is sent as 3 simulcast streams | 34 // E.x: Consider a source that is sent as 3 simulcast streams |
35 // Let the simulcast elements have SSRC 10, 20, 30. | 35 // Let the simulcast elements have SSRC 10, 20, 30. |
36 // Let each simulcast element use FEC and let the protection packets have | 36 // Let each simulcast element use FEC and let the protection packets have |
37 // SSRC 11,21,31. | 37 // SSRC 11,21,31. |
38 // To describe this 4 SsrcGroups are needed, | 38 // To describe this 4 SsrcGroups are needed, |
39 // StreamParams would then contain ssrc = {10,11,20,21,30,31} and | 39 // StreamParams would then contain ssrc = {10,11,20,21,30,31} and |
40 // ssrc_groups = {{SIM,{10,20,30}, {FEC,{10,11}, {FEC, {20,21}, {FEC {30,31}}} | 40 // ssrc_groups = {{SIM,{10,20,30}, {FEC,{10,11}, {FEC, {20,21}, {FEC {30,31}}} |
41 // Please see RFC 5576. | 41 // Please see RFC 5576. |
42 | 42 |
43 #ifndef TALK_MEDIA_BASE_STREAMPARAMS_H_ | 43 #ifndef WEBRTC_MEDIA_BASE_STREAMPARAMS_H_ |
44 #define TALK_MEDIA_BASE_STREAMPARAMS_H_ | 44 #define WEBRTC_MEDIA_BASE_STREAMPARAMS_H_ |
45 | 45 |
46 #include <algorithm> | 46 #include <algorithm> |
47 #include <set> | 47 #include <set> |
48 #include <string> | 48 #include <string> |
49 #include <vector> | 49 #include <vector> |
50 | 50 |
51 #include "webrtc/base/basictypes.h" | 51 #include "webrtc/base/basictypes.h" |
52 #include "webrtc/base/constructormagic.h" | 52 #include "webrtc/base/constructormagic.h" |
53 | 53 |
54 namespace cricket { | 54 namespace cricket { |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 // we can test this function. | 310 // we can test this function. |
311 bool IsOneSsrcStream(const StreamParams& sp); | 311 bool IsOneSsrcStream(const StreamParams& sp); |
312 | 312 |
313 // Checks if |sp| defines parameters for one Simulcast stream. There may be RTX | 313 // Checks if |sp| defines parameters for one Simulcast stream. There may be RTX |
314 // streams associated with the simulcast streams. Leaving as non-static so we | 314 // streams associated with the simulcast streams. Leaving as non-static so we |
315 // can test this function. | 315 // can test this function. |
316 bool IsSimulcastStream(const StreamParams& sp); | 316 bool IsSimulcastStream(const StreamParams& sp); |
317 | 317 |
318 } // namespace cricket | 318 } // namespace cricket |
319 | 319 |
320 #endif // TALK_MEDIA_BASE_STREAMPARAMS_H_ | 320 #endif // WEBRTC_MEDIA_BASE_STREAMPARAMS_H_ |
OLD | NEW |