diff options
author | Tyler Luu <tluu@ti.com> | 2012-03-23 18:50:39 -0500 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-07-25 08:55:45 -0500 |
commit | 1f54112f1355b1298fa81b1f0ebf42d9f72cc87c (patch) | |
tree | ec4c8a5d961f9e2a1d0b0a7aafd2f66708ef5e51 /camera/CameraHalUtilClasses.cpp | |
parent | 414aec6cd52af37f4a4e42dcfbdbe567190f62d6 (diff) | |
download | hardware_ti_omap4-1f54112f1355b1298fa81b1f0ebf42d9f72cc87c.tar.gz hardware_ti_omap4-1f54112f1355b1298fa81b1f0ebf42d9f72cc87c.tar.bz2 hardware_ti_omap4-1f54112f1355b1298fa81b1f0ebf42d9f72cc87c.zip |
CameraHal: Add CameraBuffer (major refactoring)
Add a CameraBuffer type, which contains information corresponding to
an internal CameraHal buffer - how it was allocated, relevant handles,
and any internal data to be associated with the buffer, such as metadata,
OMX indexes, current state. The simplest possible refactoring was done
to convert the void * used for exchanging buffer information into the
'opaque' field in the CameraBuffer structure. A few hacks were added
to minimize the size of the refactoring, these will be cleaned up in
upcoming commits.
Adding a private structure for buffers eliminates the need for a lot
of KeyedVectors that are currently in use. Most of these were left in
place, and will be refactored into the CameraBuffer structure later.
The pAppPrivate field of OMX_BUFFERHEADERTYPE was used to eliminate
another KeyedVector.
Change-Id: I147ad971e4cdc03b2c445b5fba81d0ba83bc5fb3
Signed-off-by: David Schleef <ds@ti.com>
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
Diffstat (limited to 'camera/CameraHalUtilClasses.cpp')
-rw-r--r-- | camera/CameraHalUtilClasses.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camera/CameraHalUtilClasses.cpp b/camera/CameraHalUtilClasses.cpp index 1767c84..7b380f9 100644 --- a/camera/CameraHalUtilClasses.cpp +++ b/camera/CameraHalUtilClasses.cpp @@ -56,7 +56,7 @@ int FrameProvider::disableFrameNotification(int32_t frameTypes) return ret; } -int FrameProvider::returnFrame(void *frameBuf, CameraFrame::FrameType frameType) +int FrameProvider::returnFrame(CameraBuffer *frameBuf, CameraFrame::FrameType frameType) { status_t ret = NO_ERROR; @@ -65,7 +65,7 @@ int FrameProvider::returnFrame(void *frameBuf, CameraFrame::FrameType frameType) return ret; } -void FrameProvider::addFramePointers(void *frameBuf, void *buf) +void FrameProvider::addFramePointers(CameraBuffer *frameBuf, void *buf) { mFrameNotifier->addFramePointers(frameBuf, buf); return; |