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 10 matching lines...) Expand all Loading... |
21 // on JAVA thread (i.e., UI thread). Both will access |state_| and |observer_|, | 21 // on JAVA thread (i.e., UI thread). Both will access |state_| and |observer_|, |
22 // but only VideoCaptureManager would change their value. | 22 // but only VideoCaptureManager would change their value. |
23 class MEDIA_EXPORT VideoCaptureDeviceAndroid : public VideoCaptureDevice { | 23 class MEDIA_EXPORT VideoCaptureDeviceAndroid : public VideoCaptureDevice { |
24 public: | 24 public: |
25 virtual ~VideoCaptureDeviceAndroid(); | 25 virtual ~VideoCaptureDeviceAndroid(); |
26 | 26 |
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 VideoEncodingCapabilities GetEncodingCapabilities() OVERRIDE; |
| 32 virtual void TryConfigureEncodedBitstream( |
| 33 const RuntimeVideoEncodingParameters& params) OVERRIDE; |
31 virtual void Allocate(int width, | 34 virtual void Allocate(int width, |
32 int height, | 35 int height, |
33 int frame_rate, | 36 int frame_rate, |
34 EventHandler* observer) OVERRIDE; | 37 EventHandler* observer) OVERRIDE; |
35 virtual void Start() OVERRIDE; | 38 virtual void Start() OVERRIDE; |
36 virtual void Stop() OVERRIDE; | 39 virtual void Stop() OVERRIDE; |
37 virtual void DeAllocate() OVERRIDE; | 40 virtual void DeAllocate() OVERRIDE; |
38 virtual const Name& device_name() OVERRIDE; | 41 virtual const Name& device_name() OVERRIDE; |
39 | 42 |
40 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable. | 43 // Implement org.chromium.media.VideoCapture.nativeOnFrameAvailable. |
(...skipping 29 matching lines...) Expand all Loading... |
70 | 73 |
71 // Java VideoCaptureAndroid instance. | 74 // Java VideoCaptureAndroid instance. |
72 base::android::ScopedJavaGlobalRef<jobject> j_capture_; | 75 base::android::ScopedJavaGlobalRef<jobject> j_capture_; |
73 | 76 |
74 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); | 77 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceAndroid); |
75 }; | 78 }; |
76 | 79 |
77 } // namespace media | 80 } // namespace media |
78 | 81 |
79 #endif // MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ | 82 #endif // MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_ANDROID_H_ |
OLD | NEW |