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

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

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 package org.chromium.media; 5 package org.chromium.media;
6 6
7 import org.chromium.base.annotations.CalledByNative; 7 import org.chromium.base.annotations.CalledByNative;
8 import org.chromium.base.annotations.JNINamespace; 8 import org.chromium.base.annotations.JNINamespace;
9 9
10 /** 10 /**
(...skipping 17 matching lines...) Expand all
28 public final double minZoom; 28 public final double minZoom;
29 public final double currentZoom; 29 public final double currentZoom;
30 public final double stepZoom; 30 public final double stepZoom;
31 public final int focusMode; 31 public final int focusMode;
32 public final int exposureMode; 32 public final int exposureMode;
33 public final double maxExposureCompensation; 33 public final double maxExposureCompensation;
34 public final double minExposureCompensation; 34 public final double minExposureCompensation;
35 public final double currentExposureCompensation; 35 public final double currentExposureCompensation;
36 public final double stepExposureCompensation; 36 public final double stepExposureCompensation;
37 public final int whiteBalanceMode; 37 public final int whiteBalanceMode;
38 public final int fillLightMode; 38 public final int[] fillLightModes;
39 public final boolean torch;
39 public final boolean redEyeReduction; 40 public final boolean redEyeReduction;
40 public final int maxColorTemperature; 41 public final int maxColorTemperature;
41 public final int minColorTemperature; 42 public final int minColorTemperature;
42 public final int currentColorTemperature; 43 public final int currentColorTemperature;
43 public final int stepColorTemperature; 44 public final int stepColorTemperature;
44 45
45 PhotoCapabilities(int maxIso, int minIso, int currentIso, int stepIso, int m axHeight, 46 PhotoCapabilities(int maxIso, int minIso, int currentIso, int stepIso, int m axHeight,
46 int minHeight, int currentHeight, int stepHeight, int maxWidth, int minWidth, 47 int minHeight, int currentHeight, int stepHeight, int maxWidth, int minWidth,
47 int currentWidth, int stepWidth, double maxZoom, double minZoom, dou ble currentZoom, 48 int currentWidth, int stepWidth, double maxZoom, double minZoom, dou ble currentZoom,
48 double stepZoom, int focusMode, int exposureMode, double maxExposure Compensation, 49 double stepZoom, int focusMode, int exposureMode, double maxExposure Compensation,
49 double minExposureCompensation, double currentExposureCompensation, 50 double minExposureCompensation, double currentExposureCompensation,
50 double stepExposureCompensation, int whiteBalanceMode, int fillLight Mode, 51 double stepExposureCompensation, int whiteBalanceMode, int[] fillLig htModes,
51 boolean redEyeReduction, int maxColorTemperature, int minColorTemper ature, 52 boolean torch, boolean redEyeReduction, int maxColorTemperature,
52 int currentColorTemperature, int stepColorTemperature) { 53 int minColorTemperature, int currentColorTemperature, int stepColorT emperature) {
53 this.maxIso = maxIso; 54 this.maxIso = maxIso;
54 this.minIso = minIso; 55 this.minIso = minIso;
55 this.currentIso = currentIso; 56 this.currentIso = currentIso;
56 this.stepIso = stepIso; 57 this.stepIso = stepIso;
57 this.maxHeight = maxHeight; 58 this.maxHeight = maxHeight;
58 this.minHeight = minHeight; 59 this.minHeight = minHeight;
59 this.currentHeight = currentHeight; 60 this.currentHeight = currentHeight;
60 this.stepHeight = stepHeight; 61 this.stepHeight = stepHeight;
61 this.maxWidth = maxWidth; 62 this.maxWidth = maxWidth;
62 this.minWidth = minWidth; 63 this.minWidth = minWidth;
63 this.currentWidth = currentWidth; 64 this.currentWidth = currentWidth;
64 this.stepWidth = stepWidth; 65 this.stepWidth = stepWidth;
65 this.maxZoom = maxZoom; 66 this.maxZoom = maxZoom;
66 this.minZoom = minZoom; 67 this.minZoom = minZoom;
67 this.currentZoom = currentZoom; 68 this.currentZoom = currentZoom;
68 this.stepZoom = stepZoom; 69 this.stepZoom = stepZoom;
69 this.focusMode = focusMode; 70 this.focusMode = focusMode;
70 this.exposureMode = exposureMode; 71 this.exposureMode = exposureMode;
71 this.maxExposureCompensation = maxExposureCompensation; 72 this.maxExposureCompensation = maxExposureCompensation;
72 this.minExposureCompensation = minExposureCompensation; 73 this.minExposureCompensation = minExposureCompensation;
73 this.currentExposureCompensation = currentExposureCompensation; 74 this.currentExposureCompensation = currentExposureCompensation;
74 this.stepExposureCompensation = stepExposureCompensation; 75 this.stepExposureCompensation = stepExposureCompensation;
75 this.whiteBalanceMode = whiteBalanceMode; 76 this.whiteBalanceMode = whiteBalanceMode;
76 this.fillLightMode = fillLightMode; 77 this.fillLightModes = fillLightModes;
78 this.torch = torch;
77 this.redEyeReduction = redEyeReduction; 79 this.redEyeReduction = redEyeReduction;
78 this.maxColorTemperature = maxColorTemperature; 80 this.maxColorTemperature = maxColorTemperature;
79 this.minColorTemperature = minColorTemperature; 81 this.minColorTemperature = minColorTemperature;
80 this.currentColorTemperature = currentColorTemperature; 82 this.currentColorTemperature = currentColorTemperature;
81 this.stepColorTemperature = stepColorTemperature; 83 this.stepColorTemperature = stepColorTemperature;
82 } 84 }
83 85
84 @CalledByNative 86 @CalledByNative
85 public int getMinIso() { 87 public int getMinIso() {
86 return minIso; 88 return minIso;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 public double getStepExposureCompensation() { 192 public double getStepExposureCompensation() {
191 return stepExposureCompensation; 193 return stepExposureCompensation;
192 } 194 }
193 195
194 @CalledByNative 196 @CalledByNative
195 public int getWhiteBalanceMode() { 197 public int getWhiteBalanceMode() {
196 return whiteBalanceMode; 198 return whiteBalanceMode;
197 } 199 }
198 200
199 @CalledByNative 201 @CalledByNative
200 public int getFillLightMode() { 202 public int[] getFillLightModes() {
201 return fillLightMode; 203 return (fillLightModes != null) ? fillLightModes.clone() : new int[0];
202 } 204 }
203 205
204 @CalledByNative 206 @CalledByNative
207 public boolean getTorch() {
208 return torch;
209 }
210
211 @CalledByNative
205 public boolean getRedEyeReduction() { 212 public boolean getRedEyeReduction() {
206 return redEyeReduction; 213 return redEyeReduction;
207 } 214 }
208 215
209 @CalledByNative 216 @CalledByNative
210 public int getMinColorTemperature() { 217 public int getMinColorTemperature() {
211 return minColorTemperature; 218 return minColorTemperature;
212 } 219 }
213 220
214 @CalledByNative 221 @CalledByNative
(...skipping 28 matching lines...) Expand all
243 public double minZoom; 250 public double minZoom;
244 public double currentZoom; 251 public double currentZoom;
245 public double stepZoom; 252 public double stepZoom;
246 public int focusMode; 253 public int focusMode;
247 public int exposureMode; 254 public int exposureMode;
248 public double maxExposureCompensation; 255 public double maxExposureCompensation;
249 public double minExposureCompensation; 256 public double minExposureCompensation;
250 public double currentExposureCompensation; 257 public double currentExposureCompensation;
251 public double stepExposureCompensation; 258 public double stepExposureCompensation;
252 public int whiteBalanceMode; 259 public int whiteBalanceMode;
253 public int fillLightMode; 260 public int[] fillLightModes;
261 public boolean torch;
254 public boolean redEyeReduction; 262 public boolean redEyeReduction;
255 public int maxColorTemperature; 263 public int maxColorTemperature;
256 public int minColorTemperature; 264 public int minColorTemperature;
257 public int currentColorTemperature; 265 public int currentColorTemperature;
258 public int stepColorTemperature; 266 public int stepColorTemperature;
259 267
260 public Builder() {} 268 public Builder() {}
261 269
262 public Builder setMaxIso(int maxIso) { 270 public Builder setMaxIso(int maxIso) {
263 this.maxIso = maxIso; 271 this.maxIso = maxIso;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 public Builder setStepExposureCompensation(double stepExposureCompensati on) { 375 public Builder setStepExposureCompensation(double stepExposureCompensati on) {
368 this.stepExposureCompensation = stepExposureCompensation; 376 this.stepExposureCompensation = stepExposureCompensation;
369 return this; 377 return this;
370 } 378 }
371 379
372 public Builder setWhiteBalanceMode(int whiteBalanceMode) { 380 public Builder setWhiteBalanceMode(int whiteBalanceMode) {
373 this.whiteBalanceMode = whiteBalanceMode; 381 this.whiteBalanceMode = whiteBalanceMode;
374 return this; 382 return this;
375 } 383 }
376 384
377 public Builder setFillLightMode(int fillLightMode) { 385 public Builder setFillLightModes(int[] fillLightModes) {
378 this.fillLightMode = fillLightMode; 386 this.fillLightModes = fillLightModes.clone();
379 return this; 387 return this;
380 } 388 }
381 389
390 public Builder setTorch(boolean torch) {
391 this.torch = torch;
392 return this;
393 }
394
382 public Builder setRedEyeReduction(boolean redEyeReduction) { 395 public Builder setRedEyeReduction(boolean redEyeReduction) {
383 this.redEyeReduction = redEyeReduction; 396 this.redEyeReduction = redEyeReduction;
384 return this; 397 return this;
385 } 398 }
386 399
387 public Builder setMaxColorTemperature(int maxColorTemperature) { 400 public Builder setMaxColorTemperature(int maxColorTemperature) {
388 this.maxColorTemperature = maxColorTemperature; 401 this.maxColorTemperature = maxColorTemperature;
389 return this; 402 return this;
390 } 403 }
391 404
(...skipping 10 matching lines...) Expand all
402 public Builder setStepColorTemperature(int stepColorTemperature) { 415 public Builder setStepColorTemperature(int stepColorTemperature) {
403 this.stepColorTemperature = stepColorTemperature; 416 this.stepColorTemperature = stepColorTemperature;
404 return this; 417 return this;
405 } 418 }
406 419
407 public PhotoCapabilities build() { 420 public PhotoCapabilities build() {
408 return new PhotoCapabilities(maxIso, minIso, currentIso, stepIso, ma xHeight, minHeight, 421 return new PhotoCapabilities(maxIso, minIso, currentIso, stepIso, ma xHeight, minHeight,
409 currentHeight, stepHeight, maxWidth, minWidth, currentWidth, stepWidth, maxZoom, 422 currentHeight, stepHeight, maxWidth, minWidth, currentWidth, stepWidth, maxZoom,
410 minZoom, currentZoom, stepZoom, focusMode, exposureMode, 423 minZoom, currentZoom, stepZoom, focusMode, exposureMode,
411 maxExposureCompensation, minExposureCompensation, currentExp osureCompensation, 424 maxExposureCompensation, minExposureCompensation, currentExp osureCompensation,
412 stepExposureCompensation, whiteBalanceMode, fillLightMode, r edEyeReduction, 425 stepExposureCompensation, whiteBalanceMode, fillLightModes, torch,
413 maxColorTemperature, minColorTemperature, currentColorTemper ature, 426 redEyeReduction, maxColorTemperature, minColorTemperature,
414 stepColorTemperature); 427 currentColorTemperature, stepColorTemperature);
415 } 428 }
416 } 429 }
417 } 430 }
OLDNEW
« no previous file with comments | « media/capture/mojo/image_capture.mojom ('k') | media/capture/video/android/java/src/org/chromium/media/VideoCapture.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698