summaryrefslogtreecommitdiffstats
path: root/camera/CameraHalUtilClasses.cpp
diff options
context:
space:
mode:
authorAkwasi Boateng <akwasi.boateng@ti.com>2011-09-15 19:50:02 -0500
committerIliyan Malchev <malchev@google.com>2011-09-21 16:10:54 -0700
commit8e88af31129b8cc09675279ca2eac88256d8526b (patch)
tree16105c32ab4a06fe22e31a88951b7e113ea3668e /camera/CameraHalUtilClasses.cpp
parentd2d3968a441810c81cf9f46ff43af29cb6fdfb93 (diff)
downloadhardware_ti_omap4xxx-8e88af31129b8cc09675279ca2eac88256d8526b.zip
hardware_ti_omap4xxx-8e88af31129b8cc09675279ca2eac88256d8526b.tar.gz
hardware_ti_omap4xxx-8e88af31129b8cc09675279ca2eac88256d8526b.tar.bz2
Grallock lock and unlock fixes
1. Get and store Y and UV pointers from all gralloc handles to be used for preview callback and video frames. 2. Ensure gralloc lock is successfull before frame return to OMXCameraAdapter Change-Id: Ibeea6d00f2c1a1c45bcd2eafb22b90a795516e5c Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com>
Diffstat (limited to 'camera/CameraHalUtilClasses.cpp')
-rw-r--r--camera/CameraHalUtilClasses.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/camera/CameraHalUtilClasses.cpp b/camera/CameraHalUtilClasses.cpp
index 64cc29f..b0d937c 100644
--- a/camera/CameraHalUtilClasses.cpp
+++ b/camera/CameraHalUtilClasses.cpp
@@ -68,6 +68,17 @@ int FrameProvider::returnFrame(void *frameBuf, CameraFrame::FrameType frameType)
return ret;
}
+void FrameProvider::addFramePointers(void *frameBuf, void *buf)
+{
+ mFrameNotifier->addFramePointers(frameBuf, buf);
+ return;
+}
+
+void FrameProvider::removeFramePointers()
+{
+ mFrameNotifier->removeFramePointers();
+ return;
+}
/*--------------------FrameProvider Class ENDS here-----------------------------*/