Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between setRepeatingRequest and setRepeatingBurst?

API level 21 introduced camera2, with it setRepeatingRequest and setRepeatingBurst. I have read the doc here, but still cannot catch the difference between the two. Any idea?

like image 564
m-ric Avatar asked Apr 06 '26 12:04

m-ric


1 Answers

Well, you'll notice that the constructors for these two methods are slightly different. setRepeatingBurst's first argument is List<CaptureRequest>, and setRepeatingRequests's is just a CaptureRequest.

According to the docs,

setRepeatingBurst

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.

setRepeatingRequest

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

So, setRepeatingBurst can be used to capture images with a list of different settings.

That's my best understanding, hope it helps!

like image 89
Andrew Brooke Avatar answered Apr 09 '26 02:04

Andrew Brooke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!