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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 jmethodID j_get_rotation_id_; 149 jmethodID j_get_rotation_id_;
150 jmethodID j_get_timestamp_ns_id_; 150 jmethodID j_get_timestamp_ns_id_;
151 151
152 ScopedGlobalRef<jclass> j_video_frame_buffer_class_; 152 ScopedGlobalRef<jclass> j_video_frame_buffer_class_;
153 jmethodID j_retain_id_; 153 jmethodID j_retain_id_;
154 jmethodID j_release_id_; 154 jmethodID j_release_id_;
155 jmethodID j_get_width_id_; 155 jmethodID j_get_width_id_;
156 jmethodID j_get_height_id_; 156 jmethodID j_get_height_id_;
157 }; 157 };
158 158
159 class JavaVideoFrameFactory {
160 public:
161 JavaVideoFrameFactory(JNIEnv* jni);
162
163 jobject ToJavaFrame(JNIEnv* jni, const webrtc::VideoFrame& frame) const;
164
165 private:
166 ScopedGlobalRef<jclass> j_video_frame_class_;
167 jmethodID j_video_frame_constructor_id_;
168 };
169
159 } // namespace webrtc_jni 170 } // namespace webrtc_jni
160 171
161 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_NATIVE_HANDLE_IMPL_H_ 172 #endif // WEBRTC_SDK_ANDROID_SRC_JNI_NATIVE_HANDLE_IMPL_H_
OLDNEW
« 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