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

Unified Diff: webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h

Issue 2488973002: Split avfoundationcapturer classes in separate files. (Closed)
Patch Set: Decrease the similarity to 10% Created 4 years, 1 month 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/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
diff --git a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
index ebabb8ce20d7e2202b73eca3e20e03d487324485..2de3d22cdc29bc30142243067319d7d78556d1fc 100644
--- a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
+++ b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
@@ -23,6 +23,15 @@ namespace rtc {
class Thread;
} // namespace rtc
+// Sets device format for the provided capture device. Returns YES/NO depending
+// on success.
+// TODO(denicija): When this file is split this static method should be
+// reconsidered.
+// Perhaps adding a category on AVCaptureDevice would be better.
+BOOL SetFormatForCaptureDevice(AVCaptureDevice* device,
magjed_webrtc 2016/11/10 13:22:45 You are not allowed to add stuff to the global nam
daniela-webrtc 2016/11/11 13:23:10 Done.
+ AVCaptureSession* session,
+ const cricket::VideoFormat& format);
+
namespace webrtc {
class AVFoundationVideoCapturer : public cricket::VideoCapturer {

Powered by Google App Engine
This is Rietveld 408576698