| OLD | NEW |
| 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 /** |
| 11 * Set of PhotoCapabilities read from the different VideoCapture Devices. | 11 * Set of PhotoCapabilities read from the different VideoCapture Devices. |
| 12 **/ | 12 **/ |
| 13 @JNINamespace("media") | 13 @JNINamespace("media") |
| 14 class PhotoCapabilities { | 14 class PhotoCapabilities { |
| 15 public final int maxIso; | 15 public final int maxIso; |
| 16 public final int minIso; | 16 public final int minIso; |
| 17 public final int currentIso; | 17 public final int currentIso; |
| 18 public final int maxHeight; | 18 public final int maxHeight; |
| 19 public final int minHeight; | 19 public final int minHeight; |
| 20 public final int currentHeight; | 20 public final int currentHeight; |
| 21 public final int maxWidth; | 21 public final int maxWidth; |
| 22 public final int minWidth; | 22 public final int minWidth; |
| 23 public final int currentWidth; | 23 public final int currentWidth; |
| 24 public final int maxZoom; | 24 public final int maxZoom; |
| 25 public final int minZoom; | 25 public final int minZoom; |
| 26 public final int currentZoom; | 26 public final int currentZoom; |
| 27 public final int focusMode; | 27 public final int focusMode; |
| 28 public final int exposureMode; |
| 28 | 29 |
| 30 // TODO(mcasas): Add a PhotoCapabilitiesBuilder to this class. |
| 29 PhotoCapabilities(int maxIso, int minIso, int currentIso, int maxHeight, int
minHeight, | 31 PhotoCapabilities(int maxIso, int minIso, int currentIso, int maxHeight, int
minHeight, |
| 30 int currentHeight, int maxWidth, int minWidth, int currentWidth, int
maxZoom, | 32 int currentHeight, int maxWidth, int minWidth, int currentWidth, int
maxZoom, |
| 31 int minZoom, int currentZoom, int focusMode) { | 33 int minZoom, int currentZoom, int focusMode, int exposureMode) { |
| 32 this.maxIso = maxIso; | 34 this.maxIso = maxIso; |
| 33 this.minIso = minIso; | 35 this.minIso = minIso; |
| 34 this.currentIso = currentIso; | 36 this.currentIso = currentIso; |
| 35 this.maxHeight = maxHeight; | 37 this.maxHeight = maxHeight; |
| 36 this.minHeight = minHeight; | 38 this.minHeight = minHeight; |
| 37 this.currentHeight = currentHeight; | 39 this.currentHeight = currentHeight; |
| 38 this.maxWidth = maxWidth; | 40 this.maxWidth = maxWidth; |
| 39 this.minWidth = minWidth; | 41 this.minWidth = minWidth; |
| 40 this.currentWidth = currentWidth; | 42 this.currentWidth = currentWidth; |
| 41 this.maxZoom = maxZoom; | 43 this.maxZoom = maxZoom; |
| 42 this.minZoom = minZoom; | 44 this.minZoom = minZoom; |
| 43 this.currentZoom = currentZoom; | 45 this.currentZoom = currentZoom; |
| 44 this.focusMode = focusMode; | 46 this.focusMode = focusMode; |
| 47 this.exposureMode = exposureMode; |
| 45 } | 48 } |
| 46 | 49 |
| 47 @CalledByNative | 50 @CalledByNative |
| 48 public int getMinIso() { | 51 public int getMinIso() { |
| 49 return minIso; | 52 return minIso; |
| 50 } | 53 } |
| 51 | 54 |
| 52 @CalledByNative | 55 @CalledByNative |
| 53 public int getMaxIso() { | 56 public int getMaxIso() { |
| 54 return maxIso; | 57 return maxIso; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 104 |
| 102 @CalledByNative | 105 @CalledByNative |
| 103 public int getCurrentZoom() { | 106 public int getCurrentZoom() { |
| 104 return currentZoom; | 107 return currentZoom; |
| 105 } | 108 } |
| 106 | 109 |
| 107 @CalledByNative | 110 @CalledByNative |
| 108 public int getFocusMode() { | 111 public int getFocusMode() { |
| 109 return focusMode; | 112 return focusMode; |
| 110 } | 113 } |
| 114 |
| 115 @CalledByNative |
| 116 public int getExposureMode() { |
| 117 return exposureMode; |
| 118 } |
| 111 } | 119 } |
| OLD | NEW |