diff options
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 |
commit | ddbdb35d176266b5ab64c30178f5cb76c5b1b4b4 (patch) | |
tree | 9a3115e77421f95a8505067cfa60b5a73518ad68 /camera/Camera.cpp | |
parent | 0a5baa9b411fe086013d2a5e9126ed63fbad046c (diff) | |
download | frameworks_av-ddbdb35d176266b5ab64c30178f5cb76c5b1b4b4.zip frameworks_av-ddbdb35d176266b5ab64c30178f5cb76c5b1b4b4.tar.gz frameworks_av-ddbdb35d176266b5ab64c30178f5cb76c5b1b4b4.tar.bz2 |
Change camera interface to support multiple cameras.
Change-Id: Ie88fe706d2278acf762eca87780de349434778a4
Diffstat (limited to 'camera/Camera.cpp')
-rw-r--r-- | camera/Camera.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/camera/Camera.cpp b/camera/Camera.cpp index 2fbddd5..0037399 100644 --- a/camera/Camera.cpp +++ b/camera/Camera.cpp @@ -107,6 +107,13 @@ int32_t Camera::getNumberOfCameras() return cs->getNumberOfCameras(); } +status_t Camera::getCameraInfo(int cameraId, + struct CameraInfo* cameraInfo) { + const sp<ICameraService>& cs = getCameraService(); + if (cs == 0) return UNKNOWN_ERROR; + return cs->getCameraInfo(cameraId, cameraInfo); +} + sp<Camera> Camera::connect(int cameraId) { LOGV("connect"); |