How to use zero shutter lag in Android Camera API 2?

眉间皱痕 提交于 2019-12-08 07:00:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!