| 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 |
| 11 #include "webrtc/api/android/jni/androidvideocapturer_jni.h" | 11 #include "webrtc/api/java/jni/androidvideocapturer_jni.h" |
| 12 #include "webrtc/api/android/jni/classreferenceholder.h" | 12 #include "webrtc/api/java/jni/classreferenceholder.h" |
| 13 #include "webrtc/api/android/jni/native_handle_impl.h" | 13 #include "webrtc/api/java/jni/native_handle_impl.h" |
| 14 #include "webrtc/api/android/jni/surfacetexturehelper_jni.h" | 14 #include "webrtc/api/java/jni/surfacetexturehelper_jni.h" |
| 15 #include "third_party/libyuv/include/libyuv/convert.h" | 15 #include "third_party/libyuv/include/libyuv/convert.h" |
| 16 #include "webrtc/base/bind.h" | 16 #include "webrtc/base/bind.h" |
| 17 | 17 |
| 18 namespace webrtc_jni { | 18 namespace webrtc_jni { |
| 19 | 19 |
| 20 jobject AndroidVideoCapturerJni::application_context_ = nullptr; | 20 jobject AndroidVideoCapturerJni::application_context_ = nullptr; |
| 21 | 21 |
| 22 // static | 22 // static |
| 23 int AndroidVideoCapturerJni::SetAndroidObjects(JNIEnv* jni, | 23 int AndroidVideoCapturerJni::SetAndroidObjects(JNIEnv* jni, |
| 24 jobject appliction_context) { | 24 jobject appliction_context) { |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 | 339 |
| 340 JOW(void, VideoCapturer_00024NativeObserver_nativeOnOutputFormatRequest) | 340 JOW(void, VideoCapturer_00024NativeObserver_nativeOnOutputFormatRequest) |
| 341 (JNIEnv* jni, jclass, jlong j_capturer, jint j_width, jint j_height, | 341 (JNIEnv* jni, jclass, jlong j_capturer, jint j_width, jint j_height, |
| 342 jint j_fps) { | 342 jint j_fps) { |
| 343 LOG(LS_INFO) << "NativeObserver_nativeOnOutputFormatRequest"; | 343 LOG(LS_INFO) << "NativeObserver_nativeOnOutputFormatRequest"; |
| 344 reinterpret_cast<AndroidVideoCapturerJni*>(j_capturer)->OnOutputFormatRequest( | 344 reinterpret_cast<AndroidVideoCapturerJni*>(j_capturer)->OnOutputFormatRequest( |
| 345 j_width, j_height, j_fps); | 345 j_width, j_height, j_fps); |
| 346 } | 346 } |
| 347 | 347 |
| 348 } // namespace webrtc_jni | 348 } // namespace webrtc_jni |
| OLD | NEW |