summaryrefslogtreecommitdiffstats
path: root/camera/inc
diff options
context:
space:
mode:
authorTyler Luu <tluu@ti.com>2011-10-13 02:00:08 -0500
committerEino-Ville Talvala <etalvala@google.com>2011-10-14 12:10:17 -0700
commit8b0b73df9a2fe8e4fc2c36919d05321f2d96d543 (patch)
tree192c3118f08c4629145d6fe6b6bd660d026e5cc9 /camera/inc
parent41471bd18fc9a28371c4d89283f2082b513f2226 (diff)
downloadhardware_ti_omap4xxx-8b0b73df9a2fe8e4fc2c36919d05321f2d96d543.zip
hardware_ti_omap4xxx-8b0b73df9a2fe8e4fc2c36919d05321f2d96d543.tar.gz
hardware_ti_omap4xxx-8b0b73df9a2fe8e4fc2c36919d05321f2d96d543.tar.bz2
CameraHal: Adapt to new framework vstab param
change to use the new KEY_VIDEO_STABILIZATION parameter from the framework instead of using TICameraParameter definition. Change-Id: Ifed4c147e6ad3c02b35772343d9d339ab1402eac Signed-off-by: Tyler Luu <tluu@ti.com>
Diffstat (limited to 'camera/inc')
-rw-r--r--camera/inc/CameraHal.h24
-rw-r--r--camera/inc/CameraProperties.h2
-rw-r--r--camera/inc/OMXCameraAdapter/OMXCameraAdapter.h1
-rw-r--r--camera/inc/TICameraParameters.h2
4 files changed, 11 insertions, 18 deletions
diff --git a/camera/inc/CameraHal.h b/camera/inc/CameraHal.h
index aaea2a7..e44c1b6 100644
--- a/camera/inc/CameraHal.h
+++ b/camera/inc/CameraHal.h
@@ -985,21 +985,6 @@ public:
void releaseRecordingFrame(const void *opaque);
/**
- * Set the camera parameters specific to Video Recording.
- */
- bool setVideoModeParameters();
-
- /**
- * Reset the camera parameters specific to Video Recording.
- */
- bool resetVideoModeParameters();
-
- /**
- * Restart the preview with setParameter.
- */
- status_t restartPreview();
-
- /**
* Start auto focus, the notification callback routine is called
* with CAMERA_MSG_FOCUS once when focusing is complete. autoFocus()
* will be called again if another auto focus is needed.
@@ -1100,6 +1085,15 @@ private:
/** @name internalFunctionsPrivate */
//@{
+ /** Set the camera parameters specific to Video Recording. */
+ bool setVideoModeParameters(const CameraParameters&);
+
+ /** Reset the camera parameters specific to Video Recording. */
+ bool resetVideoModeParameters();
+
+ /** Restart the preview with setParameter. */
+ status_t restartPreview();
+
status_t parseResolution(const char *resStr, int &width, int &height);
void insertSupportedParams();
diff --git a/camera/inc/CameraProperties.h b/camera/inc/CameraProperties.h
index 7b9dbd2..a220af7 100644
--- a/camera/inc/CameraProperties.h
+++ b/camera/inc/CameraProperties.h
@@ -118,7 +118,7 @@ public:
static const char S3D2D_PREVIEW[];
static const char S3D2D_PREVIEW_MODES[];
static const char VSTAB[];
- static const char VSTAB_VALUES[];
+ static const char VSTAB_SUPPORTED[];
static const char FRAMERATE_RANGE[];
static const char FRAMERATE_RANGE_IMAGE[];
static const char FRAMERATE_RANGE_VIDEO[];
diff --git a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
index 9f938be..4b82109 100644
--- a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
+++ b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
@@ -732,6 +732,7 @@ private:
static const char DEFAULT_SCENE_MODE[];
static const char DEFAULT_SHARPNESS[];
static const char DEFAULT_VSTAB[];
+ static const char DEFAULT_VSTAB_SUPPORTED[];
static const char DEFAULT_WB[];
static const char DEFAULT_ZOOM[];
static const char DEFAULT_MAX_FD_HW_FACES[];
diff --git a/camera/inc/TICameraParameters.h b/camera/inc/TICameraParameters.h
index 1886d0c..e01b38d 100644
--- a/camera/inc/TICameraParameters.h
+++ b/camera/inc/TICameraParameters.h
@@ -39,8 +39,6 @@ static const char KEY_CAMERA_NAME[];
static const char KEY_S3D_SUPPORTED[];
static const char KEY_BURST[];
static const char KEY_CAP_MODE[];
-static const char KEY_VSTAB[];
-static const char KEY_VSTAB_VALUES[];
static const char KEY_VNF[];
static const char KEY_SATURATION[];
static const char KEY_BRIGHTNESS[];