summaryrefslogtreecommitdiffstats
path: root/include/camera
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2015-08-14 13:12:32 -0700
committerEino-Ville Talvala <etalvala@google.com>2015-08-14 16:02:03 -0700
commitbad4358c83c7daaf9eeb8542c15eea4f473c884c (patch)
tree0b01065e69f769a7dc058b8ac6652ef93d4736ed /include/camera
parent49f0246c2eac50bbfebf48316b1086de64ac9860 (diff)
downloadframeworks_av-bad4358c83c7daaf9eeb8542c15eea4f473c884c.zip
frameworks_av-bad4358c83c7daaf9eeb8542c15eea4f473c884c.tar.gz
frameworks_av-bad4358c83c7daaf9eeb8542c15eea4f473c884c.tar.bz2
Camera: Add camera type to ICameraService.getNumberOfCameras.
Also determine the number of 'normal' cameras present on camera service startup, and ensure that all normal cameras have IDs lower than the 'strange' cameras. Bug: 23194168 Change-Id: I1f7b14825cb52707de698a955f85da1eaa932663
Diffstat (limited to 'include/camera')
-rw-r--r--include/camera/ICameraService.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/camera/ICameraService.h b/include/camera/ICameraService.h
index 5f85635..1b68b5f 100644
--- a/include/camera/ICameraService.h
+++ b/include/camera/ICameraService.h
@@ -64,6 +64,11 @@ public:
};
enum {
+ CAMERA_TYPE_BACKWARD_COMPATIBLE = 0,
+ CAMERA_TYPE_ALL = 1,
+ };
+
+ enum {
CAMERA_HAL_API_VERSION_UNSPECIFIED = -1
};
@@ -81,7 +86,12 @@ public:
public:
DECLARE_META_INTERFACE(CameraService);
+ // Get the number of cameras that support basic color camera operation
+ // (type CAMERA_TYPE_BACKWARD_COMPATIBLE)
virtual int32_t getNumberOfCameras() = 0;
+ // Get the number of cameras of the specified type, one of CAMERA_TYPE_*
+ // enums
+ virtual int32_t getNumberOfCameras(int cameraType) = 0;
virtual status_t getCameraInfo(int cameraId,
/*out*/
struct CameraInfo* cameraInfo) = 0;