Change CONTROL_AE_EXPOSURE_COMPENSATION propostional to seekbar progress in Camera2 API
问题 I'm currently working on Androids Camera 2 API and my current problem is, that I cannot set the CONTROL_AE_EXPOSURE_COMPENSATION . I want to exposure between -2 to 2 . Here is my code. public void setExposure(double exposureAdjustment) { Range<Integer> range1 = mCameraCharacteristics.get(CameraCharacteristics.CONTROL_AE_COMPENSATION_RANGE); int minExposure = range1.getLower(); int maxExposure = range1.getUpper(); float newCalculatedValue = 0; if (exposureAdjustment >= 0) { newCalculatedValue