* Camera2 wrapper fixup functions
*******************************************************************/
-static char * camera2_fixup_getparams(int id __unused, const char * settings)
-{
- bool videoMode = false;
- const char* isoMode;
- char *manipBuf;
-
+static char * camera2_fixup_getparams(int id __unused, const char * settings) {
android::CameraParameters params;
params.unflatten(android::String8(settings));
return ret;
}
-static char * camera2_fixup_setparams(int id __unused, const char * settings)
-{
- bool videoMode = false;
- const char* isoMode;
-
+static char * camera2_fixup_setparams(int id __unused, const char * settings) {
android::CameraParameters params;
params.unflatten(android::String8(settings));
#include "CameraWrapper.h"
#include "Camera2Wrapper.h"
+static int camera_device_open(const hw_module_t* module, const char* name,
+ hw_device_t** device);
+static int camera_get_number_of_cameras(void);
+static int camera_get_camera_info(int camera_id, struct camera_info *info);
+static int camera_set_callbacks(const camera_module_callbacks_t *callbacks);
+static void camera_get_vendor_tag_ops(vendor_tag_ops_t* ops);
+static int camera_open_legacy(const struct hw_module_t* module, const char* id, uint32_t halVersion, struct hw_device_t** device);
+static int camera_set_torch_mode(const char* camera_id, bool enabled);
+
static camera_module_t *gVendorModule = 0;
static int check_vendor_module()
static int camera_open_legacy(const struct hw_module_t* module, const char* id, uint32_t halVersion, struct hw_device_t** device)
{
+ (void)halVersion;
ALOGV("%s", __FUNCTION__);
if (check_vendor_module())
return 0;
static android::Mutex gCameraWrapperLock;
-static int camera_device_open(const hw_module_t* module, const char* name,
- hw_device_t** device);
-static int camera_device_close(hw_device_t* device);
-static int camera_get_number_of_cameras(void);
-static int camera_get_camera_info(int camera_id, struct camera_info *info);
-static int camera_set_callbacks(const camera_module_callbacks_t *callbacks);
-static void camera_get_vendor_tag_ops(vendor_tag_ops_t* ops);
-static int camera_open_legacy(const struct hw_module_t* module, const char* id, uint32_t halVersion, struct hw_device_t** device);
-static int camera_set_torch_mode(const char* camera_id, bool enabled);