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

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

Issue 2787933002: ImageCapture: separate fillLightMode, redEyeReduction and Torch (Closed)
Patch Set: Created 3 years, 8 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 #include <vector>
10 11
11 #include "base/android/scoped_java_ref.h" 12 #include "base/android/scoped_java_ref.h"
12 13
13 namespace media { 14 namespace media {
14 15
15 class PhotoCapabilities { 16 class PhotoCapabilities {
16 public: 17 public:
17 // Metering modes from Java side, equivalent to media.mojom::MeteringMode, 18 // Metering modes from Java side, equivalent to media.mojom::MeteringMode,
18 // except NOT_SET, which is used to signify absence of setting configuration. 19 // except NOT_SET, which is used to signify absence of setting configuration.
19 // A Java counterpart will be generated for this enum. 20 // A Java counterpart will be generated for this enum.
20 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.media 21 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.media
21 enum class AndroidMeteringMode { 22 enum class AndroidMeteringMode {
22 NOT_SET, 23 NOT_SET,
23 NONE, 24 NONE,
24 FIXED, 25 FIXED,
25 SINGLE_SHOT, 26 SINGLE_SHOT,
26 CONTINUOUS, 27 CONTINUOUS,
27 }; 28 };
28 29
29 // Fill light modes from Java side, equivalent to media.mojom::FillLightMode, 30 // 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 // except NOT_SET, which is used to signify absence of setting configuration.
31 // A Java counterpart will be generated for this enum. 32 // A Java counterpart will be generated for this enum.
32 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.media 33 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.media
33 enum class AndroidFillLightMode { 34 enum class AndroidFillLightMode {
34 NOT_SET, 35 NOT_SET,
35 NONE, // Only meaningful for getting capabilities, meaning "no flash unit".
36 OFF, 36 OFF,
37 AUTO, 37 AUTO,
38 FLASH, 38 FLASH,
39 TORCH,
40 }; 39 };
41 40
42 explicit PhotoCapabilities(base::android::ScopedJavaLocalRef<jobject> object); 41 explicit PhotoCapabilities(base::android::ScopedJavaLocalRef<jobject> object);
43 ~PhotoCapabilities(); 42 ~PhotoCapabilities();
44 43
45 int getMinIso() const; 44 int getMinIso() const;
46 int getMaxIso() const; 45 int getMaxIso() const;
47 int getCurrentIso() const; 46 int getCurrentIso() const;
48 int getStepIso() const; 47 int getStepIso() const;
49 int getMinHeight() const; 48 int getMinHeight() const;
50 int getMaxHeight() const; 49 int getMaxHeight() const;
51 int getCurrentHeight() const; 50 int getCurrentHeight() const;
52 int getStepHeight() const; 51 int getStepHeight() const;
53 int getMinWidth() const; 52 int getMinWidth() const;
54 int getMaxWidth() const; 53 int getMaxWidth() const;
55 int getCurrentWidth() const; 54 int getCurrentWidth() const;
56 int getStepWidth() const; 55 int getStepWidth() const;
57 double getMinZoom() const; 56 double getMinZoom() const;
58 double getMaxZoom() const; 57 double getMaxZoom() const;
59 double getCurrentZoom() const; 58 double getCurrentZoom() const;
60 double getStepZoom() const; 59 double getStepZoom() const;
61 AndroidMeteringMode getFocusMode() const; 60 AndroidMeteringMode getFocusMode() const;
62 AndroidMeteringMode getExposureMode() const; 61 AndroidMeteringMode getExposureMode() const;
63 double getMinExposureCompensation() const; 62 double getMinExposureCompensation() const;
64 double getMaxExposureCompensation() const; 63 double getMaxExposureCompensation() const;
65 double getCurrentExposureCompensation() const; 64 double getCurrentExposureCompensation() const;
66 double getStepExposureCompensation() const; 65 double getStepExposureCompensation() const;
67 AndroidMeteringMode getWhiteBalanceMode() const; 66 AndroidMeteringMode getWhiteBalanceMode() const;
68 AndroidFillLightMode getFillLightMode() const; 67 std::vector<AndroidFillLightMode> getFillLightModes() const;
68 bool getTorch() const;
69 bool getRedEyeReduction() const; 69 bool getRedEyeReduction() const;
70 int getMinColorTemperature() const; 70 int getMinColorTemperature() const;
71 int getMaxColorTemperature() const; 71 int getMaxColorTemperature() const;
72 int getCurrentColorTemperature() const; 72 int getCurrentColorTemperature() const;
73 int getStepColorTemperature() const; 73 int getStepColorTemperature() const;
74 74
75 private: 75 private:
76 const base::android::ScopedJavaLocalRef<jobject> object_; 76 const base::android::ScopedJavaLocalRef<jobject> object_;
77 }; 77 };
78 78
79 } // namespace media 79 } // namespace media
80 80
81 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ 81 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698