summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/api1/client2/CaptureSequencer.h
diff options
context:
space:
mode:
authorYin-Chia Yeh <yinchiayeh@google.com>2015-05-18 15:03:35 -0700
committerYin-Chia Yeh <yinchiayeh@google.com>2015-05-19 11:56:18 -0700
commit216db7455a19a2f1a5b29e3a9610231365b6c778 (patch)
tree86b657d4b0767ab3949a8e144675a3762f44df27 /services/camera/libcameraservice/api1/client2/CaptureSequencer.h
parente28159ba94a7fa6711c2f1e459413ccce9f065ab (diff)
downloadframeworks_av-216db7455a19a2f1a5b29e3a9610231365b6c778.zip
frameworks_av-216db7455a19a2f1a5b29e3a9610231365b6c778.tar.gz
frameworks_av-216db7455a19a2f1a5b29e3a9610231365b6c778.tar.bz2
Camera: API1 shim: notify shutter correctly
Previous implementation only notifies the callback when we receive full capture result. This implementation notifies the callback once HAL sends capture start callback. Bug: 12530628 Change-Id: Ibf71d532b5cf649514b316e35683c217021698b4
Diffstat (limited to 'services/camera/libcameraservice/api1/client2/CaptureSequencer.h')
-rw-r--r--services/camera/libcameraservice/api1/client2/CaptureSequencer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/api1/client2/CaptureSequencer.h b/services/camera/libcameraservice/api1/client2/CaptureSequencer.h
index d42ab13..10252fb 100644
--- a/services/camera/libcameraservice/api1/client2/CaptureSequencer.h
+++ b/services/camera/libcameraservice/api1/client2/CaptureSequencer.h
@@ -62,6 +62,10 @@ class CaptureSequencer:
// Notifications about AE state changes
void notifyAutoExposure(uint8_t newState, int triggerId);
+ // Notifications about shutter (capture start)
+ void notifyShutter(const CaptureResultExtras& resultExtras,
+ nsecs_t timestamp);
+
// Notification from the frame processor
virtual void onResultAvailable(const CaptureResult &result);
@@ -95,7 +99,10 @@ class CaptureSequencer:
sp<MemoryBase> mCaptureBuffer;
Condition mNewCaptureSignal;
- bool mShutterNotified;
+ bool mShutterNotified; // Has CaptureSequencer sent shutter to Client
+ bool mHalNotifiedShutter; // Has HAL sent shutter to CaptureSequencer
+ int32_t mShutterCaptureId; // The captureId which is waiting for shutter notification
+ Condition mShutterNotifySignal;
/**
* Internal to CaptureSequencer