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

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

Issue 2716643002: Add framerate to VideoSinkWants and ability to signal on overuse (Closed)
Patch Set: Comments Created 3 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
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.cc ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 void RecreateWebRtcStream(); 317 void RecreateWebRtcStream();
318 webrtc::VideoEncoderConfig CreateVideoEncoderConfig( 318 webrtc::VideoEncoderConfig CreateVideoEncoderConfig(
319 const VideoCodec& codec) const; 319 const VideoCodec& codec) const;
320 void ReconfigureEncoder(); 320 void ReconfigureEncoder();
321 bool ValidateRtpParameters(const webrtc::RtpParameters& parameters); 321 bool ValidateRtpParameters(const webrtc::RtpParameters& parameters);
322 322
323 // Calls Start or Stop according to whether or not |sending_| is true, 323 // Calls Start or Stop according to whether or not |sending_| is true,
324 // and whether or not the encoding in |rtp_parameters_| is active. 324 // and whether or not the encoding in |rtp_parameters_| is active.
325 void UpdateSendState(); 325 void UpdateSendState();
326 326
327 webrtc::VideoSendStream::DegradationPreference GetDegradationPreference()
328 const EXCLUSIVE_LOCKS_REQUIRED(&thread_checker_);
329
327 rtc::ThreadChecker thread_checker_; 330 rtc::ThreadChecker thread_checker_;
328 rtc::AsyncInvoker invoker_; 331 rtc::AsyncInvoker invoker_;
329 rtc::Thread* worker_thread_; 332 rtc::Thread* worker_thread_;
330 const std::vector<uint32_t> ssrcs_ ACCESS_ON(&thread_checker_); 333 const std::vector<uint32_t> ssrcs_ ACCESS_ON(&thread_checker_);
331 const std::vector<SsrcGroup> ssrc_groups_ ACCESS_ON(&thread_checker_); 334 const std::vector<SsrcGroup> ssrc_groups_ ACCESS_ON(&thread_checker_);
332 webrtc::Call* const call_; 335 webrtc::Call* const call_;
333 const bool enable_cpu_overuse_detection_; 336 const bool enable_cpu_overuse_detection_;
334 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_ 337 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_
335 ACCESS_ON(&thread_checker_); 338 ACCESS_ON(&thread_checker_);
336 WebRtcVideoEncoderFactory* const external_encoder_factory_ 339 WebRtcVideoEncoderFactory* const external_encoder_factory_
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 // send_params/recv_params, rtp_extensions, options, etc. 498 // send_params/recv_params, rtp_extensions, options, etc.
496 VideoSendParameters send_params_; 499 VideoSendParameters send_params_;
497 VideoOptions default_send_options_; 500 VideoOptions default_send_options_;
498 VideoRecvParameters recv_params_; 501 VideoRecvParameters recv_params_;
499 int64_t last_stats_log_ms_; 502 int64_t last_stats_log_ms_;
500 }; 503 };
501 504
502 } // namespace cricket 505 } // namespace cricket
503 506
504 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 507 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.cc ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698