OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 5 #ifndef MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
6 #define MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 6 #define MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 SetPhotoOptionsCallback callback) override; | 61 SetPhotoOptionsCallback callback) override; |
62 void TakePhoto(TakePhotoCallback callback) override; | 62 void TakePhoto(TakePhotoCallback callback) override; |
63 | 63 |
64 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable. | 64 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable. |
65 void OnFrameAvailable(JNIEnv* env, | 65 void OnFrameAvailable(JNIEnv* env, |
66 const base::android::JavaParamRef<jobject>& obj, | 66 const base::android::JavaParamRef<jobject>& obj, |
67 const base::android::JavaParamRef<jbyteArray>& data, | 67 const base::android::JavaParamRef<jbyteArray>& data, |
68 jint length, | 68 jint length, |
69 jint rotation); | 69 jint rotation); |
70 | 70 |
| 71 // Implement org.chromium.media.VideoCapture.nativeOnI420FrameAvailable. |
| 72 void OnI420FrameAvailable(JNIEnv* env, |
| 73 jobject obj, |
| 74 jobject y_buffer, |
| 75 jint y_stride, |
| 76 jobject u_buffer, |
| 77 jobject v_buffer, |
| 78 jint uv_row_stride, |
| 79 jint uv_pixel_stride, |
| 80 jint width, |
| 81 jint height, |
| 82 jint rotation); |
| 83 |
71 // Implement org.chromium.media.VideoCapture.nativeOnError. | 84 // Implement org.chromium.media.VideoCapture.nativeOnError. |
72 void OnError(JNIEnv* env, | 85 void OnError(JNIEnv* env, |
73 const base::android::JavaParamRef<jobject>& obj, | 86 const base::android::JavaParamRef<jobject>& obj, |
74 const base::android::JavaParamRef<jstring>& message); | 87 const base::android::JavaParamRef<jstring>& message); |
75 | 88 |
76 // Implement org.chromium.media.VideoCapture.nativeOnPhotoTaken. | 89 // Implement org.chromium.media.VideoCapture.nativeOnPhotoTaken. |
77 void OnPhotoTaken(JNIEnv* env, | 90 void OnPhotoTaken(JNIEnv* env, |
78 const base::android::JavaParamRef<jobject>& obj, | 91 const base::android::JavaParamRef<jobject>& obj, |
79 jlong callback_id, | 92 jlong callback_id, |
80 const base::android::JavaParamRef<jbyteArray>& data); | 93 const base::android::JavaParamRef<jbyteArray>& data); |
(...skipping 28 matching lines...) Expand all Loading... |
109 | 122 |
110 // Java VideoCaptureAndroid instance. | 123 // Java VideoCaptureAndroid instance. |
111 base::android::ScopedJavaLocalRef<jobject> j_capture_; | 124 base::android::ScopedJavaLocalRef<jobject> j_capture_; |
112 | 125 |
113 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); | 126 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); |
114 }; | 127 }; |
115 | 128 |
116 } // namespace media | 129 } // namespace media |
117 | 130 |
118 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 131 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
OLD | NEW |