From 65d14b9825311f9d1847cf282bd0419e71bac666 Mon Sep 17 00:00:00 2001 From: Igor Murashkin Date: Tue, 17 Jun 2014 12:03:20 -0700 Subject: camera: Add #getLegacyParameters, #supportsCameraApi to ICameraService Change-Id: Ic86c8df3d703e7cf89caa856387e2c0a1b977401 --- services/camera/libcameraservice/CameraService.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'services/camera/libcameraservice/CameraService.h') diff --git a/services/camera/libcameraservice/CameraService.h b/services/camera/libcameraservice/CameraService.h index ee39d52..b2b65b8 100644 --- a/services/camera/libcameraservice/CameraService.h +++ b/services/camera/libcameraservice/CameraService.h @@ -100,6 +100,15 @@ public: virtual status_t removeListener( const sp& listener); + virtual status_t getLegacyParameters( + int cameraId, + /*out*/ + String16* parameters); + + // OK = supports api of that version, -EOPNOTSUPP = does not support + virtual status_t supportsCameraApi( + int cameraId, int apiVersion); + // Extra permissions checks virtual status_t onTransact(uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags); @@ -414,6 +423,14 @@ private: status_t initializeShimMetadata(int cameraId); /** + * Get the cached CameraParameters for the camera. If they haven't been + * cached yet, then initialize them for the first time. + * + * Returns OK on success, or a negative error code. + */ + status_t getLegacyParametersLazy(int cameraId, /*out*/CameraParameters* parameters); + + /** * Generate the CameraCharacteristics metadata required by the Camera2 API * from the available HAL1 CameraParameters and CameraInfo. * -- cgit v1.1