简体   繁体   English

如何在 Android Camera 1 中打开 ZSL(零快门延迟)?

[英]How to turn on ZSL (zero shutter lag) in Android Camera 1?

Is there way of enabling ZSL on old Camera API?有没有办法在旧的 Camera API 上启用 ZSL? Nothing in official documentation, maybe in Parameters , maybe it is manufacturer dependent value?官方文档中没有,也许在Parameters ,也许它是制造商相关的值?

Yes, it's a device-specific setting.是的,这是特定于设备的设置。 If it is supported, you can use the string-based set() API to control it.如果支持,您可以使用基于字符串的set() API 来控制它。 You can find the device-specific parameter name and often the expected parameter values from flatten() result.您可以从 flatten() 结果中找到特定于设备的参数名称以及通常的预期参数值。

It is important to remember that setParameters() call is slow and may produce a RuntimeException for any one of hundreds of plausible or unexpected reasons, so you should always wrap it in try…catch.重要的是要记住 setParameters() 调用很慢,并且可能会因数百种可能或意外的原因中的任何一种而产生 RuntimeException,因此您应该始终将其包装在 try...catch 中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM