summaryrefslogtreecommitdiffstats
path: root/include
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
commite2ad6734eccc4b9ea7857c747ff9469a9c11ba09 (patch)
treeadefb903549a218f19eb6f8a624bf532e6fa7580 /include
parentf705b5aa8c3b319f7b49f9ea46207187278076f9 (diff)
downloadframeworks_av-e2ad6734eccc4b9ea7857c747ff9469a9c11ba09.zip
frameworks_av-e2ad6734eccc4b9ea7857c747ff9469a9c11ba09.tar.gz
frameworks_av-e2ad6734eccc4b9ea7857c747ff9469a9c11ba09.tar.bz2
Camera framework change required for 0-memcpy recording
bug - 3042125 Change-Id: I46eb7a10b5394086b353fd73e4503beceeed76f1
Diffstat (limited to 'include')
-rw-r--r--include/camera/Camera.h9
-rw-r--r--include/camera/ICamera.h9
2 files changed, 18 insertions, 0 deletions
diff --git a/include/camera/Camera.h b/include/camera/Camera.h
index f7b3b42..171a3b6 100644
--- a/include/camera/Camera.h
+++ b/include/camera/Camera.h
@@ -200,6 +200,15 @@ public:
// send command to camera driver
status_t sendCommand(int32_t cmd, int32_t arg1, int32_t arg2);
+ // return the total number of available video buffers.
+ int32_t getNumberOfVideoBuffers() const;
+
+ // return the individual video buffer corresponding to the given index.
+ sp<IMemory> getVideoBuffer(int32_t index) const;
+
+ // tell camera hal to store meta data or real YUV in video buffers.
+ status_t storeMetaDataInBuffers(bool enabled);
+
void setListener(const sp<CameraListener>& listener);
void setPreviewCallbackFlags(int preview_callback_flag);
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;
};
// ----------------------------------------------------------------------------