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

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

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
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..8bf949b36f299703a1047bc83af8d8ec7acefa82 100644
--- a/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
+++ b/webrtc/sdk/objc/Framework/Classes/avfoundationvideocapturer.h
@@ -58,6 +58,10 @@ class AVFoundationVideoCapturer : public cricket::VideoCapturer {
void CaptureSampleBuffer(CMSampleBufferRef sample_buffer,
webrtc::VideoRotation rotation);
+ // Called to adjust the size of output frames to supplied |width| and
+ // |height|. Also drops frames to make the output match |fps|.
+ void AdaptOutputFormat(int width, int height, int fps);
+
private:
RTCAVFoundationVideoCapturerInternal *_capturer;
webrtc::I420BufferPool _buffer_pool;

Powered by Google App Engine
This is Rietveld 408576698