summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/ProCamera2Client.h
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-02-21 12:02:29 -0800
committerIgor Murashkin <iam@google.com>2013-02-22 10:50:15 -0800
commita91537e268f2b35f9f0dfdc0c4f84655c93285ae (patch)
tree114691436e16b7c8dfc5929d922712edd2c41aff /services/camera/libcameraservice/ProCamera2Client.h
parenteb72e1796b3af548e87891a6d2b73b0567807f25 (diff)
downloadframeworks_av-a91537e268f2b35f9f0dfdc0c4f84655c93285ae.zip
frameworks_av-a91537e268f2b35f9f0dfdc0c4f84655c93285ae.tar.gz
frameworks_av-a91537e268f2b35f9f0dfdc0c4f84655c93285ae.tar.bz2
Camera: ProCamera - implement onResultReceived callback for metadata callbacks
Change-Id: I46775402b007244bc383d6343a620eebbd492aad
Diffstat (limited to 'services/camera/libcameraservice/ProCamera2Client.h')
-rw-r--r--services/camera/libcameraservice/ProCamera2Client.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/ProCamera2Client.h b/services/camera/libcameraservice/ProCamera2Client.h
index b72fd63..dfea1e1 100644
--- a/services/camera/libcameraservice/ProCamera2Client.h
+++ b/services/camera/libcameraservice/ProCamera2Client.h
@@ -19,6 +19,7 @@
#include "Camera2Device.h"
#include "CameraService.h"
+#include "camera2/ProFrameProcessor.h"
namespace android {
@@ -29,7 +30,8 @@ class IMemory;
*/
class ProCamera2Client :
public CameraService::ProClient,
- public Camera2Device::NotificationListener
+ public Camera2Device::NotificationListener,
+ public camera2::ProFrameProcessor::FilteredListener
{
public:
/**
@@ -120,6 +122,10 @@ public:
mutable Mutex mRemoteCallbackLock;
} mSharedCameraCallbacks;
+protected:
+ /** FilteredListener implementation **/
+ virtual void onFrameAvailable(int32_t frameId, const CameraMetadata& frame);
+
private:
/** IProCameraUser interface-related private members */
@@ -137,6 +143,10 @@ private:
sp<IBinder> mPreviewSurface;
/** Preview callback related members */
+ sp<camera2::ProFrameProcessor> mFrameProcessor;
+ static const int32_t FRAME_PROCESSOR_LISTENER_MIN_ID = 0;
+ static const int32_t FRAME_PROCESSOR_LISTENER_MAX_ID = 0x7fffffffL;
+
/** Camera2Device instance wrapping HAL2 entry */
sp<Camera2Device> mDevice;