| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_ | |
| 6 #define MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_ | |
| 7 | |
| 8 #include "media/capture/video/video_capture_device_factory.h" | |
| 9 | |
| 10 #include <jni.h> | |
| 11 | |
| 12 #include "base/android/scoped_java_ref.h" | |
| 13 #include "base/macros.h" | |
| 14 #include "media/capture/video/video_capture_device.h" | |
| 15 | |
| 16 namespace media { | |
| 17 | |
| 18 // VideoCaptureDeviceFactory on Android. This class implements the static | |
| 19 // VideoCapture methods and the factory of VideoCaptureAndroid. | |
| 20 class CAPTURE_EXPORT VideoCaptureDeviceFactoryAndroid | |
| 21 : public VideoCaptureDeviceFactory { | |
| 22 public: | |
| 23 static base::android::ScopedJavaLocalRef<jobject> createVideoCaptureAndroid( | |
| 24 int id, | |
| 25 jlong nativeVideoCaptureDeviceAndroid); | |
| 26 | |
| 27 VideoCaptureDeviceFactoryAndroid() {} | |
| 28 ~VideoCaptureDeviceFactoryAndroid() override {} | |
| 29 | |
| 30 std::unique_ptr<VideoCaptureDevice> CreateDevice( | |
| 31 const VideoCaptureDeviceDescriptor& device_descriptor) override; | |
| 32 void GetDeviceDescriptors( | |
| 33 VideoCaptureDeviceDescriptors* device_descriptors) override; | |
| 34 void GetSupportedFormats(const VideoCaptureDeviceDescriptor& device, | |
| 35 VideoCaptureFormats* supported_formats) override; | |
| 36 | |
| 37 private: | |
| 38 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactoryAndroid); | |
| 39 }; | |
| 40 } // namespace media | |
| 41 | |
| 42 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_ | |
| OLD | NEW |