summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authorCamera Software Integration <camswint@localhost>2016-10-03 10:13:39 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-03 10:13:39 -0700
commitd1e00416950410d7e9f515bc619536e2a6f19ff5 (patch)
treef06ab349f7fae5884772c025368fb81d8bbb9533 /src/com/android/camera/CaptureModule.java
parentebf4ffc31a8edf99e14984c506231cdc4b2fd332 (diff)
parent7d9eb158ed637e5cc8fc446fa1266f07ffb04ba9 (diff)
downloadandroid_packages_apps_Snap-d1e00416950410d7e9f515bc619536e2a6f19ff5.tar.gz
android_packages_apps_Snap-d1e00416950410d7e9f515bc619536e2a6f19ff5.tar.bz2
android_packages_apps_Snap-d1e00416950410d7e9f515bc619536e2a6f19ff5.zip
Merge "SnapdragonCamera: support lower resolutions for Clearsight" into camera.lnx.1.0.c7-dev
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rw-r--r--src/com/android/camera/CaptureModule.java19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 00fb6f161..dee264ebc 100644
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -176,6 +176,9 @@ public class CaptureModule implements CameraModule, PhotoController,
public static CaptureRequest.Key<int[]> JpegCropRectKey =
new CaptureRequest.Key<>("org.codeaurora.qcamera3.jpeg_encode_crop.rect",
int[].class);
+ public static CaptureRequest.Key<int[]> JpegRoiRectKey =
+ new CaptureRequest.Key<>("org.codeaurora.qcamera3.jpeg_encode_crop.roi",
+ int[].class);
public static CameraCharacteristics.Key<Byte> MetaDataMonoOnlyKey =
new CameraCharacteristics.Key<>("org.codeaurora.qcamera3.sensor_meta_data.is_mono_only",
Byte.class);
@@ -1339,7 +1342,7 @@ public class CaptureModule implements CameraModule, PhotoController,
if (isClearSightOn()) {
if(i == getMainCameraId()) {
- ClearSightImageProcessor.getInstance().init(mPictureSize.getWidth(),
+ ClearSightImageProcessor.getInstance().init(map, mPictureSize.getWidth(),
mPictureSize.getHeight(), mActivity, mOnMediaSavedListener);
ClearSightImageProcessor.getInstance().setCallback(this);
}
@@ -3426,20 +3429,6 @@ public class CaptureModule implements CameraModule, PhotoController,
return mUI.getTrackingFocusRenderer();
}
- /**
- * Compares two {@code Size}s based on their areas.
- */
- static class CompareSizesByArea implements Comparator<Size> {
-
- @Override
- public int compare(Size lhs, Size rhs) {
- // We cast here to ensure the multiplications won't overflow
- return Long.signum((long) lhs.getWidth() * lhs.getHeight() -
- (long) rhs.getWidth() * rhs.getHeight());
- }
-
- }
-
private class MyCameraHandler extends Handler {
public MyCameraHandler(Looper looper) {