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 bool needs_denoising() const override { return needs_denoising_; } | 53 bool needs_denoising() const override { return needs_denoising_; } |
58 | 54 |
59 void Stop() override; | 55 void Stop() override; |
60 void Restart() override; | 56 void Restart() override; |
61 | 57 |
62 protected: | 58 protected: |
63 VideoCapturerTrackSource(rtc::Thread* worker_thread, | 59 VideoCapturerTrackSource(rtc::Thread* worker_thread, |
(...skipping 10 matching lines...) Expand all Loading... |
74 rtc::AsyncInvoker invoker_; | 70 rtc::AsyncInvoker invoker_; |
75 rtc::scoped_ptr<cricket::VideoCapturer> video_capturer_; | 71 rtc::scoped_ptr<cricket::VideoCapturer> video_capturer_; |
76 bool started_; | 72 bool started_; |
77 cricket::VideoFormat format_; | 73 cricket::VideoFormat format_; |
78 bool needs_denoising_; | 74 bool needs_denoising_; |
79 }; | 75 }; |
80 | 76 |
81 } // namespace webrtc | 77 } // namespace webrtc |
82 | 78 |
83 #endif // WEBRTC_API_VIDEOCAPTURERTRACKSOURCE_H_ | 79 #endif // WEBRTC_API_VIDEOCAPTURERTRACKSOURCE_H_ |
OLD | NEW |