summaryrefslogtreecommitdiffstats
path: root/include/camera/Camera.h
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2013-04-02 15:45:11 -0700
committerEino-Ville Talvala <etalvala@google.com>2013-04-17 15:01:08 -0700
commit3ee3550a2f529cbf56d87d8503f59a8f45dccf32 (patch)
tree99bf718ddc0429a1319523abaae975d3305face3 /include/camera/Camera.h
parentd72ec85d1d0b92ed82927e3925f21912a659b799 (diff)
downloadframeworks_av-3ee3550a2f529cbf56d87d8503f59a8f45dccf32.zip
frameworks_av-3ee3550a2f529cbf56d87d8503f59a8f45dccf32.tar.gz
frameworks_av-3ee3550a2f529cbf56d87d8503f59a8f45dccf32.tar.bz2
Camera: Add preview callback surface support
- Add call to set a preview callback surface - Implement support for HAL2/3 devices - Still need HAL1 implementation Change-Id: I0dc0bd72e43d871aa487858d1665c1efca633ffe
Diffstat (limited to 'include/camera/Camera.h')
-rw-r--r--include/camera/Camera.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/camera/Camera.h b/include/camera/Camera.h
index 37626a4..c34b3ea 100644
--- a/include/camera/Camera.h
+++ b/include/camera/Camera.h
@@ -121,7 +121,15 @@ public:
void setListener(const sp<CameraListener>& listener);
void setRecordingProxyListener(const sp<ICameraRecordingProxyListener>& listener);
+
+ // Configure preview callbacks to app. Only one of the older
+ // callbacks or the callback surface can be active at the same time;
+ // enabling one will disable the other if active. Flags can be
+ // disabled by calling it with CAMERA_FRAME_CALLBACK_FLAG_NOOP, and
+ // Target by calling it with a NULL interface.
void setPreviewCallbackFlags(int preview_callback_flag);
+ status_t setPreviewCallbackTarget(
+ const sp<IGraphicBufferProducer>& callbackProducer);
sp<ICameraRecordingProxy> getRecordingProxy();