| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 SetCaptureState(cricket::CS_RUNNING); | 114 SetCaptureState(cricket::CS_RUNNING); |
| 115 return cricket::CS_RUNNING; | 115 return cricket::CS_RUNNING; |
| 116 } | 116 } |
| 117 void Stop() override { | 117 void Stop() override { |
| 118 running_ = false; | 118 running_ = false; |
| 119 SetCaptureFormat(NULL); | 119 SetCaptureFormat(NULL); |
| 120 SetCaptureState(cricket::CS_STOPPED); | 120 SetCaptureState(cricket::CS_STOPPED); |
| 121 } | 121 } |
| 122 bool IsRunning() override { return running_; } | 122 bool IsRunning() override { return running_; } |
| 123 bool IsScreencast() const override { return is_screencast_; } | 123 bool IsScreencast() const override { return is_screencast_; } |
| 124 rtc::Optional<bool> NeedsDenoising() const override { | |
| 125 return needs_denoising_; | |
| 126 } | |
| 127 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override { | 124 bool GetPreferredFourccs(std::vector<uint32_t>* fourccs) override { |
| 128 fourccs->push_back(cricket::FOURCC_I420); | 125 fourccs->push_back(cricket::FOURCC_I420); |
| 129 fourccs->push_back(cricket::FOURCC_MJPG); | 126 fourccs->push_back(cricket::FOURCC_MJPG); |
| 130 return true; | 127 return true; |
| 131 } | 128 } |
| 132 | 129 |
| 133 void SetRotation(webrtc::VideoRotation rotation) { | 130 void SetRotation(webrtc::VideoRotation rotation) { |
| 134 rotation_ = rotation; | 131 rotation_ = rotation; |
| 135 } | 132 } |
| 136 | 133 |
| 137 webrtc::VideoRotation GetRotation() { return rotation_; } | 134 webrtc::VideoRotation GetRotation() { return rotation_; } |
| 138 | 135 |
| 139 void SetNeedsDenoising(rtc::Optional<bool> needs_denoising) { | |
| 140 needs_denoising_ = needs_denoising; | |
| 141 } | |
| 142 | |
| 143 private: | 136 private: |
| 144 bool running_; | 137 bool running_; |
| 145 int64_t initial_timestamp_; | 138 int64_t initial_timestamp_; |
| 146 int64_t next_timestamp_; | 139 int64_t next_timestamp_; |
| 147 const bool is_screencast_; | 140 const bool is_screencast_; |
| 148 rtc::Optional<bool> needs_denoising_; | |
| 149 webrtc::VideoRotation rotation_; | 141 webrtc::VideoRotation rotation_; |
| 150 }; | 142 }; |
| 151 | 143 |
| 152 } // namespace cricket | 144 } // namespace cricket |
| 153 | 145 |
| 154 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ | 146 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ |
| OLD | NEW |