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

Unified Diff: media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java

Issue 2301043006: Image Capture: wire RedEyeReduction getter (Closed)
Patch Set: Removed superfluous builder.setRedEyeReduction(false); 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java
diff --git a/media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java b/media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java
index a9c63c06d46806efefadf44cfa4484f8405e8ee2..29d71f7358f1d746252f1d57b4187ce0e1bb00f4 100644
--- a/media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java
+++ b/media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java
@@ -31,12 +31,14 @@ class PhotoCapabilities {
public final int currentExposureCompensation;
public final int whiteBalanceMode;
public final int fillLightMode;
+ public final boolean redEyeReduction;
PhotoCapabilities(int maxIso, int minIso, int currentIso, int maxHeight, int minHeight,
int currentHeight, int maxWidth, int minWidth, int currentWidth, int maxZoom,
int minZoom, int currentZoom, int focusMode, int exposureMode,
int maxExposureCompensation, int minExposureCompensation,
- int currentExposureCompensation, int whiteBalanceMode, int fillLightMode) {
+ int currentExposureCompensation, int whiteBalanceMode, int fillLightMode,
+ boolean redEyeReduction) {
this.maxIso = maxIso;
this.minIso = minIso;
this.currentIso = currentIso;
@@ -56,6 +58,7 @@ class PhotoCapabilities {
this.currentExposureCompensation = currentExposureCompensation;
this.whiteBalanceMode = whiteBalanceMode;
this.fillLightMode = fillLightMode;
+ this.redEyeReduction = redEyeReduction;
}
@CalledByNative
@@ -153,6 +156,11 @@ class PhotoCapabilities {
return fillLightMode;
}
+ @CalledByNative
+ public boolean getRedEyeReduction() {
+ return redEyeReduction;
+ }
+
public static class Builder {
public int maxIso;
public int minIso;
@@ -173,6 +181,7 @@ class PhotoCapabilities {
public int currentExposureCompensation;
public int whiteBalanceMode;
public int fillLightMode;
+ public boolean redEyeReduction;
public Builder() {}
@@ -271,11 +280,16 @@ class PhotoCapabilities {
return this;
}
+ public Builder setRedEyeReduction(boolean redEyeReduction) {
+ this.redEyeReduction = redEyeReduction;
+ return this;
+ }
+
public PhotoCapabilities build() {
return new PhotoCapabilities(maxIso, minIso, currentIso, maxHeight, minHeight,
currentHeight, maxWidth, minWidth, currentWidth, maxZoom, minZoom, currentZoom,
focusMode, exposureMode, maxExposureCompensation, minExposureCompensation,
- currentExposureCompensation, whiteBalanceMode, fillLightMode);
+ currentExposureCompensation, whiteBalanceMode, fillLightMode, redEyeReduction);
}
}
}
« no previous file with comments | « no previous file | media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698