gpt4 book ai didi

android - setRepeatingRequest 和 setRepeatingBurst 的区别?

转载 作者:太空宇宙 更新时间:2023-11-03 11:48:31 27 4
gpt4 key购买 nike

API 级别 21 引入了 camera2,带有 setRepeatingRequestsetRepeatingBurst。我读过 doc在这里,但仍然无法区分两者之间的区别。有什么想法吗?

最佳答案

好吧,您会注意到这两个方法的构造函数略有不同。 setRepeatingBurst第一个参数是 List<CaptureRequest> , 和 setRepeatingRequests的只是一个 CaptureRequest .

根据文档,

设置重复突发

With this method, the camera device will continually capture images, cycling through the settings in the provided list of CaptureRequests, at the maximum rate possible.

设置重复请求

With this method, the camera device will continually capture images using the settings in the provided CaptureRequest, at the maximum rate possible.

所以,setRepeatingBurst可用于捕获具有不同设置列表的图像。

这是我最好的理解,希望对您有所帮助!

关于android - setRepeatingRequest 和 setRepeatingBurst 的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33456091/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com