| OLD | NEW |
| 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 Loading... |
| 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 | |
| 330 rtc::ThreadChecker thread_checker_; | 327 rtc::ThreadChecker thread_checker_; |
| 331 rtc::AsyncInvoker invoker_; | 328 rtc::AsyncInvoker invoker_; |
| 332 rtc::Thread* worker_thread_; | 329 rtc::Thread* worker_thread_; |
| 333 const std::vector<uint32_t> ssrcs_ ACCESS_ON(&thread_checker_); | 330 const std::vector<uint32_t> ssrcs_ ACCESS_ON(&thread_checker_); |
| 334 const std::vector<SsrcGroup> ssrc_groups_ ACCESS_ON(&thread_checker_); | 331 const std::vector<SsrcGroup> ssrc_groups_ ACCESS_ON(&thread_checker_); |
| 335 webrtc::Call* const call_; | 332 webrtc::Call* const call_; |
| 336 const bool enable_cpu_overuse_detection_; | 333 const bool enable_cpu_overuse_detection_; |
| 337 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_ | 334 rtc::VideoSourceInterface<webrtc::VideoFrame>* source_ |
| 338 ACCESS_ON(&thread_checker_); | 335 ACCESS_ON(&thread_checker_); |
| 339 WebRtcVideoEncoderFactory* const external_encoder_factory_ | 336 WebRtcVideoEncoderFactory* const external_encoder_factory_ |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 // send_params/recv_params, rtp_extensions, options, etc. | 495 // send_params/recv_params, rtp_extensions, options, etc. |
| 499 VideoSendParameters send_params_; | 496 VideoSendParameters send_params_; |
| 500 VideoOptions default_send_options_; | 497 VideoOptions default_send_options_; |
| 501 VideoRecvParameters recv_params_; | 498 VideoRecvParameters recv_params_; |
| 502 int64_t last_stats_log_ms_; | 499 int64_t last_stats_log_ms_; |
| 503 }; | 500 }; |
| 504 | 501 |
| 505 } // namespace cricket | 502 } // namespace cricket |
| 506 | 503 |
| 507 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ | 504 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ |
| OLD | NEW |