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

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

Issue 1745003002: Move suspend_below_min_bitrate from VideoOptions to MediaConfig. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 326
327 void* ConfigureVideoEncoderSettings(const VideoCodec& codec, 327 void* ConfigureVideoEncoderSettings(const VideoCodec& codec,
328 const VideoOptions& options, 328 const VideoOptions& options,
329 bool is_screencast) 329 bool is_screencast)
330 EXCLUSIVE_LOCKS_REQUIRED(lock_); 330 EXCLUSIVE_LOCKS_REQUIRED(lock_);
331 331
332 AllocatedEncoder CreateVideoEncoder(const VideoCodec& codec) 332 AllocatedEncoder CreateVideoEncoder(const VideoCodec& codec)
333 EXCLUSIVE_LOCKS_REQUIRED(lock_); 333 EXCLUSIVE_LOCKS_REQUIRED(lock_);
334 void DestroyVideoEncoder(AllocatedEncoder* encoder) 334 void DestroyVideoEncoder(AllocatedEncoder* encoder)
335 EXCLUSIVE_LOCKS_REQUIRED(lock_); 335 EXCLUSIVE_LOCKS_REQUIRED(lock_);
336 void SetCodecAndOptions(const VideoCodecSettings& codec, 336 void SetCodec(const VideoCodecSettings& codec)
337 const VideoOptions& options)
338 EXCLUSIVE_LOCKS_REQUIRED(lock_); 337 EXCLUSIVE_LOCKS_REQUIRED(lock_);
339 void RecreateWebRtcStream() EXCLUSIVE_LOCKS_REQUIRED(lock_); 338 void RecreateWebRtcStream() EXCLUSIVE_LOCKS_REQUIRED(lock_);
340 webrtc::VideoEncoderConfig CreateVideoEncoderConfig( 339 webrtc::VideoEncoderConfig CreateVideoEncoderConfig(
341 const Dimensions& dimensions, 340 const Dimensions& dimensions,
342 const VideoCodec& codec) const EXCLUSIVE_LOCKS_REQUIRED(lock_); 341 const VideoCodec& codec) const EXCLUSIVE_LOCKS_REQUIRED(lock_);
343 void SetDimensions(int width, int height, bool is_screencast) 342 void SetDimensions(int width, int height, bool is_screencast)
344 EXCLUSIVE_LOCKS_REQUIRED(lock_); 343 EXCLUSIVE_LOCKS_REQUIRED(lock_);
345 344
346 rtc::ThreadChecker thread_checker_; 345 rtc::ThreadChecker thread_checker_;
347 rtc::AsyncInvoker invoker_; 346 rtc::AsyncInvoker invoker_;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 491
493 uint32_t rtcp_receiver_report_ssrc_; 492 uint32_t rtcp_receiver_report_ssrc_;
494 bool sending_; 493 bool sending_;
495 webrtc::Call* const call_; 494 webrtc::Call* const call_;
496 495
497 uint32_t default_send_ssrc_; 496 uint32_t default_send_ssrc_;
498 497
499 DefaultUnsignalledSsrcHandler default_unsignalled_ssrc_handler_; 498 DefaultUnsignalledSsrcHandler default_unsignalled_ssrc_handler_;
500 UnsignalledSsrcHandler* const unsignalled_ssrc_handler_; 499 UnsignalledSsrcHandler* const unsignalled_ssrc_handler_;
501 500
502 const bool signal_cpu_adaptation_; 501 const MediaConfig::Video video_config_;
503 const bool disable_prerenderer_smoothing_;
504 502
505 rtc::CriticalSection stream_crit_; 503 rtc::CriticalSection stream_crit_;
506 // Using primary-ssrc (first ssrc) as key. 504 // Using primary-ssrc (first ssrc) as key.
507 std::map<uint32_t, WebRtcVideoSendStream*> send_streams_ 505 std::map<uint32_t, WebRtcVideoSendStream*> send_streams_
508 GUARDED_BY(stream_crit_); 506 GUARDED_BY(stream_crit_);
509 std::map<uint32_t, WebRtcVideoReceiveStream*> receive_streams_ 507 std::map<uint32_t, WebRtcVideoReceiveStream*> receive_streams_
510 GUARDED_BY(stream_crit_); 508 GUARDED_BY(stream_crit_);
511 std::set<uint32_t> send_ssrcs_ GUARDED_BY(stream_crit_); 509 std::set<uint32_t> send_ssrcs_ GUARDED_BY(stream_crit_);
512 std::set<uint32_t> receive_ssrcs_ GUARDED_BY(stream_crit_); 510 std::set<uint32_t> receive_ssrcs_ GUARDED_BY(stream_crit_);
513 511
514 rtc::Optional<VideoCodecSettings> send_codec_; 512 rtc::Optional<VideoCodecSettings> send_codec_;
515 std::vector<webrtc::RtpExtension> send_rtp_extensions_; 513 std::vector<webrtc::RtpExtension> send_rtp_extensions_;
516 514
517 WebRtcVideoEncoderFactory* const external_encoder_factory_; 515 WebRtcVideoEncoderFactory* const external_encoder_factory_;
518 WebRtcVideoDecoderFactory* const external_decoder_factory_; 516 WebRtcVideoDecoderFactory* const external_decoder_factory_;
519 std::vector<VideoCodecSettings> recv_codecs_; 517 std::vector<VideoCodecSettings> recv_codecs_;
520 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; 518 std::vector<webrtc::RtpExtension> recv_rtp_extensions_;
521 webrtc::Call::Config::BitrateConfig bitrate_config_; 519 webrtc::Call::Config::BitrateConfig bitrate_config_;
522 // TODO(deadbeef): Don't duplicate information between 520 // TODO(deadbeef): Don't duplicate information between
523 // send_params/recv_params, rtp_extensions, options, etc. 521 // send_params/recv_params, rtp_extensions, options, etc.
524 VideoSendParameters send_params_; 522 VideoSendParameters send_params_;
525 VideoRecvParameters recv_params_; 523 VideoRecvParameters recv_params_;
526 }; 524 };
527 525
528 } // namespace cricket 526 } // namespace cricket
529 527
530 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 528 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698