summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CameraSettings.java
diff options
context:
space:
mode:
authorJaimin Bhise <jbhise@codeaurora.org>2015-07-15 12:58:58 +0530
committerJaimin Bhise <jbhise@codeaurora.org>2015-10-29 13:57:25 -0700
commitc1263820a5d1aa97e6427cb6af07bd6af76fcfe8 (patch)
treeed48ccf72262a23e5dc177b8ce1e6bb36ac8957b /src/com/android/camera/CameraSettings.java
parentcf50c164afdcb43aa8cb03eb5e450568d6b33512 (diff)
downloadandroid_packages_apps_Snap-c1263820a5d1aa97e6427cb6af07bd6af76fcfe8.tar.gz
android_packages_apps_Snap-c1263820a5d1aa97e6427cb6af07bd6af76fcfe8.tar.bz2
android_packages_apps_Snap-c1263820a5d1aa97e6427cb6af07bd6af76fcfe8.zip
SnapdragonCamera: Fix compilation
1. Address compilation due to compiler upgrade. 2. Comment out video dependencies to enable camera. 3. Fix compilation issue due to IMountService interface change. 4. Comment out ExtendedFace. 5. Remove non-standard video resolutions. 6. Revert "camera: override shutter sound volume" commit 8a50cda8f72738e943904fdf7cae189b2b0a8ea8. Change-Id: I167ab5ff399c4f1d306a1a7ddf94896565c9625a
Diffstat (limited to 'src/com/android/camera/CameraSettings.java')
-rw-r--r--src/com/android/camera/CameraSettings.java24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java
index 053381122..99f866991 100644
--- a/src/com/android/camera/CameraSettings.java
+++ b/src/com/android/camera/CameraSettings.java
@@ -272,22 +272,18 @@ public class CameraSettings {
//video encoders
VIDEO_ENCODER_TABLE.put(MediaRecorder.VideoEncoder.H263, "h263");
VIDEO_ENCODER_TABLE.put(MediaRecorder.VideoEncoder.H264, "h264");
- VIDEO_ENCODER_TABLE.put(MediaRecorder.VideoEncoder.H265, "h265");
+ //VIDEO_ENCODER_TABLE.put(MediaRecorder.VideoEncoder.H265, "h265");
VIDEO_ENCODER_TABLE.put(MediaRecorder.VideoEncoder.MPEG_4_SP, "m4v");
//video qualities
- VIDEO_QUALITY_TABLE.put("4096x2160", CamcorderProfile.QUALITY_4kDCI);
+// VIDEO_QUALITY_TABLE.put("4096x2160", CamcorderProfile.QUALITY_4kDCI);
VIDEO_QUALITY_TABLE.put("3840x2160", CamcorderProfile.QUALITY_2160P);
VIDEO_QUALITY_TABLE.put("2560x1440", CamcorderProfile.QUALITY_QHD);
VIDEO_QUALITY_TABLE.put("2048x1080", CamcorderProfile.QUALITY_2k);
VIDEO_QUALITY_TABLE.put("1920x1080", CamcorderProfile.QUALITY_1080P);
VIDEO_QUALITY_TABLE.put("1280x720", CamcorderProfile.QUALITY_720P);
VIDEO_QUALITY_TABLE.put("720x480", CamcorderProfile.QUALITY_480P);
- VIDEO_QUALITY_TABLE.put("864x480", CamcorderProfile.QUALITY_FWVGA);
- VIDEO_QUALITY_TABLE.put("800x480", CamcorderProfile.QUALITY_WVGA);
- VIDEO_QUALITY_TABLE.put("640x480", CamcorderProfile.QUALITY_VGA);
- VIDEO_QUALITY_TABLE.put("480x360", CamcorderProfile.QUALITY_HVGA);
- VIDEO_QUALITY_TABLE.put("400x240", CamcorderProfile.QUALITY_WQVGA);
+// VIDEO_QUALITY_TABLE.put("640x480", CamcorderProfile.QUALITY_VGA);
VIDEO_QUALITY_TABLE.put("352x288", CamcorderProfile.QUALITY_CIF);
VIDEO_QUALITY_TABLE.put("320x240", CamcorderProfile.QUALITY_QVGA);
VIDEO_QUALITY_TABLE.put("176x144", CamcorderProfile.QUALITY_QCIF);
@@ -1206,11 +1202,13 @@ public class CameraSettings {
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
private static void getFineResolutionQuality(ArrayList<String> supported,
int cameraId,Parameters parameters) {
+/*
if (CamcorderProfile.hasProfile(cameraId, CamcorderProfile.QUALITY_4kDCI)) {
if (checkSupportedVideoQuality(parameters,4096,2160)) {
supported.add(Integer.toString(CamcorderProfile.QUALITY_4kDCI));
}
}
+*/
if (CamcorderProfile.hasProfile(cameraId, CamcorderProfile.QUALITY_2160P)) {
if (checkSupportedVideoQuality(parameters,3840,2160)) {
supported.add(Integer.toString(CamcorderProfile.QUALITY_2160P));
@@ -1231,21 +1229,13 @@ public class CameraSettings {
supported.add(Integer.toString(CamcorderProfile.QUALITY_480P));
}
}
- if (CamcorderProfile.hasProfile(cameraId, CamcorderProfile.QUALITY_FWVGA)) {
- if (checkSupportedVideoQuality(parameters,864,480)){
- supported.add(Integer.toString(CamcorderProfile.QUALITY_FWVGA));
- }
- }
- if (CamcorderProfile.hasProfile(cameraId, CamcorderProfile.QUALITY_WVGA)) {
- if (checkSupportedVideoQuality(parameters,800,480)){
- supported.add(Integer.toString(CamcorderProfile.QUALITY_WVGA));
- }
- }
+/*
if (CamcorderProfile.hasProfile(cameraId, CamcorderProfile.QUALITY_VGA)) {
if (checkSupportedVideoQuality(parameters,640,480)){
supported.add(Integer.toString(CamcorderProfile.QUALITY_VGA));
}
}
+*/
if (CamcorderProfile.hasProfile(cameraId, CamcorderProfile.QUALITY_CIF)) {
if (checkSupportedVideoQuality(parameters,352,288)){
supported.add(Integer.toString(CamcorderProfile.QUALITY_CIF));