OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 29 matching lines...) Expand all Loading... |
40 rtc::Thread* worker_thread, | 40 rtc::Thread* worker_thread, |
41 cricket::VideoCapturer* capturer, | 41 cricket::VideoCapturer* capturer, |
42 const webrtc::MediaConstraintsInterface* constraints, | 42 const webrtc::MediaConstraintsInterface* constraints, |
43 bool remote); | 43 bool remote); |
44 | 44 |
45 static rtc::scoped_refptr<VideoTrackSourceInterface> Create( | 45 static rtc::scoped_refptr<VideoTrackSourceInterface> Create( |
46 rtc::Thread* worker_thread, | 46 rtc::Thread* worker_thread, |
47 cricket::VideoCapturer* capturer, | 47 cricket::VideoCapturer* capturer, |
48 bool remote); | 48 bool remote); |
49 | 49 |
50 cricket::VideoCapturer* GetVideoCapturer() override { | |
51 return video_capturer_.get(); | |
52 } | |
53 | |
54 bool is_screencast() const override { | 50 bool is_screencast() const override { |
55 return video_capturer_->IsScreencast(); | 51 return video_capturer_->IsScreencast(); |
56 } | 52 } |
57 rtc::Optional<bool> needs_denoising() const override { | 53 rtc::Optional<bool> needs_denoising() const override { |
58 return needs_denoising_; | 54 return needs_denoising_; |
59 } | 55 } |
60 | 56 |
61 bool GetStats(Stats* stats) override; | 57 bool GetStats(Stats* stats) override; |
62 | 58 |
63 void Stop() override; | 59 void Stop() override; |
(...skipping 14 matching lines...) Expand all Loading... |
78 rtc::AsyncInvoker invoker_; | 74 rtc::AsyncInvoker invoker_; |
79 rtc::scoped_ptr<cricket::VideoCapturer> video_capturer_; | 75 rtc::scoped_ptr<cricket::VideoCapturer> video_capturer_; |
80 bool started_; | 76 bool started_; |
81 cricket::VideoFormat format_; | 77 cricket::VideoFormat format_; |
82 rtc::Optional<bool> needs_denoising_; | 78 rtc::Optional<bool> needs_denoising_; |
83 }; | 79 }; |
84 | 80 |
85 } // namespace webrtc | 81 } // namespace webrtc |
86 | 82 |
87 #endif // WEBRTC_API_VIDEOCAPTURERTRACKSOURCE_H_ | 83 #endif // WEBRTC_API_VIDEOCAPTURERTRACKSOURCE_H_ |
OLD | NEW |