summaryrefslogtreecommitdiffstats
path: root/camera/BufferSourceAdapter.cpp
diff options
context:
space:
mode:
authorTyler Luu <tluu@ti.com>2012-03-26 19:09:14 -0500
committerDaniel Levin <dendy@ti.com>2012-07-25 08:55:45 -0500
commitf1582e6e9dc33bf5cd13c24e0e755edbaaec9868 (patch)
treea79a61495588d03156f697b9160c21206ad4d3b8 /camera/BufferSourceAdapter.cpp
parent69a4da08343fcf51fb3181422c84f9bb2af8dfe6 (diff)
downloadhardware_ti_omap4-f1582e6e9dc33bf5cd13c24e0e755edbaaec9868.tar.gz
hardware_ti_omap4-f1582e6e9dc33bf5cd13c24e0e755edbaaec9868.tar.bz2
hardware_ti_omap4-f1582e6e9dc33bf5cd13c24e0e755edbaaec9868.zip
camera: add reprocess() functionality
implementation for reprocess state change sequence should look like this: preview->loaded_reprocess->loaded_reprocess_capture-> reprocess Reprocess uses takePicture call to send output buffers to camera adapter and to signal start reprocess. Change-Id: I98a7ccd32778760603e9c367ab3cd4ef30fab8dc Signed-off-by: Tyler Luu <tluu@ti.com>
Diffstat (limited to 'camera/BufferSourceAdapter.cpp')
-rw-r--r--camera/BufferSourceAdapter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/camera/BufferSourceAdapter.cpp b/camera/BufferSourceAdapter.cpp
index edf78fb..b11304d 100644
--- a/camera/BufferSourceAdapter.cpp
+++ b/camera/BufferSourceAdapter.cpp
@@ -429,7 +429,7 @@ CameraBuffer* BufferSourceAdapter::getBufferList(int *num) {
LOG_FUNCTION_NAME;
status_t err;
const int lnumBufs = 1;
- int format, stride;
+ int format;
GraphicBufferMapper &mapper = GraphicBufferMapper::get();
buffer_handle_t *handle;
@@ -442,7 +442,7 @@ CameraBuffer* BufferSourceAdapter::getBufferList(int *num) {
return NULL;
}
- err = mBufferSource->update_and_get_buffer(mBufferSource, &handle, &stride);
+ err = mBufferSource->update_and_get_buffer(mBufferSource, &handle, &mBuffers[0].stride);
if (err != 0) {
CAMHAL_LOGEB("update and get buffer failed: %s (%d)", strerror(-err), -err);
if ( ENODEV == err ) {