static int camera_set_parameters(struct camera_device *device, const char *params) { ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); if (!device) return -EINVAL; char *tmp = NULL; tmp = camera_fixup_setparams(CAMERA_ID(device), params); #ifdef LOG_NDEBUG __android_log_write(ANDROID_LOG_VERBOSE, LOG_TAG, tmp); #endif if (flipZsl) { camera_stop_preview(device); } int ret = VENDOR_CALL(device, set_parameters, tmp); if (flipZsl) { camera_start_preview(device); flipZsl = false; } return ret; }
int camera_set_parameters(struct camera_device * device, const char *params) { if(!device) return -EINVAL; char *tmp = NULL; tmp = camera_fixup_setparams(CAMERA_ID(device), params); int ret = VENDOR_CALL(device, set_parameters, tmp); return ret; }
static int camera_set_parameters(struct camera_device *device, const char *params) { ALOGV("%s->%08X->%08X", __FUNCTION__, (uintptr_t)device, (uintptr_t)(((wrapper_camera_device_t*)device)->vendor)); if (!device) return -EINVAL; char *tmp = NULL; tmp = camera_fixup_setparams(device, params); int ret = VENDOR_CALL(device, set_parameters, tmp); return ret; }