From 0c5e4d558a8d2b7d2fff05990290cd93ba22ab6b Mon Sep 17 00:00:00 2001 From: jt1134 Date: Fri, 25 Jan 2013 22:59:33 -0600 Subject: libcamera: add additional ISO modes Change-Id: I1d9db7bbce75f6ecec96a73d81e223b260c68ae8 --- libcamera/SecCameraHWInterface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libcamera') diff --git a/libcamera/SecCameraHWInterface.cpp b/libcamera/SecCameraHWInterface.cpp index 2d4999c..8f24990 100755 --- a/libcamera/SecCameraHWInterface.cpp +++ b/libcamera/SecCameraHWInterface.cpp @@ -348,7 +348,7 @@ void CameraHardwareSec::initDefaultParameters(int cameraId) ip.set("blur", 0); } - p.set("iso-values", "auto,ISO50,ISO100,ISO200,ISO400,ISO800,ISO1600"); + p.set("iso-values", "auto,ISO50,ISO100,ISO200,ISO400,ISO800,ISO1600,ISO_SPORTS,ISO_NIGHT"); p.set("iso", "auto"); p.set(CameraParameters::KEY_HORIZONTAL_VIEW_ANGLE, "51.2"); @@ -1584,6 +1584,10 @@ status_t CameraHardwareSec::setParameters(const CameraParameters& params) new_iso = ISO_800; } else if (!strcmp(new_iso_str, "ISO1600")) { new_iso = ISO_1600; + } else if (!strcmp(new_iso_str, "ISO_SPORTS")) { + new_iso = ISO_SPORTS; + } else if (!strcmp(new_iso_str, "ISO_NIGHT")) { + new_iso = ISO_NIGHT; } else { ALOGE("ERR(%s):Invalid iso value(%s)", __func__, new_iso_str); ret = UNKNOWN_ERROR; -- cgit v1.1