| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package org.chromium.media; | |
| 6 | |
| 7 import org.chromium.base.annotations.CalledByNative; | |
| 8 import org.chromium.base.annotations.JNINamespace; | |
| 9 | |
| 10 /** | |
| 11 * Set of PhotoCapabilities read from the different VideoCapture Devices. | |
| 12 **/ | |
| 13 @JNINamespace("media") | |
| 14 class PhotoCapabilities { | |
| 15 public final int maxIso; | |
| 16 public final int minIso; | |
| 17 public final int currentIso; | |
| 18 public final int maxHeight; | |
| 19 public final int minHeight; | |
| 20 public final int currentHeight; | |
| 21 public final int maxWidth; | |
| 22 public final int minWidth; | |
| 23 public final int currentWidth; | |
| 24 public final int maxZoom; | |
| 25 public final int minZoom; | |
| 26 public final int currentZoom; | |
| 27 public final boolean autoFocusInUse; | |
| 28 | |
| 29 PhotoCapabilities(int maxIso, int minIso, int currentIso, int maxHeight, int
minHeight, | |
| 30 int currentHeight, int maxWidth, int minWidth, int currentWidth, int
maxZoom, | |
| 31 int minZoom, int currentZoom, boolean autoFocusInUse) { | |
| 32 this.maxIso = maxIso; | |
| 33 this.minIso = minIso; | |
| 34 this.currentIso = currentIso; | |
| 35 this.maxHeight = maxHeight; | |
| 36 this.minHeight = minHeight; | |
| 37 this.currentHeight = currentHeight; | |
| 38 this.maxWidth = maxWidth; | |
| 39 this.minWidth = minWidth; | |
| 40 this.currentWidth = currentWidth; | |
| 41 this.maxZoom = maxZoom; | |
| 42 this.minZoom = minZoom; | |
| 43 this.currentZoom = currentZoom; | |
| 44 this.autoFocusInUse = autoFocusInUse; | |
| 45 } | |
| 46 | |
| 47 @CalledByNative | |
| 48 public int getMinIso() { | |
| 49 return minIso; | |
| 50 } | |
| 51 | |
| 52 @CalledByNative | |
| 53 public int getMaxIso() { | |
| 54 return maxIso; | |
| 55 } | |
| 56 | |
| 57 @CalledByNative | |
| 58 public int getCurrentIso() { | |
| 59 return currentIso; | |
| 60 } | |
| 61 | |
| 62 @CalledByNative | |
| 63 public int getMinHeight() { | |
| 64 return minHeight; | |
| 65 } | |
| 66 | |
| 67 @CalledByNative | |
| 68 public int getMaxHeight() { | |
| 69 return maxHeight; | |
| 70 } | |
| 71 | |
| 72 @CalledByNative | |
| 73 public int getCurrentHeight() { | |
| 74 return currentHeight; | |
| 75 } | |
| 76 | |
| 77 @CalledByNative | |
| 78 public int getMinWidth() { | |
| 79 return minWidth; | |
| 80 } | |
| 81 | |
| 82 @CalledByNative | |
| 83 public int getMaxWidth() { | |
| 84 return maxWidth; | |
| 85 } | |
| 86 | |
| 87 @CalledByNative | |
| 88 public int getCurrentWidth() { | |
| 89 return currentWidth; | |
| 90 } | |
| 91 | |
| 92 @CalledByNative | |
| 93 public int getMinZoom() { | |
| 94 return minZoom; | |
| 95 } | |
| 96 | |
| 97 @CalledByNative | |
| 98 public int getMaxZoom() { | |
| 99 return maxZoom; | |
| 100 } | |
| 101 | |
| 102 @CalledByNative | |
| 103 public int getCurrentZoom() { | |
| 104 return currentZoom; | |
| 105 } | |
| 106 | |
| 107 @CalledByNative | |
| 108 public boolean getAutoFocusInUse() { | |
| 109 return autoFocusInUse; | |
| 110 } | |
| 111 } | |
| OLD | NEW |