OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |