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_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 5 #ifndef MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
6 #define MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 6 #define MEDIA_VIDEO_CAPTURE_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 16 matching lines...) Expand all Loading... |
27 static VideoCaptureDevice* Create(const Name& device_name); | 27 static VideoCaptureDevice* Create(const Name& device_name); |
28 static bool RegisterVideoCaptureDevice(JNIEnv* env); | 28 static bool RegisterVideoCaptureDevice(JNIEnv* env); |
29 | 29 |
30 // VideoCaptureDevice implementation. | 30 // VideoCaptureDevice implementation. |
31 virtual void Allocate(const VideoCaptureCapability& capture_format, | 31 virtual void Allocate(const VideoCaptureCapability& capture_format, |
32 EventHandler* observer) OVERRIDE; | 32 EventHandler* observer) OVERRIDE; |
33 virtual void Start() OVERRIDE; | 33 virtual void Start() OVERRIDE; |
34 virtual void Stop() OVERRIDE; | 34 virtual void Stop() OVERRIDE; |
35 virtual void DeAllocate() OVERRIDE; | 35 virtual void DeAllocate() OVERRIDE; |
36 virtual const Name& device_name() OVERRIDE; | 36 virtual const Name& device_name() OVERRIDE; |
| 37 virtual void GetDeviceSupportedFormats( |
| 38 VideoCaptureFormats* capture_formats) OVERRIDE; |
37 | 39 |
38 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable. | 40 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable. |
39 void OnFrameAvailable( | 41 void OnFrameAvailable( |
40 JNIEnv* env, | 42 JNIEnv* env, |
41 jobject obj, | 43 jobject obj, |
42 jbyteArray data, | 44 jbyteArray data, |
43 jint length, | 45 jint length, |
44 jint rotation, | 46 jint rotation, |
45 jboolean flip_vert, | 47 jboolean flip_vert, |
46 jboolean flip_horiz); | 48 jboolean flip_horiz); |
(...skipping 21 matching lines...) Expand all Loading... |
68 | 70 |
69 // Java VideoCaptureAndroid instance. | 71 // Java VideoCaptureAndroid instance. |
70 base::android::ScopedJavaGlobalRef<jobject> j_capture_; | 72 base::android::ScopedJavaGlobalRef<jobject> j_capture_; |
71 | 73 |
72 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); | 74 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); |
73 }; | 75 }; |
74 | 76 |
75 } // namespace media | 77 } // namespace media |
76 | 78 |
77 #endif // MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 79 #endif // MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
OLD | NEW |