diff options
author | Cullum Baldwin <cullumb@codeaurora.org> | 2016-08-23 10:57:13 -0700 |
---|---|---|
committer | Jay Wang <jaywang@codeaurora.org> | 2016-09-28 11:30:16 -0700 |
commit | 323614b27adedde1c782bccfe2fe5baf855e4cb8 (patch) | |
tree | 2d2746c63b4e3cfc72d07dd087d7f1deba1c43b5 /src | |
parent | ff46acbd04a495eb93f45417421156ec6dfdc17f (diff) | |
download | android_packages_apps_Snap-323614b27adedde1c782bccfe2fe5baf855e4cb8.tar.gz android_packages_apps_Snap-323614b27adedde1c782bccfe2fe5baf855e4cb8.tar.bz2 android_packages_apps_Snap-323614b27adedde1c782bccfe2fe5baf855e4cb8.zip |
SnapdragonCamera: Set CDS to auto for all captures
Set CDS (chroma-down-sample) to auto for all captures.
CRs-Fixed: 1054144
Change-Id: I9fe3f1a7cc5be32c39e268cbe51a9e4d73048e57
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/CaptureModule.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index dd5fde708..8db9a10d4 100644 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -170,6 +170,8 @@ public class CaptureModule implements CameraModule, PhotoController, CaptureRequest.Key<Integer> BayerMonoLinkSessionIdKey = new CaptureRequest.Key<>("org.codeaurora.qcamera3.dualcam_link_meta_data" + ".related_camera_id", Integer.class); + CaptureRequest.Key<Integer> CdsModeKey = + new CaptureRequest.Key<>("org.codeaurora.qcamera3.CDS.cds_mode", Integer.class); public static CaptureRequest.Key<Byte> JpegCropEnableKey = new CaptureRequest.Key<>("org.codeaurora.qcamera3.jpeg_encode_crop.enable", Byte.class); @@ -1099,6 +1101,7 @@ public class CaptureModule implements CameraModule, PhotoController, addPreviewSurface(captureBuilder, null, id); captureBuilder.set(CaptureRequest.CONTROL_AF_MODE, mControlAFMode); captureBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, CaptureRequest.CONTROL_AF_TRIGGER_IDLE); + captureBuilder.set(CdsModeKey, 2); // CDS 0-OFF, 1-ON, 2-AUTO applySettingsForLockExposure(captureBuilder, id); applySettingsForCapture(captureBuilder, id); |