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 const std::string& device_name, |
| 39 VideoCaptureFormats* capture_formats) OVERRIDE; |
37 | 40 |
38 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable. | 41 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable. |
39 void OnFrameAvailable( | 42 void OnFrameAvailable( |
40 JNIEnv* env, | 43 JNIEnv* env, |
41 jobject obj, | 44 jobject obj, |
42 jbyteArray data, | 45 jbyteArray data, |
43 jint length, | 46 jint length, |
44 jint rotation, | 47 jint rotation, |
45 jboolean flip_vert, | 48 jboolean flip_vert, |
46 jboolean flip_horiz); | 49 jboolean flip_horiz); |
(...skipping 21 matching lines...) Expand all Loading... |
68 | 71 |
69 // Java VideoCaptureAndroid instance. | 72 // Java VideoCaptureAndroid instance. |
70 base::android::ScopedJavaGlobalRef<jobject> j_capture_; | 73 base::android::ScopedJavaGlobalRef<jobject> j_capture_; |
71 | 74 |
72 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); | 75 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); |
73 }; | 76 }; |
74 | 77 |
75 } // namespace media | 78 } // namespace media |
76 | 79 |
77 #endif // MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 80 #endif // MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
OLD | NEW |