summaryrefslogtreecommitdiffstats
path: root/media/video/capture/android/video_capture_device_android.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/video/capture/android/video_capture_device_android.h')
-rw-r--r--media/video/capture/android/video_capture_device_android.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/media/video/capture/android/video_capture_device_android.h b/media/video/capture/android/video_capture_device_android.h
index 845d278..de6955d 100644
--- a/media/video/capture/android/video_capture_device_android.h
+++ b/media/video/capture/android/video_capture_device_android.h
@@ -54,8 +54,16 @@ class MEDIA_EXPORT VideoCaptureDeviceAndroid : public VideoCaptureDevice1 {
kError // Hit error. User needs to recover by destroying the object.
};
+ // Automatically generated enum to interface with Java world.
+ enum AndroidImageFormat {
+#define DEFINE_ANDROID_IMAGEFORMAT(name, value) name = value,
+#include "media/video/capture/android/imageformat_list.h"
+#undef DEFINE_ANDROID_IMAGEFORMAT
+ };
+
explicit VideoCaptureDeviceAndroid(const Name& device_name);
bool Init();
+ VideoPixelFormat GetColorspace();
void SetErrorState(const std::string& reason);
// Prevent racing on accessing |state_| and |observer_| since both could be