diff options
Diffstat (limited to 'chromium/third_party/webrtc/video_engine/vie_channel_manager.h')
-rw-r--r-- | chromium/third_party/webrtc/video_engine/vie_channel_manager.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/chromium/third_party/webrtc/video_engine/vie_channel_manager.h b/chromium/third_party/webrtc/video_engine/vie_channel_manager.h index db9eb113420..2112dacb263 100644 --- a/chromium/third_party/webrtc/video_engine/vie_channel_manager.h +++ b/chromium/third_party/webrtc/video_engine/vie_channel_manager.h @@ -50,7 +50,8 @@ class ViEChannelManager: private ViEManagerBase { void SetModuleProcessThread(ProcessThread* module_process_thread); // Creates a new channel. 'channel_id' will be the id of the created channel. - int CreateChannel(int* channel_id); + int CreateChannel(int* channel_id, + const Config* config); // Creates a new channel grouped with |original_channel|. The new channel // will get its own |ViEEncoder| if |sender| is set to true. It will be a @@ -74,10 +75,22 @@ class ViEChannelManager: private ViEManagerBase { // Adds a channel to include when sending REMB. bool SetRembStatus(int channel_id, bool sender, bool receiver); + bool SetReservedTransmitBitrate(int channel_id, + uint32_t reserved_transmit_bitrate_bps); + // Updates the SSRCs for a channel. If one of the SSRCs already is registered, // it will simply be ignored and no error is returned. void UpdateSsrcs(int channel_id, const std::list<unsigned int>& ssrcs); + // Sets bandwidth estimation related configurations. + bool SetBandwidthEstimationConfig(int channel_id, + const webrtc::Config& config); + + bool GetEstimatedSendBandwidth(int channel_id, + uint32_t* estimated_bandwidth) const; + bool GetEstimatedReceiveBandwidth(int channel_id, + uint32_t* estimated_bandwidth) const; + private: // Creates a channel object connected to |vie_encoder|. Assumed to be called // protected. @@ -104,7 +117,7 @@ class ViEChannelManager: private ViEManagerBase { void ReturnChannelId(int channel_id); // Returns the iterator to the ChannelGroup containing |channel_id|. - ChannelGroup* FindGroup(int channel_id); + ChannelGroup* FindGroup(int channel_id) const; // Returns true if at least one other channels uses the same ViEEncoder as // channel_id. @@ -131,7 +144,7 @@ class ViEChannelManager: private ViEManagerBase { VoiceEngine* voice_engine_; ProcessThread* module_process_thread_; - const Config& config_; + const Config& engine_config_; }; class ViEChannelManagerScoped: private ViEManagerScopedBase { |