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

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

Issue 2528493004: Add method on AVFoundation capturer to adapt output format. (Closed)
Patch Set: align colons in method name Created 4 years 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
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..96c5c3649a4a13f9ed4f9ee2504c068d643831b6 100644
--- a/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm
+++ b/webrtc/sdk/objc/Framework/Classes/RTCAVFoundationVideoSource.mm
@@ -32,6 +32,12 @@
return [super initWithNativeVideoSource:source];
}
+- (void)adaptOutputFormatToWidth:(int)width
+ height:(int)height
+ fps:(int)fps {
+ self.capturer->AdaptOutputFormat(width, height, fps);
+}
+
- (BOOL)canUseBackCamera {
return self.capturer->CanUseBackCamera();
}
« no previous file with comments | « no previous file | webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698