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

Unified Diff: webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm

Issue 2528493004: Add method on AVFoundation capturer to adapt output format. (Closed)
Patch Set: 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/RTCAVFoundationVideoSource.mm
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm b/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm
index 528e8cb62440d3a02e490ffe20b95f49b1f4ab0a..ba5af842d33ee1588e71716cc5531ccaa49cd5c0 100644
--- a/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm
+++ b/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm
@@ -32,6 +32,10 @@
return [super initWithNativeVideoSource:source];
}
+- (void)adaptOutputFormatToWidth:(int)width height:(int)height fps:(int)fps {
magjed_webrtc 2016/11/23 13:53:40 nit: I'm not sure if you need to line up the colon
kthelgason 2016/11/23 14:01:48 The styleguide reads to me like you only need to d
magjed_webrtc 2016/11/24 13:04:31 Acknowledged.
tkchin_webrtc 2016/11/30 22:08:52 there is some leeway here. I would prefer them on
kthelgason 2016/12/01 09:16:59 Acknowledged.
+ self.capturer->AdaptOutputFormat(width, height, fps);
+}
+
- (BOOL)canUseBackCamera {
return self.capturer->CanUseBackCamera();
}

Powered by Google App Engine
This is Rietveld 408576698