#ifndef MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_
#define MEDIA_VIDEO_CAPTURE_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_
#include <jni.h>
#include "base/android/scoped_java_ref.h"
#include "media/video/capture/video_capture_device.h"
namespace media {
class MEDIA_EXPORT VideoCaptureDeviceFactoryAndroid {
public:
enum AndroidImageFormat {
#define DEFINE_ANDROID_IMAGEFORMAT(name, value) name = value,
#include "media/video/capture/android/imageformat_list.h"
#undef DEFINE_ANDROID_IMAGEFORMAT
};
virtual ~VideoCaptureDeviceFactoryAndroid();
static void GetDeviceNames(VideoCaptureDevice::Names* device_names);
static void GetDeviceSupportedFormats(
const VideoCaptureDevice::Name& device,
VideoCaptureFormats* capture_formats);
static bool RegisterVideoCaptureDeviceFactory(JNIEnv* env);
static base::android::ScopedJavaLocalRef<jobject> createVideoCaptureAndroid(
int id,
jlong nativeVideoCaptureDeviceAndroid);
};
}
#endif