Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: media/capture/video/android/photo_capabilities.h

Issue 2301053004: Image Capture: adding fillLightMode getting/setting (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ 5 #ifndef MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_
6 #define MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ 6 #define MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 class PhotoCapabilities { 15 class PhotoCapabilities {
16 public: 16 public:
17 // Focus modes from Java side, equivalent to media.mojom::MeteringMode, except 17 // Metering modes from Java side, equivalent to media.mojom::MeteringMode,
18 // NOT_SET, which is used to signify absence of setting configuration. 18 // except NOT_SET, which is used to signify absence of setting configuration.
19 // A Java counterpart will be generated for this enum. 19 // A Java counterpart will be generated for this enum.
20 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.media 20 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.media
21 enum class AndroidMeteringMode { 21 enum class AndroidMeteringMode {
22 NOT_SET, 22 NOT_SET,
23 UNAVAILABLE, 23 NONE,
24 FIXED, 24 FIXED,
25 SINGLE_SHOT, 25 SINGLE_SHOT,
26 CONTINUOUS, 26 CONTINUOUS,
27 }; 27 };
28 28
29 // Fill light modes from Java side, equivalent to media.mojom::FillLightMode,
30 // except NOT_SET, which is used to signify absence of setting configuration.
31 // A Java counterpart will be generated for this enum.
32 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.media
33 enum class AndroidFillLightMode {
34 NOT_SET,
35 NONE, // Only meaningful for getting capabilities, meaning "no flash unit".
36 OFF,
37 AUTO,
38 FLASH,
39 TORCH,
40 };
41
29 explicit PhotoCapabilities(base::android::ScopedJavaLocalRef<jobject> object); 42 explicit PhotoCapabilities(base::android::ScopedJavaLocalRef<jobject> object);
30 ~PhotoCapabilities(); 43 ~PhotoCapabilities();
31 44
32 int getMinIso() const; 45 int getMinIso() const;
33 int getMaxIso() const; 46 int getMaxIso() const;
34 int getCurrentIso() const; 47 int getCurrentIso() const;
35 int getMinHeight() const; 48 int getMinHeight() const;
36 int getMaxHeight() const; 49 int getMaxHeight() const;
37 int getCurrentHeight() const; 50 int getCurrentHeight() const;
38 int getMinWidth() const; 51 int getMinWidth() const;
39 int getMaxWidth() const; 52 int getMaxWidth() const;
40 int getCurrentWidth() const; 53 int getCurrentWidth() const;
41 int getMinZoom() const; 54 int getMinZoom() const;
42 int getMaxZoom() const; 55 int getMaxZoom() const;
43 int getCurrentZoom() const; 56 int getCurrentZoom() const;
44 AndroidMeteringMode getFocusMode() const; 57 AndroidMeteringMode getFocusMode() const;
45 AndroidMeteringMode getExposureMode() const; 58 AndroidMeteringMode getExposureMode() const;
46 int getMinExposureCompensation() const; 59 int getMinExposureCompensation() const;
47 int getMaxExposureCompensation() const; 60 int getMaxExposureCompensation() const;
48 int getCurrentExposureCompensation() const; 61 int getCurrentExposureCompensation() const;
49 AndroidMeteringMode getWhiteBalanceMode() const; 62 AndroidMeteringMode getWhiteBalanceMode() const;
63 AndroidFillLightMode getFillLightMode() const;
50 64
51 private: 65 private:
52 const base::android::ScopedJavaLocalRef<jobject> object_; 66 const base::android::ScopedJavaLocalRef<jobject> object_;
53 }; 67 };
54 68
55 } // namespace media 69 } // namespace media
56 70
57 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ 71 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698