OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ | 5 #ifndef MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ |
6 #define MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ | 6 #define MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 jint row_stride, | 30 jint row_stride, |
31 jint left, | 31 jint left, |
32 jint top, | 32 jint top, |
33 jint width, | 33 jint width, |
34 jint height, | 34 jint height, |
35 jlong timestamp); | 35 jlong timestamp); |
36 // Implement org.chromium.media.ScreenCapture.nativeOnI420FrameAvailable. | 36 // Implement org.chromium.media.ScreenCapture.nativeOnI420FrameAvailable. |
37 void OnI420FrameAvailable(JNIEnv* env, | 37 void OnI420FrameAvailable(JNIEnv* env, |
38 jobject obj, | 38 jobject obj, |
39 jobject y_buffer, | 39 jobject y_buffer, |
40 jint y_Zde, | 40 jint y_stride, |
41 jobject u_buffer, | 41 jobject u_buffer, |
42 jobject v_buffer, | 42 jobject v_buffer, |
43 jint uv_row_stride, | 43 jint uv_row_stride, |
44 jint uv_pixel_stride, | 44 jint uv_pixel_stride, |
45 jint left, | 45 jint left, |
46 jint top, | 46 jint top, |
47 jint width, | 47 jint width, |
48 jint height, | 48 jint height, |
49 jlong timestamp); | 49 jlong timestamp); |
50 | 50 |
(...skipping 16 matching lines...) Expand all Loading... |
67 | 67 |
68 // Java VideoCaptureAndroid instance. | 68 // Java VideoCaptureAndroid instance. |
69 base::android::ScopedJavaLocalRef<jobject> j_capture_; | 69 base::android::ScopedJavaLocalRef<jobject> j_capture_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureMachineAndroid); | 71 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureMachineAndroid); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace media | 74 } // namespace media |
75 | 75 |
76 #endif // MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ | 76 #endif // MEDIA_CAPTURE_CONTENT_ANDROID_SCREEN_CAPTURE_MACHINE_ANDROID_H_ |
OLD | NEW |