From 57c86189bc07d9ccb0fd044e66df736d0bf19639 Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Sat, 30 Jul 2011 05:00:37 +0800 Subject: Pass camera frame metadata from camera service to Java. bug:4460717 Change-Id: I2fae6e1dfca6b8f3a5ee5716fc7817f5417bf657 --- include/camera/Camera.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/camera/Camera.h') diff --git a/include/camera/Camera.h b/include/camera/Camera.h index f701280..234e165 100644 --- a/include/camera/Camera.h +++ b/include/camera/Camera.h @@ -59,7 +59,8 @@ class CameraListener: virtual public RefBase { public: virtual void notify(int32_t msgType, int32_t ext1, int32_t ext2) = 0; - virtual void postData(int32_t msgType, const sp& dataPtr) = 0; + virtual void postData(int32_t msgType, const sp& dataPtr, + camera_frame_metadata_t *metadata) = 0; virtual void postDataTimestamp(nsecs_t timestamp, int32_t msgType, const sp& dataPtr) = 0; }; @@ -138,7 +139,8 @@ public: // ICameraClient interface virtual void notifyCallback(int32_t msgType, int32_t ext, int32_t ext2); - virtual void dataCallback(int32_t msgType, const sp& dataPtr); + virtual void dataCallback(int32_t msgType, const sp& dataPtr, + camera_frame_metadata_t *metadata); virtual void dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp& dataPtr); sp remote(); -- cgit v1.1