问题
As in title. How to make ZSL still picture with Camera 2 API? Should I only use TEMPLATE_ZERO_SHUTTER_LAG
? Should I also add CONTROL_ENABLE_ZSL in CaptureRequest
? Should I do precapture sequence before taking still? Currently I do not have any particular code, just thinking how do it.
回答1:
There is IMHO good example of using Camera 2 API by Android Open Source Project:
https://android.googlesource.com/platform/packages/apps/Camera2/+/9c94ab3/src/com/android/camera/one/v2/OneCameraZslImpl.java
It uses TEMPLATE_ZERO_SHUTTER_LAG
but does not use CONTROL_ENABLE_ZSL
.
来源:https://stackoverflow.com/questions/57694258/how-to-use-zero-shutter-lag-in-android-camera-api-2