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

Unified Diff: webrtc/api/android/jni/androidvideotracksource_jni.cc

Issue 2350933006: Android VideoSource: Add adaptOutputFormat function (Closed)
Patch Set: Change deprecated annotation Created 4 years, 3 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
Index: webrtc/api/android/jni/androidvideotracksource_jni.cc
diff --git a/webrtc/api/android/jni/androidvideotracksource_jni.cc b/webrtc/api/android/jni/androidvideotracksource_jni.cc
index 2d1529938a22079cb5fe66625db0786e9739365c..9b251276b607c87c2de9114ef23d108242691890 100644
--- a/webrtc/api/android/jni/androidvideotracksource_jni.cc
+++ b/webrtc/api/android/jni/androidvideotracksource_jni.cc
@@ -87,4 +87,12 @@ JOW_OBSERVER_METHOD(void, nativeOnOutputFormatRequest)
source->OnOutputFormatRequest(j_width, j_height, j_fps);
}
+JOW(void, VideoSource_nativeAdaptOutputFormat)
sakal 2016/09/20 11:55:03 I don't feel like this is the file this method bel
magjed_webrtc 2016/09/20 12:27:40 I hear you, and I know that this file is only used
+(JNIEnv* jni, jclass, jlong j_source, jint j_width, jint j_height, jint j_fps) {
+ LOG(LS_INFO) << "VideoSource_nativeAdaptOutputFormat";
+ webrtc::AndroidVideoTrackSource* source =
+ AndroidVideoTrackSourceFromJavaProxy(j_source);
+ source->OnOutputFormatRequest(j_width, j_height, j_fps);
sakal 2016/09/20 11:55:03 This path is also going to be changed in a follow-
magjed_webrtc 2016/09/20 12:27:40 You mean change the function name of OnOutputForma
+}
+
} // namespace webrtc_jni

Powered by Google App Engine
This is Rietveld 408576698