summaryrefslogtreecommitdiffstats
path: root/include/camera
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2014-06-17 12:03:20 -0700
committerIgor Murashkin <iam@google.com>2014-06-17 15:09:16 -0700
commit65d14b9825311f9d1847cf282bd0419e71bac666 (patch)
treed9e217cd626f62010b17274929e8425f59e5c09a /include/camera
parent3a227969f604d7c6a24a795661a13f70a5f37e1f (diff)
downloadframeworks_av-65d14b9825311f9d1847cf282bd0419e71bac666.zip
frameworks_av-65d14b9825311f9d1847cf282bd0419e71bac666.tar.gz
frameworks_av-65d14b9825311f9d1847cf282bd0419e71bac666.tar.bz2
camera: Add #getLegacyParameters, #supportsCameraApi to ICameraService
Change-Id: Ic86c8df3d703e7cf89caa856387e2c0a1b977401
Diffstat (limited to 'include/camera')
-rw-r--r--include/camera/ICameraService.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/camera/ICameraService.h b/include/camera/ICameraService.h
index 6e48f22..d7e5dac 100644
--- a/include/camera/ICameraService.h
+++ b/include/camera/ICameraService.h
@@ -32,6 +32,7 @@ class ICameraDeviceUser;
class ICameraDeviceCallbacks;
class CameraMetadata;
class VendorTagDescriptor;
+class String16;
class ICameraService : public IInterface
{
@@ -49,12 +50,19 @@ public:
REMOVE_LISTENER,
GET_CAMERA_CHARACTERISTICS,
GET_CAMERA_VENDOR_TAG_DESCRIPTOR,
+ GET_LEGACY_PARAMETERS,
+ SUPPORTS_CAMERA_API,
};
enum {
USE_CALLING_UID = -1
};
+ enum {
+ API_VERSION_1 = 1,
+ API_VERSION_2 = 2,
+ };
+
public:
DECLARE_META_INTERFACE(CameraService);
@@ -105,6 +113,18 @@ public:
int clientUid,
/*out*/
sp<ICameraDeviceUser>& device) = 0;
+
+ virtual status_t getLegacyParameters(
+ int cameraId,
+ /*out*/
+ String16* parameters) = 0;
+
+ /**
+ * Returns OK if device supports camera2 api,
+ * returns -EOPNOTSUPP if it doesn't.
+ */
+ virtual status_t supportsCameraApi(
+ int cameraId, int apiVersion) = 0;
};
// ----------------------------------------------------------------------------