summaryrefslogtreecommitdiff
path: root/include/camera/CameraHardwareInterface.h
diff options
context:
space:
mode:
author Chih-Chung Chang <chihchung@google.com> 2010-06-10 13:32:16 +0800
committer Chih-Chung Chang <chihchung@google.com> 2010-06-11 16:47:33 +0800
commitb8bb78f54b48868465a9d69d65fda08524ab5ae1 (patch)
treefadbdd8dd989ce2b3b29cd780fabc91d7f98dd09 /include/camera/CameraHardwareInterface.h
parent2fd73a452268d2acb6e72a1d23a422085ed3c510 (diff)
Change camera interface to support multiple cameras.
Change-Id: Ie88fe706d2278acf762eca87780de349434778a4
Diffstat (limited to 'include/camera/CameraHardwareInterface.h')
-rw-r--r--include/camera/CameraHardwareInterface.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/camera/CameraHardwareInterface.h b/include/camera/CameraHardwareInterface.h
index d877c74a753e..1529db71885e 100644
--- a/include/camera/CameraHardwareInterface.h
+++ b/include/camera/CameraHardwareInterface.h
@@ -213,8 +213,15 @@ public:
virtual status_t dump(int fd, const Vector<String16>& args) const = 0;
};
-/** factory function to instantiate a camera hardware object */
-extern "C" sp<CameraHardwareInterface> openCameraHardware();
+/**
+ * The functions need to be provided by the camera HAL.
+ *
+ * If getNumberOfCameras() returns N, the valid cameraId for getCameraInfo()
+ * and openCameraHardware() is 0 to N-1.
+ */
+extern "C" int HAL_getNumberOfCameras();
+extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo);
+extern "C" sp<CameraHardwareInterface> HAL_openCameraHardware(int cameraId);
}; // namespace android