diff options
author | Tyler Luu <tluu@ti.com> | 2011-10-17 17:12:09 -0500 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-10-19 13:03:04 -0700 |
commit | fab72086a1fa5d93037ec1355bc8b01355db0f41 (patch) | |
tree | a64e42d567db18c10b30b427e5091801222ea701 /camera/inc/OMXCameraAdapter/OMXCameraAdapter.h | |
parent | 4f29332694e8222b3f1fae39d40edcdec1dec1bd (diff) | |
download | omap4xxx-omapzoom-fab72086a1fa5d93037ec1355bc8b01355db0f41.tar.gz |
CameraHAL: Keep image port enabled if possible
Try to keep the image port enabled if possible after capturing
an image. We need to disable the image port if any settings are
changed or when stopping preview. To disable image port, buffers
also have to be freed, and to keep the image port enabled, the
same buffer needs to be used. So, we are reenabling functionality
to trigger free the image buffer from camera adapter to free the
buffer as late as possible and as required by camera adapter.
Skip image buffer allocation if it is already enabled.
Fixes issue with some jerks seen in preview during video
capture while taking snapshot.
b/5449158
Change-Id: I830cf8512fe039df10d28e1f5a22e61e30840852
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'camera/inc/OMXCameraAdapter/OMXCameraAdapter.h')
-rw-r--r-- | camera/inc/OMXCameraAdapter/OMXCameraAdapter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h index 04bc64ce..3390ecf0 100644 --- a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h +++ b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h @@ -606,6 +606,7 @@ private: // Image Capture Service status_t startImageCapture(); + status_t disableImagePort(); //Shutter callback notifications status_t setShutterCallback(bool enabled); |