修复第一张照片曝光时间为0的bug

mem
liuguijing 6 months ago
parent 61e43d48e0
commit 14afaa3aaf

@ -1107,10 +1107,9 @@ public class Camera2RawFragment extends Fragment {
// 设置曝光时间例如设置为1000微秒 // 设置曝光时间例如设置为1000微秒
// long exposureTime = 1000 000000L; // 1000微秒 // long exposureTime = 1000 000000L; // 1000微秒
if (isHandTakePic) { if (isHandTakePic) {
captureBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_OFF); captureBuilder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_OFF);
if (exposureTime > 0) { if (exposureTime > 0) {
v = exposureTime * pic1; v = exposureTime;
captureBuilder.set(CaptureRequest.SENSOR_EXPOSURE_TIME, (long) v); captureBuilder.set(CaptureRequest.SENSOR_EXPOSURE_TIME, (long) v);
} }
if (sensitivity > 0) { if (sensitivity > 0) {

Loading…
Cancel
Save