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

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2.h

Issue 1713493003: Enabling rtcp-rsize negotiation and fixing some issues with it. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 rtc::Optional<int> max_bandwidth_bps; 194 rtc::Optional<int> max_bandwidth_bps;
195 rtc::Optional<bool> conference_mode; 195 rtc::Optional<bool> conference_mode;
196 rtc::Optional<VideoOptions> options; 196 rtc::Optional<VideoOptions> options;
197 rtc::Optional<webrtc::RtcpMode> rtcp_mode; 197 rtc::Optional<webrtc::RtcpMode> rtcp_mode;
198 }; 198 };
199 199
200 struct ChangedRecvParameters { 200 struct ChangedRecvParameters {
201 // These optionals are unset if not changed. 201 // These optionals are unset if not changed.
202 rtc::Optional<std::vector<VideoCodecSettings>> codec_settings; 202 rtc::Optional<std::vector<VideoCodecSettings>> codec_settings;
203 rtc::Optional<std::vector<webrtc::RtpExtension>> rtp_header_extensions; 203 rtc::Optional<std::vector<webrtc::RtpExtension>> rtp_header_extensions;
204 rtc::Optional<webrtc::RtcpMode> rtcp_mode;
205 }; 204 };
206 205
207 bool GetChangedSendParameters(const VideoSendParameters& params, 206 bool GetChangedSendParameters(const VideoSendParameters& params,
208 ChangedSendParameters* changed_params) const; 207 ChangedSendParameters* changed_params) const;
209 bool GetChangedRecvParameters(const VideoRecvParameters& params, 208 bool GetChangedRecvParameters(const VideoRecvParameters& params,
210 ChangedRecvParameters* changed_params) const; 209 ChangedRecvParameters* changed_params) const;
211 210
212 bool MuteStream(uint32_t ssrc, bool mute); 211 bool MuteStream(uint32_t ssrc, bool mute);
213 212
214 void SetMaxSendBandwidth(int bps); 213 void SetMaxSendBandwidth(int bps);
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 bool default_stream, 384 bool default_stream,
386 const std::vector<VideoCodecSettings>& recv_codecs, 385 const std::vector<VideoCodecSettings>& recv_codecs,
387 bool disable_prerenderer_smoothing); 386 bool disable_prerenderer_smoothing);
388 ~WebRtcVideoReceiveStream(); 387 ~WebRtcVideoReceiveStream();
389 388
390 const std::vector<uint32_t>& GetSsrcs() const; 389 const std::vector<uint32_t>& GetSsrcs() const;
391 390
392 void SetLocalSsrc(uint32_t local_ssrc); 391 void SetLocalSsrc(uint32_t local_ssrc);
393 void SetFeedbackParameters(bool nack_enabled, 392 void SetFeedbackParameters(bool nack_enabled,
394 bool remb_enabled, 393 bool remb_enabled,
395 bool transport_cc_enabled); 394 bool transport_cc_enabled,
395 webrtc::RtcpMode rtcp_mode);
396 void SetRecvParameters(const ChangedRecvParameters& recv_params); 396 void SetRecvParameters(const ChangedRecvParameters& recv_params);
397 397
398 void RenderFrame(const webrtc::VideoFrame& frame, 398 void RenderFrame(const webrtc::VideoFrame& frame,
399 int time_to_render_ms) override; 399 int time_to_render_ms) override;
400 bool IsTextureSupported() const override; 400 bool IsTextureSupported() const override;
401 bool SmoothsRenderedFrames() const override; 401 bool SmoothsRenderedFrames() const override;
402 bool IsDefaultStream() const; 402 bool IsDefaultStream() const;
403 403
404 void SetSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink); 404 void SetSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink);
405 405
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 webrtc::Call::Config::BitrateConfig bitrate_config_; 516 webrtc::Call::Config::BitrateConfig bitrate_config_;
517 // TODO(deadbeef): Don't duplicate information between 517 // TODO(deadbeef): Don't duplicate information between
518 // send_params/recv_params, rtp_extensions, options, etc. 518 // send_params/recv_params, rtp_extensions, options, etc.
519 VideoSendParameters send_params_; 519 VideoSendParameters send_params_;
520 VideoRecvParameters recv_params_; 520 VideoRecvParameters recv_params_;
521 }; 521 };
522 522
523 } // namespace cricket 523 } // namespace cricket
524 524
525 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 525 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | webrtc/media/engine/webrtcvideoengine2.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698