summaryrefslogtreecommitdiffstats
path: root/include/camera/ICamera.h
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-10-18 20:42:51 -0700
committerJames Dong <jdong@google.com>2010-10-19 23:07:08 -0700
commit38311859e809118f2cba3597d056abffe4eb80c0 (patch)
tree0debf077cf395ecb9e5c28979e6bce7325aef34f /include/camera/ICamera.h
parent067222d11f95e2547b638b6daf5d4c06c6dc49ef (diff)
downloadframeworks_base-38311859e809118f2cba3597d056abffe4eb80c0.zip
frameworks_base-38311859e809118f2cba3597d056abffe4eb80c0.tar.gz
frameworks_base-38311859e809118f2cba3597d056abffe4eb80c0.tar.bz2
Camera framework change required for 0-memcpy recording
bug - 3042125 Change-Id: I46eb7a10b5394086b353fd73e4503beceeed76f1
Diffstat (limited to 'include/camera/ICamera.h')
-rw-r--r--include/camera/ICamera.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/camera/ICamera.h b/include/camera/ICamera.h
index 8bceea5..b69e075 100644
--- a/include/camera/ICamera.h
+++ b/include/camera/ICamera.h
@@ -90,6 +90,15 @@ public:
// send command to camera driver
virtual status_t sendCommand(int32_t cmd, int32_t arg1, int32_t arg2) = 0;
+
+ // return the total number of available video buffers
+ virtual int32_t getNumberOfVideoBuffers() const = 0;
+
+ // return the individual video buffer corresponding to the given index.
+ virtual sp<IMemory> getVideoBuffer(int32_t index) const = 0;
+
+ // tell the camera hal to store meta data or real YUV data in video buffers.
+ virtual status_t storeMetaDataInBuffers(bool enabled) = 0;
};
// ----------------------------------------------------------------------------