diff options
| author | jinwu <jinwu@codeaurora.org> | 2018-09-21 18:09:10 +0800 |
|---|---|---|
| committer | jinwu <jinwu@codeaurora.org> | 2018-09-21 18:09:10 +0800 |
| commit | 91df31d11049e52cf44a8eb95d9beaf1cb0ac3da (patch) | |
| tree | 50a63fd4817208541c1b16feeccd0ede5d135640 /src/com/android/camera/CaptureModule.java | |
| parent | a26301351c28e820f6c2346ebd07265cfed14c8b (diff) | |
SnapdragonCamera:Disable RAW
Disable RAW capture when sensor doesn't
support RAW format output.
CRs-Fixed: 2303351
Change-Id: Ibd09516783ed0eb1e7e8fda3e06fa32e889e1d74
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
| -rwxr-xr-x | src/com/android/camera/CaptureModule.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 7bfee3041..a1e3d62e3 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -3781,7 +3781,12 @@ public class CaptureModule implements CameraModule, PhotoController, mSupportedMaxPictureSize = prevSizes[0]; Size[] rawSize = mSettingsManager.getSupportedOutputSize(getMainCameraId(), ImageFormat.RAW10); - mSupportedRawPictureSize = rawSize[0]; + if (rawSize == null || rawSize.length == 0) { + mSupportedRawPictureSize = null; + mSaveRaw = false; + } else { + mSupportedRawPictureSize = rawSize[0]; + } mPreviewSize = getOptimalPreviewSize(mPictureSize, prevSizes); Size[] thumbSizes = mSettingsManager.getSupportedThumbnailSizes(getMainCameraId()); mPictureThumbSize = getOptimalPreviewSize(mPictureSize, thumbSizes); // get largest thumb size |
