| 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 24 matching lines...) Expand all Loading... |
| 35 jobject j_video_capturer, | 35 jobject j_video_capturer, |
| 36 jobject j_egl_context) | 36 jobject j_egl_context) |
| 37 : j_video_capturer_(jni, j_video_capturer), | 37 : j_video_capturer_(jni, j_video_capturer), |
| 38 j_video_capturer_class_( | 38 j_video_capturer_class_( |
| 39 jni, FindClass(jni, "org/webrtc/VideoCapturer")), | 39 jni, FindClass(jni, "org/webrtc/VideoCapturer")), |
| 40 j_observer_class_( | 40 j_observer_class_( |
| 41 jni, | 41 jni, |
| 42 FindClass(jni, | 42 FindClass(jni, |
| 43 "org/webrtc/VideoCapturer$NativeObserver")), | 43 "org/webrtc/VideoCapturer$NativeObserver")), |
| 44 surface_texture_helper_(new rtc::RefCountedObject<SurfaceTextureHelper>( | 44 surface_texture_helper_(new rtc::RefCountedObject<SurfaceTextureHelper>( |
| 45 jni, j_egl_context)), | 45 jni, "Camera SurfaceTextureHelper", j_egl_context)), |
| 46 capturer_(nullptr) { | 46 capturer_(nullptr) { |
| 47 LOG(LS_INFO) << "AndroidVideoCapturerJni ctor"; | 47 LOG(LS_INFO) << "AndroidVideoCapturerJni ctor"; |
| 48 thread_checker_.DetachFromThread(); | 48 thread_checker_.DetachFromThread(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 AndroidVideoCapturerJni::~AndroidVideoCapturerJni() { | 51 AndroidVideoCapturerJni::~AndroidVideoCapturerJni() { |
| 52 LOG(LS_INFO) << "AndroidVideoCapturerJni dtor"; | 52 LOG(LS_INFO) << "AndroidVideoCapturerJni dtor"; |
| 53 jni()->CallVoidMethod( | 53 jni()->CallVoidMethod( |
| 54 *j_video_capturer_, | 54 *j_video_capturer_, |
| 55 GetMethodID(jni(), *j_video_capturer_class_, "dispose", "()V")); | 55 GetMethodID(jni(), *j_video_capturer_class_, "dispose", "()V")); |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 JOW(void, VideoCapturer_00024NativeObserver_nativeOnOutputFormatRequest) | 240 JOW(void, VideoCapturer_00024NativeObserver_nativeOnOutputFormatRequest) |
| 241 (JNIEnv* jni, jclass, jlong j_capturer, jint j_width, jint j_height, | 241 (JNIEnv* jni, jclass, jlong j_capturer, jint j_width, jint j_height, |
| 242 jint j_fps) { | 242 jint j_fps) { |
| 243 LOG(LS_INFO) << "NativeObserver_nativeOnOutputFormatRequest"; | 243 LOG(LS_INFO) << "NativeObserver_nativeOnOutputFormatRequest"; |
| 244 reinterpret_cast<AndroidVideoCapturerJni*>(j_capturer)->OnOutputFormatRequest( | 244 reinterpret_cast<AndroidVideoCapturerJni*>(j_capturer)->OnOutputFormatRequest( |
| 245 j_width, j_height, j_fps); | 245 j_width, j_height, j_fps); |
| 246 } | 246 } |
| 247 | 247 |
| 248 } // namespace webrtc_jni | 248 } // namespace webrtc_jni |
| OLD | NEW |