summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/CameraHardwareInterface.h
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-07-28 05:30:59 +0800
committerWu-cheng Li <wuchengli@google.com>2011-07-29 07:14:38 +0800
commitff09ef8f18eed29bce50c7817df2fd52d2b50cf6 (patch)
treef02ccfe423ba130129a964b7e59e66ca2cae3469 /services/camera/libcameraservice/CameraHardwareInterface.h
parenta3924af33a8005a0aeb20b97fd06e0c523b0d1af (diff)
downloadframeworks_av-ff09ef8f18eed29bce50c7817df2fd52d2b50cf6.zip
frameworks_av-ff09ef8f18eed29bce50c7817df2fd52d2b50cf6.tar.gz
frameworks_av-ff09ef8f18eed29bce50c7817df2fd52d2b50cf6.tar.bz2
Add frame metadata parameter to camera data_callback.
bug:4460717 Change-Id: Ib47d7d7df20af8155a719f3dabefe030893bfebc
Diffstat (limited to 'services/camera/libcameraservice/CameraHardwareInterface.h')
-rw-r--r--services/camera/libcameraservice/CameraHardwareInterface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/CameraHardwareInterface.h b/services/camera/libcameraservice/CameraHardwareInterface.h
index 09e88c4..31544b3 100644
--- a/services/camera/libcameraservice/CameraHardwareInterface.h
+++ b/services/camera/libcameraservice/CameraHardwareInterface.h
@@ -38,6 +38,7 @@ typedef void (*notify_callback)(int32_t msgType,
typedef void (*data_callback)(int32_t msgType,
const sp<IMemory> &dataPtr,
+ camera_frame_metadata_t *metadata,
void* user);
typedef void (*data_callback_timestamp)(nsecs_t timestamp,
@@ -442,6 +443,7 @@ private:
static void __data_cb(int32_t msg_type,
const camera_memory_t *data, unsigned int index,
+ camera_frame_metadata_t *metadata,
void *user)
{
LOGV("%s", __FUNCTION__);
@@ -453,7 +455,7 @@ private:
index, mem->mNumBufs);
return;
}
- __this->mDataCb(msg_type, mem->mBuffers[index], __this->mCbUser);
+ __this->mDataCb(msg_type, mem->mBuffers[index], metadata, __this->mCbUser);
}
static void __data_cb_timestamp(nsecs_t timestamp, int32_t msg_type,