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

Unified Diff: webrtc/sdk/android/src/jni/native_handle_impl.h

Issue 2997663002: Support Java VideoFrames in MediaCodecVideoEncoder. (Closed)
Patch Set: Address comments. Created 3 years, 4 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/sdk/android/src/jni/native_handle_impl.h
diff --git a/webrtc/sdk/android/src/jni/native_handle_impl.h b/webrtc/sdk/android/src/jni/native_handle_impl.h
index 65da9f7f0ee0500596fc21564c60733785e02259..834441a7c685f33b675ff4288c629ab0b9f42c02 100644
--- a/webrtc/sdk/android/src/jni/native_handle_impl.h
+++ b/webrtc/sdk/android/src/jni/native_handle_impl.h
@@ -156,6 +156,17 @@ class AndroidVideoBufferFactory {
jmethodID j_get_height_id_;
};
+class JavaVideoFrameFactory {
+ public:
+ JavaVideoFrameFactory(JNIEnv* jni);
+
+ jobject ToJavaFrame(JNIEnv* jni, const webrtc::VideoFrame& frame) const;
+
+ private:
+ ScopedGlobalRef<jclass> j_video_frame_class_;
+ jmethodID j_video_frame_constructor_id_;
+};
+
} // namespace webrtc_jni
#endif // WEBRTC_SDK_ANDROID_SRC_JNI_NATIVE_HANDLE_IMPL_H_
« no previous file with comments | « webrtc/sdk/android/src/jni/classreferenceholder.cc ('k') | webrtc/sdk/android/src/jni/native_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698