From 0a73ca4805b0e4c6fed190c424959822b339a223 Mon Sep 17 00:00:00 2001 From: Arne Coucheron Date: Mon, 15 Apr 2013 05:31:41 +0200 Subject: Camera parameters for Samsung's qcom based legacy devices Change-Id: I8f84e06771338d992521e69704d21cd113201b4b --- camera/CameraParameters.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'camera') diff --git a/camera/CameraParameters.cpp b/camera/CameraParameters.cpp index eedf8f4..b082c1b 100644 --- a/camera/CameraParameters.cpp +++ b/camera/CameraParameters.cpp @@ -127,7 +127,11 @@ const char CameraParameters::KEY_ISO_MODE[] = "iso"; const char CameraParameters::KEY_SUPPORTED_ISO_MODES[] = "iso-values"; const char CameraParameters::KEY_LENSSHADE[] = "lensshade"; const char CameraParameters::KEY_SUPPORTED_LENSSHADE_MODES[] = "lensshade-values"; +#ifdef SAMSUNG_CAMERA_LEGACY +const char CameraParameters::KEY_AUTO_EXPOSURE[] = "metering"; +#else const char CameraParameters::KEY_AUTO_EXPOSURE[] = "auto-exposure"; +#endif const char CameraParameters::KEY_SUPPORTED_AUTO_EXPOSURE[] = "auto-exposure-values"; const char CameraParameters::KEY_DENOISE[] = "denoise"; const char CameraParameters::KEY_SUPPORTED_DENOISE[] = "denoise-values"; @@ -244,7 +248,11 @@ const char CameraParameters::SCENE_MODE_SPORTS[] = "sports"; const char CameraParameters::SCENE_MODE_PARTY[] = "party"; const char CameraParameters::SCENE_MODE_CANDLELIGHT[] = "candlelight"; #ifdef QCOM_HARDWARE +#ifdef SAMSUNG_CAMERA_LEGACY +const char CameraParameters::SCENE_MODE_BACKLIGHT[] = "back-light"; +#else const char CameraParameters::SCENE_MODE_BACKLIGHT[] = "backlight"; +#endif const char CameraParameters::SCENE_MODE_FLOWERS[] = "flowers"; #endif const char CameraParameters::SCENE_MODE_BARCODE[] = "barcode"; @@ -397,6 +405,28 @@ const char CameraParameters::AE_BRACKET[] = "AE-Bracket"; const char CameraParameters::LOW_POWER[] = "Low_Power"; const char CameraParameters::NORMAL_POWER[] = "Normal_Power"; +#if defined(QCOM_HARDWARE) && defined(SAMSUNG_CAMERA_LEGACY) +const char CameraParameters::FOCUS_MODE_FACEDETECT[] = "facedetect"; +const char CameraParameters::FOCUS_MODE_TOUCHAF[] = "touchaf"; +const char CameraParameters::ISO_50[] = "ISO50"; +const char CameraParameters::KEY_ANTI_SHAKE_MODE[] = "antishake"; +const char CameraParameters::KEY_AUTO_CONTRAST[] = "auto-contrast"; +const char CameraParameters::KEY_BEAUTY_MODE[] = "beauty"; +const char CameraParameters::KEY_BLUR_MODE[] = "blur"; +const char CameraParameters::KEY_VINTAGE_MODE[] = "vintagemode"; +const char CameraParameters::KEY_WDR_MODE[] = "wdr"; +const char CameraParameters::VINTAGE_MODE_BNW[] = "bnw"; +const char CameraParameters::VINTAGE_MODE_COOL[] = "cool"; +const char CameraParameters::VINTAGE_MODE_NORMAL[] = "normal"; +const char CameraParameters::VINTAGE_MODE_OFF[] = "off"; +const char CameraParameters::VINTAGE_MODE_WARM[] = "warm"; +const char CameraParameters::SCENE_MODE_DAWN[] = "dusk-dawn"; +const char CameraParameters::SCENE_MODE_DUSKDAWN[] = "dusk-dawn"; +const char CameraParameters::SCENE_MODE_FALL[] = "fall-color"; +const char CameraParameters::SCENE_MODE_FALL_COLOR[] = "fall-color"; +const char CameraParameters::SCENE_MODE_TEXT[] = "text"; +#endif + static const char* portrait = "portrait"; static const char* landscape = "landscape"; -- cgit v1.1