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

Side by Side Diff: webrtc/media/base/fakevideocapturer.h

Issue 2433293003: Revert of Add method cricket::VideoCapturer::NeedsDenoising, use in VideoCapturerTrackSource. (Closed)
Patch Set: Solved patch conflicts. Created 4 years, 2 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/api/videocapturertracksource_unittest.cc ('k') | webrtc/media/base/videocapturer.h » ('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) 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
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_
OLDNEW
« no previous file with comments | « webrtc/api/videocapturertracksource_unittest.cc ('k') | webrtc/media/base/videocapturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698