diff options
author | Camera Software Integration <camswint@quicinc.com> | 2017-07-20 11:23:50 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-07-20 11:23:50 -0700 |
commit | 5cbbb13f951339055deaa5a353dabb6097f84eef (patch) | |
tree | 806aaa7a8a0709ec05dffb8d30bf276969313ad3 /src/org/codeaurora/snapcam/filter | |
parent | f90319b0d26d9dd1a6e0cf5a6e801adc300eb645 (diff) | |
parent | 5e69aa42e76b43e68bcf6373b6c18fc0e25ea3e0 (diff) | |
download | android_packages_apps_Snap-5cbbb13f951339055deaa5a353dabb6097f84eef.tar.gz android_packages_apps_Snap-5cbbb13f951339055deaa5a353dabb6097f84eef.tar.bz2 android_packages_apps_Snap-5cbbb13f951339055deaa5a353dabb6097f84eef.zip |
Merge "SnapdragonCamera: Add vendor tag util" into camera.lnx.3.0-dev
Diffstat (limited to 'src/org/codeaurora/snapcam/filter')
-rwxr-xr-x | src/org/codeaurora/snapcam/filter/ClearSightImageProcessor.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/codeaurora/snapcam/filter/ClearSightImageProcessor.java b/src/org/codeaurora/snapcam/filter/ClearSightImageProcessor.java index e51273673..a5521bed2 100755 --- a/src/org/codeaurora/snapcam/filter/ClearSightImageProcessor.java +++ b/src/org/codeaurora/snapcam/filter/ClearSightImageProcessor.java @@ -87,7 +87,7 @@ import com.android.camera.PhotoModule.NamedImages.NamedEntity; import com.android.camera.SettingsManager; import com.android.camera.Storage; import com.android.camera.util.CameraUtil; - +import com.android.camera.util.VendorTagUtil; public class ClearSightImageProcessor { private static final String TAG = "ClearSightImageProcessor"; @@ -1082,7 +1082,7 @@ public class ClearSightImageProcessor { private void sendReprocessRequest(CaptureRequest.Builder reprocRequest, Image image, final int camType) { try { - reprocRequest.set(CaptureModule.JpegCropEnableKey, (byte)1); + VendorTagUtil.setJpegCropEnable(reprocRequest, (byte)1); Rect cropRect = image.getCropRect(); if(cropRect == null || @@ -1093,14 +1093,14 @@ public class ClearSightImageProcessor { cropRect = getFinalCropRect(cropRect); // has crop rect. apply to jpeg request - reprocRequest.set(CaptureModule.JpegCropRectKey, + VendorTagUtil.setJpegCropRect(reprocRequest, new int[] {cropRect.left, cropRect.top, cropRect.width(), cropRect.height()}); if(camType == CAM_TYPE_MONO) { - reprocRequest.set(CaptureModule.JpegRoiRectKey, + VendorTagUtil.setJpegRoiRect(reprocRequest, new int[] {0, 0, mFinalMonoSize.getWidth(), mFinalMonoSize.getHeight()}); } else { - reprocRequest.set(CaptureModule.JpegRoiRectKey, + VendorTagUtil.setJpegRoiRect(reprocRequest, new int[] {0, 0, mFinalPictureSize.getWidth(), mFinalPictureSize.getHeight()}); } |