summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/CameraSettings.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java
index d05c3a5..fd15414 100644
--- a/src/com/android/camera/CameraSettings.java
+++ b/src/com/android/camera/CameraSettings.java
@@ -140,6 +140,7 @@ public class CameraSettings {
private static final String KEY_QC_SUPPORTED_TNR_MODES = "tnr-mode-values";
private static final String KEY_QC_SUPPORTED_VIDEO_TNR_MODES = "video-tnr-mode-values";
private static final String KEY_QC_SUPPORTED_PREVIEW_FORMATS = "preview-format-values";
+ private static final String KEY_QC_SUPPORTED_FACE_DETECTION = "face-detection-values";
private static final String KEY_SNAPCAM_SUPPORTED_HDR_MODES = "hdr-mode-values";
private static final String KEY_SNAPCAM_SUPPORTED_HDR_NEED_1X = "hdr-need-1x-values";
public static final String KEY_SNAPCAM_SHUTTER_SPEED = "shutter-speed";
@@ -455,6 +456,14 @@ public class CameraSettings {
return split(str);
}
+ public static List<String> getSupportedFaceDetection(Parameters params) {
+ String str = params.get(KEY_QC_SUPPORTED_FACE_DETECTION);
+ if (str == null) {
+ return null;
+ }
+ return split(str);
+ }
+
public static List<String> getSupportedDISModes(Parameters params) {
String str = params.get(KEY_QC_SUPPORTED_DIS_MODES);
if (str == null) {
@@ -793,6 +802,11 @@ public class CameraSettings {
faceRC, getSupportedFaceRecognitionModes(mParameters));
}
+ if (faceDetection != null) {
+ filterUnsupportedOptions(group,
+ faceDetection, getSupportedFaceDetection(mParameters));
+ }
+
if (autoExposure != null) {
filterUnsupportedOptions(group,
autoExposure, mParameters.getSupportedAutoexposure());