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

Unified Diff: webrtc/media/base/videocapturer.h

Issue 2334683002: Add method cricket::VideoCapturer::NeedsDenoising, use in VideoCapturerTrackSource. (Closed)
Patch Set: Address pbos' comments. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/media/base/videocapturer.h
diff --git a/webrtc/media/base/videocapturer.h b/webrtc/media/base/videocapturer.h
index c9c96eeb1d299cb06eaad73c8d4734cfdc357eac..af982a97115e30562597cc3cc94a512e9aa02fce 100644
--- a/webrtc/media/base/videocapturer.h
+++ b/webrtc/media/base/videocapturer.h
@@ -175,6 +175,11 @@ class VideoCapturer : public sigslot::has_slots<>,
// implement screencast specific behavior.
virtual bool IsScreencast() const = 0;
+ // Returns denoising preference. Unset means use encoder-specific default.
perkj_webrtc 2016/09/14 13:08:27 This should not have anything todo with an encoder
nisse-webrtc 2016/09/14 13:20:23 Behavior if unset depends on the encoder. I think
perkj_webrtc 2016/09/14 13:28:22 Can you elaborate on this. To me- the whole thing
+ virtual rtc::Optional<bool> NeedsDenoising() const {
perkj_webrtc 2016/09/14 13:08:27 Also - I think this api should be identical to IsS
nisse-webrtc 2016/09/14 13:20:23 I'm afraid it has to be three-state, it's passed o
perkj_webrtc 2016/09/14 13:28:22 Acknowledged.
+ return rtc::Optional<bool>();
+ }
+
// Caps the VideoCapturer's format according to max_format. It can e.g. be
// used to prevent cameras from capturing at a resolution or framerate that
// the capturer is capable of but not performing satisfactorily at.
« webrtc/api/videocapturertracksource.cc ('K') | « webrtc/media/base/fakevideocapturer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698