diff options
author | Akwasi Boateng <akwasi.boateng@ti.com> | 2011-09-15 19:50:02 -0500 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-09-21 16:10:54 -0700 |
commit | 8e88af31129b8cc09675279ca2eac88256d8526b (patch) | |
tree | 16105c32ab4a06fe22e31a88951b7e113ea3668e /camera/CameraHalUtilClasses.cpp | |
parent | d2d3968a441810c81cf9f46ff43af29cb6fdfb93 (diff) | |
download | hardware_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.cpp | 11 |
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-----------------------------*/
|