diff options
| author | zhuw <zhuw@codeaurora.org> | 2017-10-12 11:17:43 +0800 |
|---|---|---|
| committer | zhuw <zhuw@codeaurora.org> | 2017-10-18 15:12:20 +0800 |
| commit | f75c93e79ce2cbeb630bd550bb18af5dae34be59 (patch) | |
| tree | d63e5bf1b8efeaa05b34273b15dec6357fff5fb9 /src/com/android/camera/CaptureModule.java | |
| parent | 97421f52048f844757a9e8dcc19abccefd76a583 (diff) | |
SnapdragonCamera:Add Sharpness mode
add sharpness control in dev model of camera2
Change-Id: I6209544bf452dff38c4c4c2c4f2b17d8953b358f
CRs-Fixed: 2128695
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
| -rwxr-xr-x | src/com/android/camera/CaptureModule.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index fa2dc4539..7fdd34e57 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -251,6 +251,8 @@ public class CaptureModule implements CameraModule, PhotoController, public static CaptureResult.Key<byte[]> gazeDegree = new CaptureResult.Key<>("org.codeaurora.qcamera3.stats.gaze_degree", byte[].class); + public static final CaptureRequest.Key<Integer> sharpness_control = new CaptureRequest.Key<>( + "org.codeaurora.qcamera3.sharpness.strength", Integer.class); private boolean[] mTakingPicture = new boolean[MAX_NUM_CAM]; private int mControlAFMode = CameraMetadata.CONTROL_AF_MODE_CONTINUOUS_PICTURE; @@ -2127,6 +2129,7 @@ public class CaptureModule implements CameraModule, PhotoController, applyInstantAEC(builder); applySaturationLevel(builder); applyAntiBandingLevel(builder); + applySharpnessControlModes(builder); applyHistogram(builder); } @@ -4024,6 +4027,14 @@ public class CaptureModule implements CameraModule, PhotoController, } } + private void applySharpnessControlModes(CaptureRequest.Builder request) { + String value = mSettingsManager.getValue(SettingsManager.KEY_SHARPNESS_CONTROL_MODE); + if (value != null) { + int intValue = Integer.parseInt(value); + request.set(CaptureModule.sharpness_control, intValue); + } + } + private void applyHistogram(CaptureRequest.Builder request) { String value = mSettingsManager.getValue(SettingsManager.KEY_HISTOGRAM); if (value != null ) { |
