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

Unified Diff: talk/app/webrtc/androidvideocapturer.cc

Issue 1178643006: VideoCapturerAndroid: Add possibility to request a new resolution from the video adapter. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: added log message Created 5 years, 6 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
« no previous file with comments | « talk/app/webrtc/androidvideocapturer.h ('k') | talk/app/webrtc/java/jni/androidvideocapturer_jni.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/androidvideocapturer.cc
diff --git a/talk/app/webrtc/androidvideocapturer.cc b/talk/app/webrtc/androidvideocapturer.cc
index 2c9c0310240d6f7553e304a7eed6001d1b9f3fa6..65f883ef9d04f0a57bda6099000932513b6c3c94 100644
--- a/talk/app/webrtc/androidvideocapturer.cc
+++ b/talk/app/webrtc/androidvideocapturer.cc
@@ -242,4 +242,13 @@ void AndroidVideoCapturer::OnIncomingFrame(void* frame_data,
SignalFrameCaptured(this, frame_factory_->GetCapturedFrame());
}
+void AndroidVideoCapturer::OnOutputFormatRequest(
+ int width, int height, int fps) {
+ CHECK(thread_checker_.CalledOnValidThread());
+ const cricket::VideoFormat& current = video_adapter()->output_format();
+ cricket::VideoFormat format(
+ width, height, cricket::VideoFormat::FpsToInterval(fps), current.fourcc);
+ video_adapter()->OnOutputFormatRequest(format);
+}
+
} // namespace webrtc
« no previous file with comments | « talk/app/webrtc/androidvideocapturer.h ('k') | talk/app/webrtc/java/jni/androidvideocapturer_jni.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698