From b4a28dec029ecbd35aa27984f8681ae98286eca0 Mon Sep 17 00:00:00 2001 From: Kalpesh Patil Date: Sat, 13 Aug 2011 08:19:20 +0530 Subject: Camera Hal : Handle Recording Hint set by Camcorder Application Recoding Hint is set now by Camcorder App, in order to allow CameraHal to start preview is Recording specific mode (i.e. Video-Mode). This patch adds support to handle Recoding Hint in order to set/reset Recording specific parameters. This patch also takes care of following contraints set by Recording Hint support in framework. 1) Camera App can set/reset Recording Hint while preview is active. 2) Camera App can start recording even when the Recording Hint is false. Change-Id: I6332c316ddc3ddda7f8c9c5739f81e6317c7deb0 Signed-Off-By: Kalpesh Patil --- camera/inc/CameraHal.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'camera/inc') diff --git a/camera/inc/CameraHal.h b/camera/inc/CameraHal.h index 94ed67d..7930830 100644 --- a/camera/inc/CameraHal.h +++ b/camera/inc/CameraHal.h @@ -886,7 +886,17 @@ public: /** * Set the camera parameters specific to Video Recording. */ - status_t setVideoModeParameters(); + 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 -- cgit v1.1