OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #ifndef WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_GROUP_H_ | 11 #ifndef WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_GROUP_H_ |
12 #define WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_GROUP_H_ | 12 #define WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_GROUP_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
15 #include <map> | 15 #include <map> |
16 #include <set> | 16 #include <set> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/base/criticalsection.h" | 19 #include "webrtc/base/criticalsection.h" |
20 #include "webrtc/base/scoped_ptr.h" | 20 #include "webrtc/base/scoped_ptr.h" |
21 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" | 21 #include "webrtc/modules/bitrate_controller/include/bitrate_controller.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 class BitrateAllocator; | 25 class BitrateAllocator; |
26 class CallStats; | 26 class CallStats; |
27 class Config; | 27 class Config; |
28 class EncoderStateFeedback; | 28 class EncoderStateFeedback; |
| 29 class I420FrameCallback; |
29 class PacedSender; | 30 class PacedSender; |
30 class PacketRouter; | 31 class PacketRouter; |
31 class ProcessThread; | 32 class ProcessThread; |
32 class RemoteBitrateEstimator; | 33 class RemoteBitrateEstimator; |
| 34 class SendStatisticsProxy; |
33 class ViEChannel; | 35 class ViEChannel; |
34 class ViEEncoder; | 36 class ViEEncoder; |
35 class VieRemb; | 37 class VieRemb; |
36 class VoEVideoSync; | 38 class VoEVideoSync; |
37 | 39 |
38 typedef std::list<ViEChannel*> ChannelList; | 40 typedef std::list<ViEChannel*> ChannelList; |
39 | 41 |
40 // Channel group contains data common for several channels. All channels in the | 42 // Channel group contains data common for several channels. All channels in the |
41 // group are assumed to send/receive data to the same end-point. | 43 // group are assumed to send/receive data to the same end-point. |
42 class ChannelGroup : public BitrateObserver { | 44 class ChannelGroup : public BitrateObserver { |
43 public: | 45 public: |
44 explicit ChannelGroup(ProcessThread* process_thread); | 46 explicit ChannelGroup(ProcessThread* process_thread); |
45 ~ChannelGroup(); | 47 ~ChannelGroup(); |
46 bool CreateSendChannel(int channel_id, | 48 bool CreateSendChannel(int channel_id, |
47 Transport* transport, | 49 Transport* transport, |
| 50 SendStatisticsProxy* stats_proxy, |
| 51 I420FrameCallback* pre_encode_callback, |
48 int number_of_cores, | 52 int number_of_cores, |
49 const std::vector<uint32_t>& ssrcs); | 53 const std::vector<uint32_t>& ssrcs); |
50 bool CreateReceiveChannel(int channel_id, | 54 bool CreateReceiveChannel(int channel_id, |
51 Transport* transport, | 55 Transport* transport, |
52 int number_of_cores); | 56 int number_of_cores); |
53 void DeleteChannel(int channel_id); | 57 void DeleteChannel(int channel_id); |
54 ViEChannel* GetChannel(int channel_id) const; | 58 ViEChannel* GetChannel(int channel_id) const; |
55 ViEEncoder* GetEncoder(int channel_id) const; | 59 ViEEncoder* GetEncoder(int channel_id) const; |
56 void SetSyncInterface(VoEVideoSync* sync_interface); | 60 void SetSyncInterface(VoEVideoSync* sync_interface); |
57 | 61 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Registered at construct time and assumed to outlive this class. | 99 // Registered at construct time and assumed to outlive this class. |
96 ProcessThread* const process_thread_; | 100 ProcessThread* const process_thread_; |
97 rtc::scoped_ptr<ProcessThread> pacer_thread_; | 101 rtc::scoped_ptr<ProcessThread> pacer_thread_; |
98 | 102 |
99 rtc::scoped_ptr<BitrateController> bitrate_controller_; | 103 rtc::scoped_ptr<BitrateController> bitrate_controller_; |
100 }; | 104 }; |
101 | 105 |
102 } // namespace webrtc | 106 } // namespace webrtc |
103 | 107 |
104 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_GROUP_H_ | 108 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_GROUP_H_ |
OLD | NEW |