OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 #ifndef WEBRTC_API_ANDROID_JNI_ANDROIDVIDEOTRACKSOURCE_H_ | 11 #ifndef WEBRTC_API_ANDROID_JNI_ANDROIDVIDEOTRACKSOURCE_H_ |
12 #define WEBRTC_API_ANDROID_JNI_ANDROIDVIDEOTRACKSOURCE_H_ | 12 #define WEBRTC_API_ANDROID_JNI_ANDROIDVIDEOTRACKSOURCE_H_ |
13 | 13 |
| 14 #include "webrtc/sdk/android/src/jni/native_handle_impl.h" |
| 15 #include "webrtc/sdk/android/src/jni/surfacetexturehelper_jni.h" |
| 16 #include "webrtc/base/asyncinvoker.h" |
| 17 #include "webrtc/base/checks.h" |
| 18 #include "webrtc/base/thread_checker.h" |
| 19 #include "webrtc/base/timestampaligner.h" |
14 #include "webrtc/common_video/include/i420_buffer_pool.h" | 20 #include "webrtc/common_video/include/i420_buffer_pool.h" |
15 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 21 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
16 #include "webrtc/media/base/adaptedvideotracksource.h" | 22 #include "webrtc/media/base/adaptedvideotracksource.h" |
17 #include "webrtc/rtc_base/asyncinvoker.h" | |
18 #include "webrtc/rtc_base/checks.h" | |
19 #include "webrtc/rtc_base/thread_checker.h" | |
20 #include "webrtc/rtc_base/timestampaligner.h" | |
21 #include "webrtc/sdk/android/src/jni/native_handle_impl.h" | |
22 #include "webrtc/sdk/android/src/jni/surfacetexturehelper_jni.h" | |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 class AndroidVideoTrackSource : public rtc::AdaptedVideoTrackSource { | 26 class AndroidVideoTrackSource : public rtc::AdaptedVideoTrackSource { |
27 public: | 27 public: |
28 AndroidVideoTrackSource(rtc::Thread* signaling_thread, | 28 AndroidVideoTrackSource(rtc::Thread* signaling_thread, |
29 JNIEnv* jni, | 29 JNIEnv* jni, |
30 jobject j_surface_texture_helper, | 30 jobject j_surface_texture_helper, |
31 bool is_screencast = false); | 31 bool is_screencast = false); |
32 | 32 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 rtc::TimestampAligner timestamp_aligner_; | 75 rtc::TimestampAligner timestamp_aligner_; |
76 NV12ToI420Scaler nv12toi420_scaler_; | 76 NV12ToI420Scaler nv12toi420_scaler_; |
77 I420BufferPool buffer_pool_; | 77 I420BufferPool buffer_pool_; |
78 rtc::scoped_refptr<webrtc_jni::SurfaceTextureHelper> surface_texture_helper_; | 78 rtc::scoped_refptr<webrtc_jni::SurfaceTextureHelper> surface_texture_helper_; |
79 const bool is_screencast_; | 79 const bool is_screencast_; |
80 }; | 80 }; |
81 | 81 |
82 } // namespace webrtc | 82 } // namespace webrtc |
83 | 83 |
84 #endif // WEBRTC_API_ANDROID_JNI_ANDROIDVIDEOTRACKSOURCE_H_ | 84 #endif // WEBRTC_API_ANDROID_JNI_ANDROIDVIDEOTRACKSOURCE_H_ |
OLD | NEW |